Unauthenticated OTP Spam via Multi-Endpoint Rate Limit Bypass
Several unauthenticated endpoints that send OTPs each had their own rate limit of about 10-12 messages, so an attacker could cycle through all five endpoints to send roughly 50 OTPs to a victim's phone. This allowed spamming the victim with OTP messages.
medium.com
Published on medium.com
Hiyya I am Raunak Gupta, a Security Researcher and Bug Bounty Hunter for fun and profit.
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 was applied per endpoint rather than globally across all OTP-sending endpoints, so an attacker could bypass the intended limit by rotating through endpoints.
Impact
An attacker could spam a victim's phone with about 50 OTP messages, causing annoyance and potential SMS costs, but the report notes this type of bug is often not accepted by bug bounty programs.
What the attacker needed
No authentication required; victim's mobile number known
The fix
The rate limit should be applied globally across all OTP-sending endpoints, not per endpoint, to prevent bypass by rotating endpoints.
How it was found
- Gather all endpoints that send OTPs without authentication.
- Create a script that takes a victim's mobile number and sends OTP requests to each endpoint until the rate limit is hit.
- Repeat for each endpoint to send about 50 OTPs in total.
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 one-time password (OTP) is a short code sent to your phone or email to log in. The website tried to stop people from requesting too many codes by limiting each page to about ten requests. But because the same limit was applied separately to five different pages, someone could just use all five pages in turn to send many more codes than intended, which is annoying for the person receiving them.
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.