When Identity Breaks! How a Single Parameter Corrupted an Authent
The OTP verification endpoint accepted a client-controlled resetPassword flag, and the author also altered the server response, after which the platform treated an existing email as a brand-new registration. The result was that the user's projects and dashboards vanished and the same email existed in several conflicting identity states.
Published on medium.com
Security research is increasingly shaped by automation, AI-assisted analysis, and pattern-driven detection systems. These tools are powerful at identifying known vulnerability classes, predictable misconfigurations, and well-documented exploitation paths.
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 backend trusted a client-supplied resetPassword parameter and client-side response state to drive authentication flow, instead of enforcing a strict server-side identity state after OTP verification.
Impact
The user's existing projects and dashboards became inaccessible and the same email could exist as multiple account entities, though the program argued the attacker needs the victim's own OTP and session so only the user's own account is affected.
What the attacker needed
Valid OTP for the target email; ability to intercept and edit requests
The fix
The flow should be fixed so that identity state after OTP verification is decided and enforced entirely on the server, with no reliance on client-supplied flags or client-reported response values.
How it was found
- Start the email login flow and request an OTP for an email address.
- Submit the OTP verification request, which includes a resetPassword flag set to false.
- Change the resetPassword flag to true in the request.
- Intercept the server response and change its result from success to error.
- Complete the modified flow and observe that the existing account is treated as a new registration.
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 log in with a one-time code, the server should decide on its own whether you are an existing user or a new one. Here the server let a value sent by the browser, plus the browser's view of the reply, influence that decision. So the site lost track of who the person was and started treating their account as if it had just been created.
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.