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.
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.
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
- Send a GET request to the classroom search endpoint with a known classroom code.
- Observe that the response contains sensitive tokens for all users in the classroom.
- 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.