Zero Click Account Takeover in ClassDojo’s Student Login System
The student login endpoint used a six-character classroom code as the only credential and enforced a weak IP-based rate limit. An attacker could rotate IPs to guess codes and take over student accounts.
medium.com
Published on medium.com
I’ll call the targetClassMonkey. It is a platform in educational settings that helps teachers, students, and parents stay connected.
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 classroom code alone served as the authentication credential, and the rate limit was enforced only per IP address, allowing bypass through IP rotation.
Impact
An attacker could take over any student's account and perform mass account takeover, exposing personal data and allowing malware distribution.
What the attacker needed
No account needed; ability to rotate IP addresses
The fix
The text does not state a fix; it suggests adding CAPTCHAs and using tokens or unique identifiers for rate limiting.
How it was found
- Generate all possible six-character classroom codes.
- Send each code in the Authorization header to the classStudentByToken endpoint.
- Rotate IP addresses using Tor to avoid the per-IP rate limit.
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.
A classroom code is like a short password that lets students join a class. The website tried to stop people from guessing it by limiting how many tries come from one internet address, but an attacker can change their address and keep guessing. Because the code is short and the only check, guessing enough times lets an attacker log in as any student.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.