Skip to content
Info disclosure Write-up Beginner

How I Discovered My First Bug: Worth $150 for Information Exposure Through Debug Logs (CWE-215)

A WordPress site left its debug log file publicly accessible, exposing file paths, database errors, usernames and an API key. An attacker could read this information to plan further attacks such as brute-forcing or exploiting plugins.

rupaitanudas Follow

Published on medium.com

Every bug hunter remembers their first win. Mine came while exploring the fascinating world of web vulnerabilities, and I stumbled upon a seemingly innocent debug log file left accessible on a website.

Rupaitanudas, 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 the site left WordPress debug logging enabled in production and did not block direct access to the log file.

Impact

The exposed log could reveal file paths, database errors, usernames and an API key, which may help an attacker target the site further; the text does not show these details being used in an actual attack.

What the attacker needed

None

The fix

The site disabled debug logging in production or restricted access to the log file, and the text says a fix was deployed and the file was no longer accessible.

How it was found

  1. Find the debug log URL on the WordPress site.
  2. Open the URL directly in a browser.
  3. Read the exposed log contents.

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 debug log is a file where a website writes technical messages to help developers find problems. If that file is left where anyone can open it, outsiders can read internal details like file locations, database errors and even secret keys. Here, the log was publicly reachable, so anyone could view it.

What is Info disclosure?

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

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.