Skip to content
Info disclosure Write-up Intermediate

⏱️ There were no visible errors, no hints… only the server’s hesitation told me the truth.

The login page returned the same error message and status code for invalid usernames and valid usernames with wrong passwords, but the response time was longer for valid usernames. An attacker could measure response times to enumerate valid usernames and then brute-force the password.

infosecwriteups.com

Published on infosecwriteups.com

It didn’t tell me outright. It couldn’t.

phoenixcatalan, on infosecwriteups.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

Impact

An attacker could enumerate valid usernames and then brute-force the password to access the account.

What the attacker needed

A list of candidate usernames; a list of candidate passwords; ability to send many login requests

How it was found

  1. Send a login request with a fake username and password and observe the error message and status code.
  2. Send a login request with a valid username and an invalid password and compare the response.
  3. Measure response times for different usernames to find one that takes longer.
  4. Use the identified username and brute-force the password, watching for a 302 redirect.

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.

When you log in, the server checks your username and password. If the username is wrong, it can say so quickly, but if the username is right and the password is wrong, it may take a little longer because it does more work. By timing how long the server takes to answer, an attacker can guess which usernames exist, even when the error message is the same.

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.