IDOR leads to Change Price Shipping
The shipping cost was sent by the browser as a request parameter and the server trusted it, so a shopper could change the shipping price to any value before confirming payment. An attacker could pay far less than the real shipping fee on an order.
medium.com
Published on medium.com
Hello guys, I’m Yal & I have been working as QA Engineer since 2 years ago, btw I do switch my career because my education background is Hospitality, which is not related with my current job. HAHAHAHA
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 accepted a client-supplied shipping cost parameter instead of recalculating the shipping price from its own data.
Impact
A buyer could reduce the shipping fee to an arbitrary amount, so the shop would receive less money than it should for the order.
What the attacker needed
No account needed to start an order; ability to intercept HTTP requests
The fix
The server should recalculate the shipping cost from its own records rather than trusting a value sent by the client; the report says the company fixed the problem the next day.
How it was found
- Open a product page and start the purchase flow.
- Fill in the address and choose a shipping method.
- Proceed to payment and intercept the outgoing request.
- Change the shipping cost value in the request and forward it.
- Observe that the order total reflects the altered shipping cost.
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 shop's server should decide the delivery fee. Here the website let the buyer's own browser send the delivery fee back to the server, and the server believed it. By editing that value before it was sent, a buyer could make the delivery fee almost anything they wanted.
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.