Skip to content
Access control Write-up Beginner

Locks Without Keys: The Power to Ban Users and Freeze a Platform�

Two endpoints on an e-commerce platform lacked authorization checks: one allowed any logged-in user to block any other user, and another let a regular user set a product's disallowed payment methods. An attacker could ban legitimate users or administrators, and could block every payment method on a product so nobody could buy it.

0Xhossam Follow

Published on medium.com

(@ln0rag, @Abdelrhman, @Ali, @Hossam, @Mohamed)

0Xhossam, 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 the caller's valid session but never verified that the caller had admin privileges for these actions.

Impact

A malicious actor could systematically ban legitimate users, competitors, or administrators, and could block all payment methods on a product so legitimate buyers could not complete checkout.

What the attacker needed

A regular user account; knowledge of target user or product IDs

How it was found

  1. Analyse the site's JavaScript and map its API endpoints.
  2. Send a request to the user-blocking endpoint using a regular user's token and observe a 200 OK.
  3. Find a PATCH request for product details containing a notAllowedPaymentMethods parameter.
  4. Send that PATCH request from a regular account with an array of payment method IDs.
  5. Send a complete list of every payment method to block all purchases for the product.

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 a website lets you do something, it should first check that you are allowed to do it. Here, two admin-only actions could be performed by any normal user because that check was missing. One let a user block anyone's account; the other let a user stop a product from being bought by disabling all its payment options.

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.

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.