Skip to content
IDOR Write-up Beginner

Hacking India’s biggest Cake Shop

The user_id parameter in an API request could be manipulated to change other users' personal information, leading to account takeover. Additionally, some cart_id values were broken, allowing an attacker to place orders for free.

osintteam.blog

Published on osintteam.blog

Yeah, this is the cake shop. I found its online website and tried to order a cake.

StvRoot, on osintteam.blog

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 application did not verify that the user_id in the request belonged to the authenticated user, and cart_id values were predictable or not properly validated.

Impact

An attacker could take over user accounts by changing their email and phone number, and could place orders for free without payment.

What the attacker needed

Access to the website; ability to intercept requests

How it was found

  1. Book a cake and intercept the request.
  2. Observe the user_id parameter in the request.
  3. Change the user_id to another value in the range 50000–59999 to modify that user's information.
  4. For free orders, identify broken cart_id values and call the API to confirm an order without payment.

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.

The website used a number to identify each user, and that number was sent in the request. By changing the number, the attacker could edit other people's details like email and phone, taking over their accounts. Also, some shopping cart identifiers were faulty, letting the attacker confirm orders without paying.

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.

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.