Skip to content
IDOR Write-up Beginner

how a single JSON parameter allowed unauthorized manipulation(IDOR)

The affiliate platform's postback update endpoint accepted an affiliateId from the client instead of deriving it from the session, allowing an attacker to modify another account's postback URL. An attacker could redirect conversion tracking for a victim account, potentially manipulating revenue attribution.

georgezakary60 Follow

Published on medium.com

In bug bounty hunting, it’s tempting to chase complex vulnerabilities — race conditions, chained exploits, or crypto flaws. But some of the most impactful findings come from something much simpler:A system trusting user input just a little too much.

Georgezakary, 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 the client-supplied affiliateId field rather than deriving the user's identity from the authenticated session.

Impact

An attacker could modify another affiliate account's postback URL, potentially manipulating conversion tracking and revenue attribution.

What the attacker needed

A free account on the platform; knowledge of the victim's affiliate ID

The fix

The server should derive the affiliate identity from the authenticated session and ignore any client-supplied affiliateId.

How it was found

  1. Log in as Account A and intercept the postback update request.
  2. Replace the affiliateId value with Account B's ID.
  3. Forward the request and observe a 200 OK response.
  4. Log in as Account B and refresh the page to confirm the postback URL 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.

An affiliate platform tracks sales by having servers send messages (postbacks) to a URL when a conversion happens. The bug was that the server trusted a user-supplied account number in the request instead of checking who was logged in, so one user could change another user's tracking URL.

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.