Account creation code bypass
The application sent an OTP to the user's email during account creation; by editing the response to indicate success and adding a session cookie, the OTP check could be bypassed, allowing account creation for an unclaimed email address.
- Triaged in 1 hour
- Fixed in 11 hours
- Disclosed after 3 days
Summary by the program
This bug allowed the creation of account for an unclaimed e-mail address.
The report
hi Team i was able to make an authentication bypass in your application .
Steps to replicate:
there are two phase evolved
- creating account using valid otp sent to registered email id .
- capture the response it will be like
HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Vary: Accept-Encoding Date: Tue, 21 Jul 2015 13:52:27 GMT Server: Google Frontend Set-Cookie: session="eyJTVEFSVCI6Ik9LIiwiQ09ERSI6dHJ1ZSwiRU1BSUwiOiJhYWFydW5hZ2Fyd2FsQGdtYWlsLmNvbSIsIk1PREUiOiJTRVQifQ\075\075|1437486747|1a8ca2ba59d77ea84586c163405f547b686d6a2f"; Path=/; secure; HttpOnly Alternate-Protocol: 443:quic,p=1 Expires: Tue, 21 Jul 2015 13:52:27 GMT Content-Length: 39
{"status": "OK", "url": "/secretpage/"}
Now attacker chance phase two:
- Create an account with valid information
- Now some OTP will be sent to your registered email address
- now provide any random 4 digit number
4)now edit the response for the specific request to {"status": "OK", "url": "/secretpage/"} and add set cookie header value to any random number of same length 5) OTP will be bypassed PFA Screen shot.
Let me know if you need more details.
Thanks Arun
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
Impact
An attacker could create an account for an unclaimed email address without access to that email.
What the attacker needed
A valid email address (unclaimed); ability to intercept and modify HTTP responses
How it was found
- Create an account with valid information.
- Receive an OTP sent to the registered email address.
- Provide any random 4-digit number as the OTP.
- Edit the response for the specific request to indicate success and add a Set-Cookie header with a random value of the same length.
- The OTP is bypassed and the account is created.
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 sends a code to your email. The report says someone could edit the response to show success and add a session cookie, bypassing the code and creating an account with an email they do not control.
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.