Skip to content
Business logic Write-up Beginner

Vulnerability - The Case of Bad Input Validation

The rating system accepted extreme values like -500 or +500 instead of only 1-5, allowing a single user to drastically skew a location's average rating. An attacker could make a place appear extremely popular or ruin its reputation.

Maxwell Dulin Follow

Published on maxwelldulin.com

The web is full of user reviewed rating websites that we trust with our lives every day. Glassdoor allows us to see inside a company; Amazon reviews allow us to see what it is like to own a product; Yelp for restaurants... this is just the world that we live in.

Maxwell Dulin (@Dooflin5), on maxwelldulin.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 backend only checked that the rating was within some range (e.g., -500 to 500) but did not enforce the intended 1-5 range.

Impact

A single user could drastically raise or lower a location's average rating, potentially making it appear extremely popular or driving customers away.

What the attacker needed

Ability to intercept HTTP requests; a user account on the site

The fix

The bug was fixed by enforcing that only values from 1 to 5 are accepted on the backend.

How it was found

  1. Intercept the rating request using Burp.
  2. Change the rating value to a negative number like -500.
  3. Observe that the request succeeds and the overall rating is affected.

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.

A rating system usually only lets you pick 1 to 5 stars. But the website's server didn't check the number properly, so someone could send a rating of -500 or +500. That one fake rating could make a place look amazing or terrible, because the average is calculated from all ratings.

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 Maxwell Dulin

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.