Response Manipulation: The Hidden Path to Account Takeover
The author claims that by intercepting the response to a login-code request and changing its status from 400 to 200, then editing the email in a saved successful-login response, they could log in as another user. The text asserts this led to full account takeover without user interaction.
medium.com
Published on medium.com
In a secure system, the server is responsible for validating requests and generating responses that the client cannot control or alter.
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 application trusted a server response that could be modified in transit, rather than the server independently verifying the login state.
Impact
The author claims full account takeover without user interaction, but the text does not show how the modified response was accepted by the server, so the real impact is unverified.
What the attacker needed
Ability to intercept and modify responses; attacker has an email address; victim email known
How it was found
- Request a login code to be sent to the attacker's own email.
- Intercept the verification request and replace the code with null or a placeholder value.
- Change the response status from 400 to 200 OK.
- Edit the email in a saved successful-login response to the victim's email and send it.
- Observe that login to the victim's account succeeds.
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, your browser sends a request to the server and the server sends back a response saying whether it worked. Here the author says they could edit that response on the way back, making a failed login look successful and swapping in someone else's email. If the app trusts that edited response, it might let them into another person's account.
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.