Information Disclosure (phpinfo())
A publicly accessible phpinfo() page on a staging server exposed detailed system and PHP configuration information. An attacker could use this to learn the exact PHP and OS versions, internal IP addresses, environment variables, and loaded extensions, aiding further attacks.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 2 days
- Disclosed after 3 days
URL :- https://staging.uzbey.com/phpinfo.php
Description :- phpinfo() is a debug functionality that prints out detailed information on both the system and the PHP configuration.
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. This information can help an attacker gain more information on the system. After gaining detailed information, the attacker can research known vulnerabilities for that system under review. The attacker can also use this information during the exploitation of other vulnerabilities.
Attachments

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
Impact
An attacker could gather sensitive system details to research known vulnerabilities and assist in exploiting other flaws.
What the attacker needed
None
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.
phpinfo() is a built-in PHP function that shows a lot of technical details about the server, like which version of PHP is running and what settings are enabled. If this page is left accessible to anyone, attackers can read it and use the information to plan attacks, such as finding known bugs in that version. The report found such a page on a staging website.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.