Skip to content
IDOR Write-up Beginner

4300$ Instagram IDOR Bug (2022)

A request that updated a user's Interests settings carried the account's own user identifier in the submitted data, and the server trusted it without checking ownership. An attacker could change or delete the favourite interests and topics of any other account by swapping in that account's identifier.

Nawaf Alkhaldi Follow

Published on medium.com

Bounty$4,300 View original

The original lives on medium.com

We do not hold its text, 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 Interests update endpoint took the user identifier from the request body and acted on it without verifying that it matched the logged-in account.

Impact

An attacker could add, modify or delete the favourite interests and topics of any account, which is a low-severity integrity issue rather than a data breach.

What the attacker needed

An Instagram account; knowing the victim's user id

How it was found

  1. Find the Interests feature and open it while logged in.
  2. Inspect the request sent when saving interests and note the user identifier in the body.
  3. Replace that identifier with another account's identifier and send the request.
  4. Observe that the other account's interests were changed.

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.

Many websites put an identifier for your account into the data your browser sends when you save a setting. If the server accepts whatever identifier arrives without checking that it belongs to you, you can edit someone else's data by changing that number. This is called an insecure direct object reference, or IDOR: the site refers to records by a simple identifier and forgets to confirm you own the record.

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 from Meta

View all

The newest disclosed reports for this program.

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.