Skip to content
Info disclosure Disclosed report Beginner

Unauthenticated phpinfo()files could lead to ability file read at █████████ [HtUS]

An unauthenticated phpinfo() file was publicly accessible, exposing detailed server configuration and environment information. An attacker could use this information to plan further attacks against the server.

hackeronanywhere Follow

Originally disclosed on HackerOne

  • Triaged in 1 hour
  • Fixed in 7 days
  • Disclosed after 31 days

Description: Many PHP installation tutorials instruct the user to create a PHP file that calls the PHP function 'phpinfo()' for debugging purposes, and various PHP applications may also include such a file by default. By accessing it, a remote attacker can discover a large amount of information about the remote web server configuration to help conduct further attacks, including :

  • root/vps of the web server, operating system and PHP components
  • Details of the PHP configuration
  • Loaded PHP extensions with their configurations
  • Server environment variables.

Proof On Concepts: https://███████/info.php

Linux ███████ 3.10.0-1160.80.1.el7.x86_64 #1 SMP Sat Oct 8 18:13:21 UTC 2022 x86_64

Impact

The remote web server contains a PHP script that is prone to an information disclosure attack.

System Host(s)

███

Affected Product(s) and Version(s)

https://███████/info.php

CVE Numbers

Steps to Reproduce

  • Visit the target scope is https://██████████
  • You can used burp-suite-intruder for finding sensitive directory
  • And now we found a directory is info.php
  • Let's see opened in our browser is directory https://████████/info.php
  • You can see this page can be view without authenticate

Suggested Mitigation/Remediation Actions

Remove the affected file(s). http://php.net/manual/en/function.phpinfo.php

The original report as published on HackerOne, by hackeronanywhere. 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

Root cause

Likely a leftover phpinfo() debugging file was left accessible on the production web server.

Impact

The exposed phpinfo() page could reveal server configuration details that help an attacker plan further attacks.

What the attacker needed

None

The fix

The affected file(s) should be removed.

How it was found

  1. Visit the target scope.
  2. Use a tool like Burp Suite Intruder to find sensitive directories.
  3. Discover the info.php directory.
  4. Open the info.php page in a browser.
  5. Observe that the page is viewable without authentication.

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 debugging tool that lists lots of details about the server, such as its operating system and installed software. If anyone can open it, they learn how the server is set up, which helps them find weaknesses. The fix is to delete such files from public servers.

What is Info disclosure?

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

More by hackeronanywhere

View all

5 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.