phpinfo() disclosure info
A publicly accessible phpinfo.php page on a subdomain exposed detailed server configuration, including PHP version, OS details, internal IP addresses, and environment variables. An attacker could use this information to plan further attacks against the server.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 5 months
- Disclosed after 20 months
hi security team i found subdoamins avalibale file phpinfo()
##PoC:- https://█████████/phpinfo.php
Impact
An attacker can obtain information such as: •Exact PHP version. •Exact OS and its version. •Details of the PHP configuration. •Internal IP addresses. •Server environment variables. •Loaded PHP extensions and their configurations.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the phpinfo.php file was left in a publicly accessible directory without access restrictions.
What the attacker needed
None
How it was found
- Visit the phpinfo.php page on the subdomain.
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 report has not been written yet. The Original tab links to the source.
A phpinfo page shows technical details about the server, such as software versions and internal addresses. If publicly accessible, anyone can read it and use it to target the server.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.