Skip to content
Account takeover Write-up Intermediate

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!

Ehtesham Ul Haq, 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 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

  1. Intercept the login request.
  2. Send 100 consecutive requests using Intruder.
  3. On the 101st attempt, the rate limit was bypassed.
  4. Intercept the password reset request.
  5. Send requests and succeed on the 102nd attempt.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.