Bypass verification of email while creating account(No rate limiting enable for verification code)
The account sign-up flow sends a four-digit email verification code, but the server does not limit how many times the code can be guessed. An attacker could create an account using someone else's email address and brute-force the code to complete verification.
Originally disclosed on HackerOne
- Fixed in 4 days
- Disclosed after 15 months
Hi Team,
Bug type : Authentication bypass(Missing rate limiting)
Description : While creating a account user needs to enter a email id and verification has been sent to his email ID.It is a 4 digits code.But there is no rate limiting enable while checking the verification on server side.So basically Any one can use account by any email ID in the world.
Exploite : 1.Attacker creates a account with victim's email ID Ex: [email protected] 2.Now he doesn't know the verification code.Attacker will start brute force attack to get the correct verification code.Once Attacker gets the verification code,He will be able to use the Email id of victim on Maplogin account.
Solution : Enable rate limiting on verifying the code (Ex: User can try only 10 times after that he's blocked for sometime)
This is a critical authentication issue,kindly look into it asap.
Regards !
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the verification endpoint accepts unlimited attempts on a four-digit code, so the code space is small enough to exhaust by brute force.
Impact
An attacker could take over the email identity on the service by verifying an account with an address they do not own, though the report does not show this being done in practice.
What the attacker needed
No account needed to start; victim's email address known; automated guessing of a 4-digit code
The fix
Rate limiting should be added to the code verification step, for example blocking a user after a small number of failed attempts.
How it was found
- Create an account using the victim's email address.
- Submit guesses for the four-digit verification code until the correct one is found.
- Use the now-verified account tied to the victim's email address.
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 report has not been written yet. The Original tab links to the source.
When you sign up, the site emails you a short number to prove the address is yours. This report says the site lets you try that number as many times as you like, so a computer could simply try every possible four-digit number until it finds the right one. That would let someone finish signing up with an email address that does not belong to them.
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.