Bug: No rate limiting on Email verification leads to huge Mass Mailing :: P4
The application did not limit how often a user could request email verification codes, either after entering a wrong code or via the forgot-password flow. An attacker could repeatedly trigger these requests, flooding the victim's inbox with a huge number of verification emails.
Published on medium.com
I am here to tell you how i find Rate Limiting Vulnerabilityon a public Bug Bounty Program.
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 server did not enforce any per-user or per-IP limit on requests to resend email verification or password reset codes.
What the attacker needed
Ability to create an account; ability to trigger verification emails; use of an interception proxy
The fix
The application should enforce rate limits on requests that send email verification or password reset codes, such as per-account and per-IP throttling.
How it was found
- Create a new user account on the admin login page.
- Enter an incorrect email verification code and observe that a new code is sent.
- Capture the resend request and send it to Intruder with a null payload.
- Start the attack and observe a huge number of verification emails arriving.
- Repeat the same null-payload attack on the forgot-password verification code request.
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 is a control that stops someone from repeating an action too many times in a short period. Here, the website kept sending new email verification codes every time the attacker asked, with no cap. That let an attacker send a flood of emails to a victim's inbox.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.