Skip to content
IDOR Write-up Beginner

Edmodo — IDOR to view private files of any class

The edit-post endpoint accepted a file ID parameter without verifying ownership, so an attacker could change the ID to link any private file to their own post. This allowed viewing attachments from any private class without membership.

Rohan Pagey Follow

Published on medium.com

TL;DR A PUT request to editing post endpoint involved file-id parameter,changing that parameter would link that file to my post

Rohan Pagey, 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 did not verify that the file ID belonged to the user or their class before attaching it to a post.

Impact

An attacker could view every attachment posted in any private class or group without being a member.

What the attacker needed

A teacher account; ability to edit a post with an attachment

The fix

The bug was fixed according to the timeline.

How it was found

  1. From a teacher account, go to a class and capture the request for editing a post that has an attachment.
  2. Observe the request body contains a files array with an id parameter.
  3. Change that id to any other number.
  4. The file with that id becomes linked to your post, allowing you to view it.

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.

When you edit a post, the app lets you attach a file by its ID number. The server did not check if you actually owned that file, so you could guess other IDs and see private files from classes you were not in.

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.

More from Edmodo

View all

The newest disclosed reports for this program.

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.