Skip to content
IDOR Write-up Beginner

A Simple IDOR That Ignored Platform Logic

The messaging feature accepted an advertisement identifier for an offline listing, so the backend never checked whether the advertisement was available before sending a message. An attacker could message landlords of unavailable advertisements by changing a sequential identifier.

medium.com

Published on medium.com

Hey Hackers, I am Parth Narula. A penetration tester, bug hunter, red teamer and overall a security researcher.

Parth Narula, 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

Impact

An attacker could message landlords of advertisements that were not available for rent, and the identifiers were sequential so they could be guessed or brute-forced.

What the attacker needed

A free account; at least one advertisement; ability to intercept requests

How it was found

  1. Create two advertisements under one account, one online and one offline.
  2. Open the online advertisement and click the message option while intercepting the request.
  3. Note the advertisement identifier parameter in the request.
  4. Change the identifier to the offline advertisement's identifier and resend the request.
  5. Observe that the message is sent and the chat interface opens.

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 (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number, to pick which record to act on, but does not check that you are allowed to act on that record. Here, the message form took an advertisement number and sent the message even when that advertisement was offline, because the server only checked that the number existed, not that the listing was available.

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.