Insufficient Workflow Validation
The application did not properly validate the order confirmation step, allowing an attacker to replay a previous order confirmation request to purchase an item without sufficient store credit. This enabled buying a jacket that cost more than the available balance.
Published on medium.com
Another day, another Lab Walkthrough at the Cybersec Cafe. Today, I’ll be writing about my methodology as I figure out a Business Logic Vulnerability.
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 did not verify that the order confirmation request was tied to a valid, paid order, allowing replay of an old confirmation.
Impact
An attacker could purchase items without sufficient store credit, potentially obtaining goods for free or at a reduced cost.
What the attacker needed
A user account with some store credit; ability to intercept and replay HTTP requests
How it was found
- Purchase an item within the available balance to observe the full order workflow.
- In the proxy history, identify the order confirmation request that sets a parameter to true.
- Add the expensive jacket to the cart and attempt to place the order, which is denied due to insufficient credit.
- Replay the previously captured order confirmation request to confirm the current cart.
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.
A business logic vulnerability is a flaw in how an application's processes are designed, letting someone bypass intended steps. Here, the attacker reused a confirmation request from a previous purchase to confirm a new order without paying enough, effectively tricking the system into completing the purchase.
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.