Skip to content
Business logic Write-up Intermediate

The $15,000 Semicolon

A payment parameter was parsed differently by the web server, internal API, and database, allowing an attacker to pay a lower price while receiving a higher-tier subscription. The attacker could buy a premium plan for a fraction of its cost.

abdo0x Follow

Published on abdo0x.medium.com

I was testing a premium subscription checkout. The price was hardcoded in the POST request: plan=pro&price=500.

Abdelkafi Habbeddine, on abdo0x.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 the semicolon character was treated as a parameter separator by the internal API but not by the web server, causing inconsistent parsing of the price parameter across components.

What the attacker needed

Access to the checkout request

How it was found

  1. Send a request with a single price parameter to verify the checksum protection.
  2. Send a request with two price parameters to observe which one the backend uses.
  3. Send a request with a semicolon-separated price parameter to exploit the parsing difference.

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 send data to a website, different parts of the system may read it in different ways. Here, the front-end server saw one price, the payment system saw another, and the database saw a third, so the attacker paid less but got the expensive plan.

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 abdo0x

View all

1 more disclosed report, 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.