Skip to content
Business logic Disclosed report Beginner

An attacker can buy marketplace articles for lower prices as it allows for negative quantity values leading to business loss

The marketplace checkout accepted negative quantities for articles, allowing an attacker to reduce the total price by mixing positive and negative item counts. An attacker could buy articles for much less than intended, causing business loss.

yashrs Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 3 days
  • Paid in 3 hours
  • Disclosed after 3 months

Summary by the researcher

The SEMrush team triaged and patched this issue in less than 24 hours. That's a great turnaround time! It was nice working with the team :)

The report

Hi there,

When we Summary: When someone goes to https://www.semrush.com/marketplace/offers/ and orders for articles, an attacker can pay for less than intended due to negative quantities being allowed.

Steps To Reproduce:

POST /marketplace/api/purchases/bulk HTTP/1.1
Host: www.semrush.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
Accept: application/json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://www.semrush.com/marketplace/offers/
Content-type: application/json
Origin: https://www.semrush.com
Content-Length: 45
DNT: 1
Connection: close
Cookie: COOKIES

{"items":{"article_500":1,"article_1000":1}}
  • The actual price should be $110 for two articles.

Change the JSON body to :

{"items":{"article_500":4,"article_1000":-2}}
  • The cost will become $20 for two articles:

4 * $40- 2 * $70= $160 - $140 = $20

████

I even tried with my Virtual Card. Here is the failed payment. This is the proof that it actually charges the lowered amount: ██████████

Regards, Yash

Impact

An attacker can buy articles at much lower rates by exploiting this vulnerability which could cause severe business losses to Semrush

The original report as published on HackerOne, by yashrs. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server trusted client-supplied item quantities without validating that they were positive, so negative values reduced the total price.

Impact

An attacker could buy articles at much lower rates, causing business loss; a failed payment attempt showed the lowered amount was charged.

What the attacker needed

Access to the marketplace; ability to intercept HTTP requests

The fix

The issue was fixed by the team.

How it was found

  1. Go to the marketplace offers page.
  2. Click the order button for the 500-word article.
  3. Select two articles.
  4. Intercept the purchase request.
  5. Change the JSON body to include a negative quantity for one article.
  6. Observe the total cost is reduced.

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 report has not been written yet. The Original tab links to the source.

When you buy something online, the website calculates the total price from the quantities you order. This site let you enter a negative number for one item, which subtracted money from the total. So a buyer could pay much less than the real price.

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 yashrs

View all

6 more disclosed reports, best first.

More from Semrush

View all

The newest disclosed reports for this program.

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.