Skip to content
Info disclosure Write-up Beginner

From a “Low” Information Disclosure to Full Production Databa

A publicly accessible phpinfo page on a production subdomain exposed environment variables including database credentials, AWS keys, and PayPal secrets. An attacker could use these to access over 25,000 members' data, manipulate payments, or take over cloud infrastructure.

Abdelkafi Habbeddine Follow

Published on abdo0x.medium.com

While performing a security assessment on the infrastructure of a global organization (IFERP), I identified a publicly accessible phpinfo() page on a production subdomain.

Abdelkafi Habbeddine, on abdo0x.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 a phpinfo script was deployed to production and configured to include environment variables containing secrets.

Impact

With the exposed credentials, an attacker could access personal data of over 25,000 members, intercept or manipulate PayPal payments, and escalate privileges or disrupt AWS cloud services.

What the attacker needed

Publicly accessible phpinfo page

The fix

The phpinfo page was removed and access to environment variables was restricted, but the report also recommended rotating all leaked credentials.

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 debugging tool that shows server settings. Here it was left on a live website and also displayed secret passwords and keys. Anyone who found the page could read those secrets and use them to break into the company's database and payment systems.

What is Info disclosure?

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

More by Abdelkafi Habbeddine

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.