How I Bypass The Otp Of A Well Known Website
The OTP verification step could be bypassed by replacing the server's response to a wrong-OTP request with a previously captured successful response from the attacker's own number. An attacker could then log in to an account tied to a victim's phone number without knowing the OTP.
Published on systemweakness.com
Hello Learners, I am Rajneesh K. Arya again here with my new blog on OTP bypassing.
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 create or access an account tied to a victim's phone number without knowing the OTP, giving access to that victim's account.
What the attacker needed
A phone number already registered by the attacker; victim's phone number; Burp Suite to intercept and edit responses
How it was found
- Register an account and enter the already registered phone number, then wait for the OTP.
- Enter the correct OTP and intercept the request in Burp Suite.
- Send the request to Repeater, forward it, and copy the server response.
- Enter the victim's phone number and request an OTP.
- Enter a random OTP and intercept the verification request and its response.
- Replace the response with the copied attacker response, forward it, and the account is created for the victim's 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.
A website sends a one-time code (OTP) by text message to prove you own a phone number. Here the site trusted the reply it got back from the browser too much: by swapping in a saved 'success' reply from the attacker's own login, the site accepted a wrong code for someone else's number. That let the attacker get into an account that belonged to another person's phone.
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.