Skip to content
IDOR Write-up Beginner

One Phone Number = Unlimited Free Meals at California Burrito ️

The loyalty website's login accepted a client-controlled boolean flag, so changing it from false to true logged the attacker into any account. A separate loyalty-points API took the mobile number as a parameter without checking ownership, letting the attacker read other users' points and coupons.

medium.com

Published on medium.com

Hey Paals… 😁😁 Came up with one more finding… and this time it started with FOOD 🌯�

Anudeep Vysyaraju, 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 a client-supplied boolean for authentication and used a user-controlled mobile number for authorisation on the loyalty API.

Impact

An attacker could log into other users' accounts and read their loyalty points and coupons, potentially redeeming rewards; the report says OTP verification was added for redemption but the login bypass and IDOR were not fully fixed.

What the attacker needed

Internet access to the website; ability to intercept and modify requests; a phone number to try

The fix

The server should not trust a client-supplied boolean for authentication and should verify that the authenticated user owns the mobile number requested from the loyalty API.

How it was found

  1. Open the login page and enter a random phone number.
  2. Observe the response returns a boolean value.
  3. Change the boolean from false to true and resend the request.
  4. Confirm login succeeds and loyalty points and coupons are shown.
  5. Call the loyalty points API with a different mobile number.
  6. Use Burp Suite Intruder with a list of numbers to check many accounts.

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 you log in, the website checks your details and tells the browser whether you are allowed in. Here that answer was a simple true/false value the browser could change, so anyone could flip it to true and get in. Separately, a page that shows loyalty points asked for a phone number and returned that person's data without checking that the request came from that person.

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.