Skip to content
Info disclosure Write-up Intermediate

Bad handler to Database takeover

A logout endpoint lacked handling for GET requests and had debugging enabled, which exposed credentials. The attacker used those credentials to access the company's database and panels.

medium.com

Published on medium.com

I was fuzzing one of the subdomains for a company and I came across a response with an interesting size

Ali, 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 logout handler did not restrict HTTP methods and debug mode was left enabled, causing sensitive credentials to be displayed in an error or debug response.

Impact

The attacker could access the company's panels and database, potentially compromising the organisation's identity and years of work.

What the attacker needed

Access to the subdomain; debugging enabled on the server

How it was found

  1. Fuzz subdomains of the target company.
  2. Notice a response with an unusual size.
  3. Inspect the logout endpoint and observe it does not handle GET requests.
  4. See that debugging is enabled and credentials are exposed.
  5. Use the credentials against the company's panels to gain access.

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 web application had a logout page that did not properly handle a simple browser request (a GET request). Because debugging was left on, the page showed secret login details. The attacker used those details to get into the company's systems and database.

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.