Authentication Bypass Using Response Manipulation
The account registration process accepted incorrect one-time passwords for both mobile and email verification, allowing an attacker to complete registration without proving ownership of either contact. The author also claims that manually changing the server response to a success status let them bypass OTP verification entirely.
Published on medium.com
In today’s digital age, security is paramount, especially when it comes to online transactions and personal information. However, even with robust security measures in place, there are still vulnerabilities that can be exploited by malicious actors.
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 server trusted a client-side success response or failed to validate the submitted OTP against the one it issued before allowing registration to complete.
Impact
An attacker could bypass OTP verification during registration, potentially gaining unauthorised access to user accounts and causing financial loss or privacy breaches, though the author provides no proof of actual account takeover.
What the attacker needed
Access to the registration page; an intercepting proxy
The fix
The server should verify the submitted OTP against the one it issued and must not rely on client-side response status to decide whether registration succeeds.
How it was found
- Start registering on the platform with a mobile number and email address.
- When prompted for OTP verification, enter incorrect OTPs for both the mobile number and email address.
- Observe that the system accepts the incorrect OTPs and allows registration to proceed.
- Capture the request and response in an intercepting proxy and note the 200 OK success status.
- Manually change the response to a 200 OK success status and submit the registration form, bypassing OTP verification.
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 site often sends a one-time code to your phone or email to check it is really yours. This site did not properly check that code, so someone could finish signing up without owning the phone number or email address. That could let them create accounts tied to other people's details.
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.