Skip to content
Business logic Write-up Intermediate

Logic Loopholes: The Fun Flaws

The report describes multiple business logic vulnerabilities in an e-commerce platform, including bypassing purchase requirements to post comments, sending messages as a store, refunding purchases without proper authorisation, deleting comments without CSRF tokens, and race conditions allowing multiple comments, refunds, and purchases. An attacker could manipulate ratings, spam users, obtain free products, and inflate balances.

khode4li Follow

Published on medium.com

Hello, my fellow ingenious hackers! Your friendly neighborhood 4li is back with a bag full of intriguing vulnerabilities.

Khod4li, on medium.com

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 missing server-side authorisation checks and race condition protections, allowing users to perform actions they shouldn't or multiple times.

Impact

Attackers could post fake comments, spam users, obtain free products, inflate balances, and manipulate store ratings, potentially damaging platform credibility and causing financial loss.

What the attacker needed

A user account; ability to intercept HTTP requests; a second account for some tests; store approval for some tests

How it was found

  1. Register two accounts and make a purchase with one to enable commenting.
  2. Manipulate the HTTP request cookies to post a comment from the second account that made no purchase.
  3. Tweak the HTTP request to start a conversation on behalf of the store and change the recipient ID to the user's ID.
  4. Send a refund request using the buyer's cookies with price and purchase ID parameters.
  5. Remove the CSRF token from a GET request to delete a comment.
  6. Use Turbo Intruder to send multiple simultaneous comment submissions or refund requests.

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 write-up lists several logic flaws in an online store platform. For example, a user could get a refund without actually buying anything, or post many comments at once to manipulate ratings. These bugs happen when the website trusts the user's input too much or doesn't check who is allowed to do what.

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.

More by khode4li

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.