Rate limit bypass leads to email triggering($$$)
The email verification endpoint applied its rate limit per request rather than across simultaneous requests, so firing many requests at once let all of them through. An attacker could send dozens of verification emails to any address in a single burst, enabling email bombing and risking the sender's reputation.
medium.com
Published on medium.com
Rate limits are supposed to stop abuse. They make sure you can’t spam actions like login attempts, password resets, or email verification.
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 rate-limit check and the email-sending action were not atomic, so concurrent requests all passed the check before the counter was updated.
Impact
An attacker could email-bomb any address with many verification emails and risk the site's mail servers being blacklisted for spam.
What the attacker needed
A free account; ability to intercept requests; a tool to send parallel requests
How it was found
- Register an account on the application.
- Change the account email to the victim's address.
- Trigger the send verification email action and intercept the request.
- Send many copies of the request concurrently in parallel.
- Observe that all requests are processed and many emails reach the victim.
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 rate limit is a cap on how many times you can do something in a period, like sending a verification email. Here the check happened separately for each request, so if many requests arrived at the same instant, each one passed the check before any of them counted against the limit. That let someone flood a victim's inbox with verification emails.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.