How a Single Response Manipulation Led to Admin Takeover — Tamil Nadu Government — Police…
The OTP verification response included a client-side 'issuccess' flag that the application trusted to grant access. By intercepting and changing this flag from false to true, an attacker could bypass OTP verification and gain admin access.
systemweakness.com
Published on systemweakness.com
You won’t believe this — I walked into an admin dashboard without any exotic exploit, zero fuzzing, and no fancy payloads. Just a normal login flow and a little trust the app shouldn’t have had.
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 application trusted a client-side flag in the OTP verification response to determine success, instead of validating the OTP server-side.
Impact
An attacker could bypass OTP verification and gain administrative access, potentially exposing user data, environment variables, and admin functions.
What the attacker needed
Ability to intercept HTTP responses; knowledge of admin username
The fix
The application should validate OTP success on the server and issue a server-signed token only upon successful verification, rather than trusting client-side flags.
How it was found
- Enter admin as username and password
- Receive OTP prompt and submit an invalid OTP
- Observe the response containing 'issuccess': false
- Intercept and modify the response to set 'issuccess': true
- Gain access to the admin environment
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, the server sends back a message saying if your code was correct. Here, the app believed whatever that message said, even if someone changed it. So an attacker could change 'failed' to 'success' and get in without the real code.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.