Skip to content
Info disclosure Disclosed report Beginner

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.

Khaled Mohamed Follow

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.

The original report as published on HackerOne, by 0xelkomy. 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 the phpinfo.php file was left in a publicly accessible directory without access restrictions.

What the attacker needed

None

How it was found

  1. 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.

More by Khaled Mohamed

View all

9 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.