SEC-025
phpinfo() page is public
HighDefault severity · Security · Secrets, HTTPS and security headers
Last reviewed
What it checks
/phpinfo.php and /info.php for a phpinfo() report.
Why it matters
phpinfo() prints server paths, module versions and environment variables, which can include database passwords and API keys.
Recommended fix
Delete the phpinfo file from the server.
How to verify
Request each listed path on the live site and confirm it returns 404 or 403.
Example fix prompt
Generic prompt (your report adds the evidence)
Please fix this production issue in my app.
Issue SEC-025: phpinfo() page is public
Site: https://your-app.example
First confirm the issue in the code or live config. If it is not present, say so and change nothing.
Task: Delete the phpinfo() file(s) in the evidence from the deployed site and make sure no other file calls phpinfo().
Constraints: make the smallest change that fixes this, keep the current design and behaviour, never paste secret values into code or chat, and tell me which files you changed.
Done when: Request each listed path on the live site and confirm it returns 404 or 403.