Skip to content
Access control Write-up Intermediate

Privilege Escalation | stealing user’s point | Bugcrowd

An API endpoint that converts user points to coupon codes lacked authentication and rate limiting, requiring only an email address and an external reference ID. An attacker could brute-force these identifiers to convert any user's points into coupons and use them for purchases.

Abhind Abhi Follow

Published on medium.com

Hi guys! This blog is about how I found privilege escalation on a web application.

Abhind, 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 API endpoint was implemented without authentication checks and without rate limiting, relying only on predictable identifiers.

Impact

An attacker could use any user's points to generate coupon codes and buy products, as demonstrated by the author.

What the attacker needed

Knowledge of a victim's email; guessable external reference ID; no rate limiting on endpoint

The fix

The endpoint should require authentication and implement rate limiting to prevent brute-force attacks.

How it was found

  1. Explore the application and identify an API endpoint that converts points to coupon codes.
  2. Notice that this endpoint does not require authentication cookies.
  3. Create a different account to examine the external reference ID's entropy.
  4. Brute-force email IDs and randomly generated external IDs using Burp Intruder.
  5. Successfully convert another user's points to a coupon code.

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 is a privilege escalation bug where a function that should require login did not check for authentication. The endpoint only needed an email and a reference ID, which could be guessed or found, allowing anyone to act as another user and steal their reward points.

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.