Skip to content
IDOR Write-up Intermediate

How I found an IDOR in Google Classroom on Day 3 of my Hunting?

A private comment RPC method in Google Classroom did not check that the caller was entitled to post to a given submission thread, so an attacker could post a comment onto another student's private thread by swapping the submission ID. A separate endpoint also returned submission IDs for all students in a class, making the attack practical.

infosecwriteups.com

Published on infosecwriteups.com

Hope you are well. This is my first writeup and I will tell you how I found IDOR on Google Classroom on Day 3 of my hunting on Google.

Marrij Ali Khan, on infosecwriteups.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 batchexecute RPC handler for posting private comments trusted the submission ID in the request body and never verified that the caller was the submission owner or the teacher.

Impact

An attacker could post comments into another student's private submission thread, visible to that student and their teacher, and could obtain the submission IDs needed to do so from a separate endpoint.

What the attacker needed

A Google account enrolled in the course; victim's submission ID (leaked by another endpoint); ability to intercept requests

How it was found

  1. Set up two accounts enrolled in the same course with submitted assignments.
  2. Capture the request that posts a private comment on your own submission.
  3. Copy the victim's submission ID from their account's equivalent request.
  4. Replace your submission ID with the victim's, keep your own session, and send the request.
  5. Open the victim's account and confirm the attacker comment appears in their private thread.

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.

Google Classroom lets a student and teacher exchange private notes on an assignment. The server should check that whoever posts a note actually belongs to that assignment. Here it did not, so one student could write into another student's private thread by changing a number in the request.

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.