Skip to content
Access control Write-up Beginner

Broken Access Control Vulnerability in an Order Management System

The basket API endpoints did not require authentication, so anyone could read and modify any user's order details, delivery address and cart contents. An attacker could view personal information, change delivery addresses and times, and add or remove products from other users' carts.

omdubey170 Follow

Published on medium.com

The original lives on medium.com

We do not hold its text, 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 basket API endpoints relied only on the basket identifier and never checked the caller's session or ownership of the basket.

Impact

The report states the issue was rated low, but an attacker could still view personal information, tamper with orders causing possible financial damage, and erode user trust.

What the attacker needed

No login required; knowledge of a basket identifier

The fix

The basket API endpoints should require a valid session and verify that the authenticated user owns the basket before returning or changing any data.

How it was found

  1. Log in, add a product to the basket and add a delivery address.
  2. Capture the GET request to the basket API endpoint that lists order and address details.
  3. Open the captured GET request in another browser without logging in and observe the order and address details.
  4. Capture a PUT request that changes the address and delivery time, remove the Authorization token and change the basket ID to another user's.
  5. Use the modified PUT request to change another user's address.
  6. Use a DELETE request with another user's basket ID and a product ID to remove items from their cart, and a PUT request to add products without authentication.

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.

An API is the part of a website that lets the page fetch and change data behind the scenes. Here, those requests did not check who was asking, so a person who was not logged in could still read and change other people's shopping baskets. This is like a hotel where any guest can open any room door because the locks were never fitted.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by omdubey170

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.