Skip to content
IDOR Write-up Beginner

[Writeup][Bug Bounty][Tokopedia] Manipulation of Likes in Product Reviews [EN]

The like/dislike endpoint for product reviews accepted a user_id parameter, allowing an attacker to change the user_id to another user's ID and remove some parameters to bypass authentication, thereby manipulating the number of likes without user interaction.

Muhammad Thomas Fadhila Yahya Follow

Published on fadhilthomas.github.io

Bounty$135 View original

Before starting, IDOR is Insecure Direct Object Reference, hereinafter referred to as IDOR, is a condition in which users can access an object without passing the access rights check. (OWASP, 2019)

fadhilthomas, on fadhilthomas.github.io

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 endpoint relied on a client-supplied user_id parameter for authorisation and did not properly verify that the authenticated user matched that ID, and removing parameters bypassed authentication checks.

Impact

An attacker could manipulate the number of likes on product reviews without user interaction, potentially inflating or altering like counts.

What the attacker needed

A Tokopedia account; ability to intercept HTTP requests

The fix

The bug was fixed by Tokopedia, likely by enforcing proper authorisation checks on the user_id parameter and not allowing parameter removal to bypass authentication.

How it was found

  1. Log in to Tokopedia and open a product review page.
  2. Intercept the request sent when clicking the like button on a review.
  3. Note the parameters in the request, including product_id, shop_id, and user_id.
  4. Forward the request and observe a success response.
  5. Modify the user_id to another user's ID and remove some parameters to bypass authentication.
  6. Forward the modified request and observe the like count increase.

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 report describes an Insecure Direct Object Reference (IDOR) bug. In simple terms, the website trusted a user ID sent in the request to decide who was liking a review, instead of checking that the request actually came from that user. By changing that ID and removing some other parameters, an attacker could make it look like other people had liked a review, artificially inflating the like count.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by Muhammad Thomas Fadhila Yahya

View all

2 more disclosed reports, best first.

More from Tokopedia

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.