Skip to content
Info disclosure Write-up Beginner

How I Was Able To Find Php Info Page On The Website

A publicly accessible phpinfo() page was exposed on a subdomain, revealing detailed server configuration and environment information. An attacker could use this information to learn about the server setup and potentially plan further attacks.

Sujal Meghwal Follow

Published on systemweakness.com

Hello, everyone Today I like to share my story of the first-ever bug found on a website which was not very complicated because at that time I was just a novice at the time. The bug I found was information disclosed which was a fully exposed page of the phpinfo page

Sujal Meghwal, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the phpinfo() page was left accessible on a test or demo path without access restrictions.

What the attacker needed

None

The fix

The report was resolved after 20 days, likely by removing or restricting access to the phpinfo() page.

How it was found

  1. Find subdomains of the target wildcard domain.
  2. Take screenshots of every subdomain and review them.
  3. Collect domains with empty pages into a file.
  4. Run dirsearch on the collected domains.
  5. Open a discovered test.php URL and observe the exposed phpinfo() page.

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 write-up 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 details about the server, like software versions and settings. If anyone can see it, they learn how the server is built, which can help them find weaknesses. The fix is to remove or restrict access to such pages.

What is Info disclosure?

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

More by Sujal Meghwal

View all

1 more disclosed report, best first.

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.