Skip to content
IDOR Write-up Beginner

How i found my first 3 bugs in public program in bugcrowd

The author found three access-control flaws on an online learning platform: a user profile endpoint that returned other users' data when the HTTP method was changed from PUT to GET, a class management feature where a student could remove a teacher, and private activities accessible by changing the numeric ID in the URL without an invite link or code. An attacker could read other users' profile information, disrupt classes by removing teachers, and access uninvited activities.

medium.com

Published on medium.com

“بِسْ� ِ اللَّهِ، وَالْحَ� ْدُ لِلَّهِ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَى رَسُولِ اللَّهِ، اللَّهُ� َّ عَلِّ� ْنَا � َا يَنْفَعُنَا، وَانْفَعْنَا بِ� َا عَلَّ� ْتَنَا، وَزِدْنَا عِلْ� ًا”

sudo, 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 missing or inconsistent authorisation checks on several endpoints, including one that only enforced permissions for the PUT method but not GET, and others that trusted user-supplied identifiers without verifying class membership or invite status.

Impact

An attacker could read other users' full profile information, remove a teacher from their own class, and access private activities without an invite link or code.

What the attacker needed

A free account; two accounts for testing; ability to intercept HTTP requests

How it was found

  1. Create and verify a teacher account and a student account.
  2. Intercept the avatar change request and note the user ID in the URL.
  3. Change the user ID to another user's ID and observe a 403 response.
  4. Change the request method from PUT to GET and resend to receive the other user's full profile.
  5. As a teacher, create a class and promote the student to admin.
  6. As the student, remove the teacher from the class.

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.

This write-up describes three separate access-control mistakes on a learning website. In each case, the site did not properly check whether the person making a request was allowed to do so, letting the author view other people's profiles, remove a teacher from a class, and open private activities just by changing a number in the web address.

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.