Skip to content
Info disclosure Write-up Beginner

Edu-Hack: How a Simple Request Compromised Entire Classrooms Users

A classroom search endpoint returned sensitive user tokens, including password reset tokens, for all users in a classroom. An attacker with a classroom code could obtain these tokens and take over any user's account.

uchihamrx Follow

Published on uchihamrx.medium.com

During my recent penetration testing engagement for a company, In the educational application, teachers can create and share classrooms with students. However, a significant error occurs when the application makes a standard request to fetch classroom information.

Abdelrhman Amin, on uchihamrx.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

Impact

An attacker could take over any user account in a classroom and potentially seize control of the entire classroom.

What the attacker needed

Knowledge of a classroom code

How it was found

  1. Send a GET request to the classroom search endpoint with a known classroom code.
  2. Observe that the response contains sensitive tokens for all users in the classroom.
  3. Use a leaked password reset token to reset a targeted user's password and take over their account.

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 search for a classroom, the app sends back extra secret information about every user in that classroom, like a special key that lets someone reset a password. Anyone who knows the classroom code can ask for that information and then use the secret key to log in as another person.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.