️ The Day I Found a phpinfo() Page Exposed in Production — And Why It Was Worth More Than $200
A phpinfo() page was left accessible on a production FAQ service, exposing server configuration details such as PHP version, file paths and enabled functions. An attacker could use this information to plan further attacks, though the page itself did not allow direct exploitation.
Published on medium.com
There are days in bug bounty hunting when you stumble across something tiny — almost too simple — and yet it reminds you exactly why web security matters in the first place.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a leftover development or diagnostic file was not removed from the production server.
Impact
The exposed page revealed server details that could help an attacker plan further attacks, but it did not by itself cause direct damage and was rated low severity.
What the attacker needed
None
The fix
The phpinfo() file should be removed from production, and access to such diagnostic pages should be restricted or blocked.
How it was found
- During routine reconnaissance, a path under the FAQ service was found.
- The path pointed to a phpinfo.php file.
- Opening the URL showed a fully exposed phpinfo() output page.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A phpinfo() page is a diagnostic file that lists lots of details about the web server, such as which software versions it runs and where files are stored. It is meant for developers during setup, but if left on a live site, anyone can read it. That information helps an attacker choose which weaknesses to try next, even though the page itself does not let them break in.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.