Skip to content
Info disclosure Write-up Beginner

How I Found PII Disclosure of Users & PHPInfo() Page :: #NCIIPC #RVDP

A government website exposed a PHPInfo page, Apache server documentation, and a SQL dump file containing users' personal data including passwords. An attacker could read this information to learn about the server setup and obtain sensitive user details.

p.ra.dee.p_0xx01 Follow

Published on medium.com

Let’s say that the website called as target.com. Whenever I browsed to <target.com> it’s showing that the site is under some maintenance at that moment.

Professor.0xx01, on medium.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, sensitive files such as a PHPInfo page, server documentation, and a database dump were left in the web root without access restrictions.

Impact

An attacker could read server configuration details and personal data of users and administrators, including passwords, from the exposed files.

What the attacker needed

None

The fix

The sensitive files should be removed from the web root or protected so that only authorised users can access them.

How it was found

  1. Browse to the target site and notice it shows a maintenance page.
  2. Run directory enumeration to discover hidden endpoints.
  3. Open the discovered PHPInfo pages.
  4. Open the Apache manual page.
  5. Open the SQL file and read the exposed user data.

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.

Some websites leave files on the server that were never meant to be public, such as a page that lists server settings or a backup of a database. If anyone can open those files, they can learn how the site is built and even read private details about its users. This report describes finding three such files by guessing common file names.

What is Info disclosure?

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

More by p.ra.dee.p_0xx01

View all

3 more disclosed reports, 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.