Brute Forcing Financial Apps With HackerOne
The login page returned different error messages and HTTP status codes for invalid usernames versus valid usernames with wrong passwords, and it also disclosed the number of remaining login attempts. An attacker could enumerate valid accounts and then perform a targeted brute-force attack within the five-attempt lockout window.
infosecwriteups.com
Published on infosecwriteups.com
About a month ago, I identified my first vulnerability — a SQL injection in a financial application. That discovery marked the beginning of my journey into bug bounty hunting, an area I’ve recently started exploring.
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 authentication system used distinct error messages and HTTP status codes for unknown usernames versus incorrect passwords, and it exposed the remaining attempt count, which together enabled enumeration and targeted brute force.
Impact
This could allow unauthorized access to user accounts and also enable account lockout attacks that deny access to legitimate users.
What the attacker needed
Access to the login page; a list of candidate email addresses; a tool to send many requests (e.g., Burp Intruder)
The fix
The authentication system should use generic error messages that do not reveal account existence or remaining attempts, and add strong MFA, progressive restrictions, rate limiting, and CAPTCHA.
How it was found
- Enter an invalid email address on the login page and observe the 'user not found' message.
- Enter a valid email with an invalid password and observe the '5 login attempts remaining' message.
- Use a tool like Burp Intruder to send many email addresses and note the different HTTP response codes (400 for invalid, 401 for valid).
- For valid emails, try common passwords within the five-attempt limit and look for an HTTP 200 response indicating a successful login.
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 website should give the same generic error whether your username is wrong or your password is wrong. Here, it said 'user not found' for a bad username but '5 login attempts remaining' for a good username with a bad password. That difference lets an attacker first find out which usernames are real, then try a few common passwords on each real account without getting locked out too quickly.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.