Skip to content
IDOR Write-up Beginner

Memahami Bug Bounty dan Studi Kasus IDOR di Endpoint Profile

An endpoint that returns a user's profile accepted a numeric id parameter and returned another user's profile data without checking ownership. An attacker could change the id to read other users' personal data.

medium.com

Published on medium.com

Bug Bounty adalah program yang dibuat oleh perusahaan untuk mengundang para peneliti keamanan (security researcher) atau hacker etis guna menemukan dan melaporkan celah keamanan dalam sistem mereka. Sebagai imbalannya, peneliti bisa mendapatkan reward berupa uang, poin reputasi, atau pengakuan publik.

Rangga Ananda S, 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 profile endpoint looked up records by the client-supplied id without verifying that the record belonged to the authenticated session.

Impact

Personal data of other users could be disclosed, which may breach data protection rules; the text does not show how many records were exposed.

What the attacker needed

A free account; knowledge of another user's id

The fix

The endpoint should check access based on the user's session and use object-level access control, and all endpoints with an id parameter should be audited.

How it was found

  1. Log in as an ordinary user.
  2. Request the profile endpoint with your own id.
  3. Change the id to another user's id.
  4. Observe the server returning that other user's data.

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 often uses a number in the address to pick which record to show, like a profile page. If the server trusts that number without checking that the logged-in person owns that record, anyone can change the number and see someone else's information. This is 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.