OTP Manipulation
The OTP verification flow validated the phone number only on the client side, so an attacker could intercept the request, change the target number to their own, and receive the OTP meant for another number. This allowed the attacker to verify a phone number they did not own.
Published on kishanchoudhary.com
Hey there learners , so recently i found i got a invitation for a private program on Bugcrowd so after spending 30 mins of recon i found that i was able to redirect the OTP from victim number to the attacker so instead of going into theory lets just jump in :D
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
Impact
An attacker could verify a phone number they do not own, potentially leading to account takeover or bypassing phone verification.
What the attacker needed
A free account; ability to intercept requests
How it was found
- Request an OTP for a fake number.
- Intercept the request and change the number to the attacker's real number.
- Forward the request and observe the OTP is sent to the attacker's number.
- Enter the received OTP and verify the number.
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.
When you sign up, a code (OTP) is sent to your phone to prove it is yours. Here the website trusted the phone number typed in the browser instead of checking it on the server, so someone could swap in their own number and get the code for someone else's number.
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.