Skip to content
Info disclosure Disclosed report Beginner

PHP info page disclosure

A publicly accessible phpinfo() page exposed detailed server 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.

valluvarsploit_h1 Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 9 days
  • Disclosed after 39 days

phpinfo() is a debug functionality that prints out detailed information on both the system and the PHP configuration.

Step to reproduce: Go here: https://mysmartplans.gsa.gov/phpinfo.php

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 and etc.

Impact

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

phpinfo_disclosure.png
phpinfo_disclosure.png From the original on HackerOne

The original report as published on HackerOne, by valluvarsploit_h1. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 system details to research known vulnerabilities and assist in exploiting other flaws.

What the attacker needed

None

How it was found

  1. Navigate to the phpinfo.php page on the target server.

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 is a built-in PHP feature that shows lots of technical details about the server, like which version of PHP is running and what settings are enabled. It is meant for debugging during development, but if left on a live website, anyone can visit it and learn things that help them plan an attack, such as which software versions have known bugs.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by valluvarsploit_h1

View all

1 more disclosed report, best first.

More from U.S. General Services Administration

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.