How I Found a High-Severity OTP Verification Bypass in a Public B
The client-side app trusted the server's JSON response to decide whether mobile verification succeeded, so an attacker who could intercept the response could change an error into a success and make the app show the account as verified. The text does not show that the server actually marked the account verified, only that the client displayed success.
{ "type": "error", "errorCode": "15", "message": "Invalid verification code" }
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 code treated the response payload as authoritative and updated verification state based only on the type and errorCode fields, instead of relying on server-side state.
Impact
An attacker who can intercept the verification response could make the client show the account as verified without a valid OTP; the text does not show that server-side verification was actually bypassed.
What the attacker needed
Ability to intercept and modify responses; a signup flow with mobile OTP step
The fix
The text says critical state changes must be controlled and persisted server-side, so the fix should be to have the server decide and store verification status rather than trusting the client's view of the response.
How it was found
- Open the registration endpoint and complete the signup form up to the mobile OTP step.
- Enter an incorrect OTP so the server returns an error response.
- Intercept the verification response with an intercepting proxy.
- Modify the intercepted response from an error to a success before forwarding it.
- Forward the modified response; the client shows success and marks the account verified on the client side.
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 asks for a code sent by SMS. The app checks the server's reply to see if the code was right. Here, the app believed whatever the reply said, so someone who could intercept and edit that reply could make the app show 'verified' even with a wrong code. The text does not prove the server itself was fooled.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.