Bypassing Email-Based 2FA via Client-Side Response Tampering: An Informative Case Study
The registration flow's client-side JavaScript trusted a mutable server response flag to decide whether email OTP verification succeeded. An attacker could tamper with the failure response to show a 'verified' UI, but the server never issued a session, so no real access was gained.
In this write-up, I detail a vulnerability in the Silicon Labs Community registration flow where an attacker can tamper with the server’s email-verification response to bypass the OTP step on the client side. Although the server ultimately enforces verification (no valid session is ever issued), this UI manipulation…
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 trusted a mutable response field to determine verification status without the server re-checking it before granting access.
Impact
The server still enforced verification and issued no session, so there was no authentication or authorisation impact; the issue was classified as Informative, with only a risk of user confusion or social-engineering misuse.
What the attacker needed
Ability to intercept HTTP responses; a registration attempt with an email OTP
The fix
The server should enforce verification and issue session tokens only after successful server-side verification, and the client should not rely on mutable response data.
How it was found
- Submit the registration form and receive an 'OTP required' response.
- Enter an incorrect OTP and receive a failure response.
- Intercept the failure response with a proxy.
- Replace the failure response with a successful one.
- Observe the client showing a 'verified' UI and proceeding, though no session is issued.
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 website asks for a code sent to your email. The site's page decides whether to show 'success' based on a message from the server that can be edited by the user. Here, someone could edit that message to make the page show success, but the server still refused to let them in, so it was only a cosmetic trick.
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.