Skip to content
IDOR Write-up Beginner

Postbook

The walkthrough shows that a post-creation request accepts a user identifier supplied by the client, so a user can create a post attributed to another account. It also hints at further flags found through other manipulations, but the text does not describe them.

medium.com

Published on medium.com

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

What the attacker needed

A user account on the target; ability to intercept or edit the request

How it was found

  1. Go to your own profile and open the page to create a post.
  2. Change the user id in the request to 1.
  3. Submit the post.

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.

A website should decide who you are from your login session, not from a number you send in the request. Here the post form let the user change that number, so the site created the post as if another user had written it. This is a type of access-control mistake called an insecure direct object reference.

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.