Http Response Manipulation
The application relied on a server response to decide whether a one-time code check had passed, and the tester changed that response in the proxy so a wrong code was treated as correct. This let the tester add postage credit without knowing the real code.
medium.com
Published on medium.com
Most security testing focuses on what users send to the server. Far fewer people ask an equally important question:
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 trusted a success flag in the server response instead of the server enforcing the one-time code check itself.
Impact
An attacker could bypass the email code check and add postage credit without knowing the real code.
What the attacker needed
A free account; access to a proxy tool; a payment flow that sends an email code
The fix
The server should verify the one-time code itself and only grant the credit after a valid check, rather than letting the client's view of the response decide.
How it was found
- Log in to the application and note the current balance.
- Start adding postage to trigger a six-digit code sent to the registered email.
- Enter a random six-digit code.
- Capture the request in a proxy tool.
- Modify the server response.
- Observe that the amount is added to the postage.
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 or confirm a payment, the server sends back a message saying whether it worked. A proxy is a tool that sits between your browser and the server so you can read and edit those messages. Here the tester edited the 'it worked' part of the reply, and the app believed it even though the code was wrong.
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.