Finding 4 Logic Vulnerabilities in a Single E-Commerce Target
The report describes four logic flaws in an e-commerce application: a client-side control bypass where modifying an error response to a success response lets a user associate an already-registered phone number and reach OTP verification; a replay of a captured OTP success response that bypasses OTP for any login; excessive data exposure in a product API revealing inventory and store identifiers; and a server-side input validation bypass using invisible Unicode characters to set a blank display name.
Published on medium.com
Today, I’m excited to share my discovery of 4 vulnerabilities within a single external Bug Bounty program.
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 enforces key security decisions on the client side and does not bind OTP verification responses to a specific session or time, while also failing to normalise input and minimise API output.
Impact
An attacker could bypass phone registration restrictions and OTP verification to gain full account access, while the other two issues expose internal inventory data and allow blank display names.
What the attacker needed
A free account; ability to intercept HTTP traffic; one legitimate OTP verification captured
The fix
The application should enforce these checks server-side, bind OTP responses to a specific session and time, minimise API output, and normalise input by stripping invisible characters.
How it was found
- Submit a phone number already registered to another account in the profile edit section.
- Observe the backend returning an HTTP 400 error stating the number is already registered.
- Intercept the response in Burp Suite and change the status to 200 OK and clear the error body.
- Forward the modified response and observe the UI move to the OTP verification step.
- Perform one legitimate OTP verification and capture the success response.
- Start a new login, submit an invalid OTP, intercept the error, and replace it with the captured success response.
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.
This report covers four separate mistakes in how a website checks things. In two of them, the website trusts what the browser shows rather than what the server actually decided, so an attacker can edit the server's reply to make a failed action look successful. The other two are simpler: the server sends back more data than the page needs, and it accepts invisible characters as a name.
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.