Skip to content
IDOR Write-up Beginner

Critical IDOR Vulnerability leads to PII leakage

An endpoint that returns user notes accepted an email address in the request body and returned that user's account details without checking that the caller owned the email. An attacker with any account could supply another person's email and receive their phone number and account information.

snc0pe Follow

Published on snc0pe.medium.com

Source : https://hackerone.com/reports/1773609

Snc0pe, on snc0pe.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

The server trusted the user-supplied email parameter and did not verify that the authenticated session belonged to the owner of that email.

Impact

An attacker could harvest PII such as phone numbers and account details for many users, which could enable phishing, identity theft or financial fraud.

What the attacker needed

A legitimate user account; knowledge of a victim's email address; ability to intercept and modify requests

The fix

The endpoint should check that the supplied email matches the authenticated session, or use non-guessable identifiers tied to the session, and add rate limiting and monitoring.

How it was found

  1. Log in with a legitimate account and intercept the POST request to the user notes endpoint.
  2. Replace the email value in the request body with another user's email address.
  3. Send the modified request.
  4. Observe the response containing the victim's phone number and account information.

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 IDOR is when a website looks up a record using an identifier the user supplies, but forgets to check that the user is allowed to see that record. Here the identifier was an email address, so anyone logged in could ask for someone else's details and the server handed them over. The fix is to check the logged-in user against the record before returning it.

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.