Missing Rate Limit on Several Endpoints $1300
The login form and password reset token endpoint lacked rate limiting, allowing unlimited attempts. The session cookie was an MD5 hash that could be enumerated to hijack active sessions.
medium.com
Published on medium.com
Free Article Link: Click for free!
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 application did not enforce rate limits on authentication and password reset endpoints, and used predictable MD5 hashes for session identifiers.
Impact
An attacker could brute-force login credentials and password reset tokens, and could enumerate MD5 session hashes to take over active user sessions, potentially leading to account takeover.
What the attacker needed
Access to the login form; access to password reset functionality; ability to send many requests
How it was found
- Intercept the login request.
- Send 100 consecutive requests using Intruder.
- On the 101st attempt, the rate limit was bypassed.
- Intercept the password reset request.
- Send requests and succeed on the 102nd attempt.
- Capture a request to the locations endpoint and set the sesha cookie as the payload position.
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.
Rate limiting stops someone from trying many guesses quickly, like limiting login attempts. Without it, an attacker can try thousands of passwords or reset tokens. Also, the session cookie was a simple hash that could be guessed, letting an attacker take over someone else's logged-in session.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.