Insufficient Workflow Validation: A Logic Flaw Case Study
The application did not properly validate the order workflow, allowing an attacker to skip payment by directly accessing the order confirmation endpoint with a parameter. This could let an attacker obtain products without paying the full price.
medium.com
Published on medium.com
In this lab scenario, a vulnerability emerges from insufficient validation of the user’s purchasing workflow. The application wrongly assumes that users will follow a strict, linear sequence of actions when buying a product — from adding an item to the cart, proceeding to checkout, and making payment.
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 server relied on a client-supplied parameter (order-confirmed=true) to mark an order as complete, without verifying that payment had actually been made.
Impact
Attackers could bypass product prices and pay a reduced amount, leading to revenue loss for the business.
What the attacker needed
A free account; ability to intercept and modify requests
The fix
The server should enforce the correct sequence of steps and verify payment before confirming an order, rather than trusting a client-supplied parameter.
How it was found
- Log in to the website with the provided credentials.
- Add the expensive leather jacket to the cart.
- Attempt to place the order and observe the insufficient balance error.
- Purchase a cheaper product to see the order confirmation URL with the order-confirmed parameter.
- Add the expensive jacket to the cart again.
- Use Burp Suite Repeater to send a GET request to the order confirmation URL with order-confirmed=true, then view the response in the browser.
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 buy something online, the website is supposed to check that you actually paid before it confirms your order. Here, the website trusted a simple 'confirmed' flag in the web address, so someone could just type that address and get the order confirmed without paying. This is like a shop assistant handing you the goods just because you said 'I paid' without checking the receipt.
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.