Skip to content
Business logic Write-up Beginner

Business Logic Error in the Comment Section of a Porn site

The report button sent the comment's text as a parameter that could be tampered with, allowing an attacker to submit a fake offensive comment report. Since reports were reviewed manually and could lead to account suspension, a malicious user could get another paying user's account suspended.

vFlexo Follow

Published on medium.com

I was invited to a private hackerone bug bounty program of a well known porn site.

Vishal Barot, 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 the server trusted client-supplied comment text in the report request instead of looking up the original comment by its identifier.

Impact

An attacker could submit a fake offensive comment report, potentially leading to the suspension of another paying user's account.

What the attacker needed

A paid account on the site; ability to intercept HTTP requests

How it was found

  1. Log in to the site and open a video with comments.
  2. Click the report button on a comment and intercept the request.
  3. Change the text parameter to offensive content.
  4. Observe the response confirming the tampered value was accepted.

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 click 'report' on a comment, the website sends the comment's text to its server. The problem was that the server trusted whatever text was sent, so someone could change it to something offensive before sending. That fake report could then be reviewed by a human and lead to the innocent commenter's account being suspended.

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 vFlexo

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.