Authentication Bypass — Bypass OTP Verification
The application's mobile number verification could be bypassed by intercepting the server's response to a wrong code and altering it to indicate success. An attacker could thereby complete account takeover of any user without privileges.
Hello everyone, I am Vignesh, a 20-year-old Security Researcher from TamilNadu, India😊.
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 client-side application trusted the server's response to indicate verification success without independently validating the OTP, allowing an attacker to tamper with the response.
Impact
An attacker could carry out an authentication bypass and perform account takeover of any user without any privileges.
What the attacker needed
Ability to intercept and modify responses; a registered account
How it was found
- Register an account by entering credentials.
- The application asks for a code to verify the mobile number.
- Enter a wrong code and capture the request.
- Set the interception tool to intercept the response and forward the request.
- Manipulate the response and forward it.
- The verification is successful after manipulating the response.
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, the app sends a code to your phone and checks it on the server. The server replies with a message saying whether the code was right. Here, the attacker changed that reply to say 'success' even though the code was wrong, so the app let them in. This means the app trusted the reply without checking it properly.
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.