Skip to content
IDOR Write-up Beginner

IDOR leads to Data leakage and Profile Update

The user update endpoint accepted any user ID without checking ownership, so an authenticated attacker could change another user's first and last name and read their email, company details, referral code and subscription plan. The endpoint also lacked brute-force protection, so an attacker could enumerate user IDs to target many accounts.

vict0ni Follow

Published on web.archive.org

In another bug bounty session of mine, I came across a bounty program of a “Contract Review” company.

vict0ni, on web.archive.org

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 trusted the user ID in the URL and did not verify that it belonged to the authenticated user.

Impact

An authenticated attacker could modify other users' names and read their email, company details, referral code and subscription plan; the endpoint also lacked brute-force protection, so user IDs could be enumerated to target many accounts.

What the attacker needed

A free account; knowledge of another user's ID

How it was found

  1. Create two accounts and capture the profile update request for account A.
  2. Note the user ID of account B.
  3. Send the same update request but replace the user ID with account B's ID.
  4. Observe that the response returns account B's data and the update succeeds.

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 app gives you a token that proves who you are. The app should also check that you are allowed to change only your own profile. Here it did not, so anyone with a valid account could edit other people's profiles and see their private details by swapping the user ID in the request.

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.

More by vict0ni

View all

6 more disclosed reports, best first.

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.