How a Replayed API Request Bypassed Backend Restrictions
The backend API for creating a school did not check whether the teacher account already had a school, so replaying the same captured request created multiple schools despite the UI hiding the option. After a password reset, the same request still worked once the user logged in again, showing the token revocation did not prevent reuse of the old request.
medium.com
Published on medium.com
While testing an online education platform’s teacher portal, I noticed something interesting.
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 backend endpoint for school registration lacked a check that the authenticated user already had a school, and token revocation did not invalidate the captured request after reauthentication.
Impact
An attacker could bypass the one-school-per-account rule and create unlimited school records, potentially polluting the database and causing inconsistencies between frontend and backend logic.
What the attacker needed
A teacher account; ability to intercept and replay requests
The fix
The backend should enforce a check that the user does not already have a school before allowing creation, and should also apply rate limiting and monitoring.
How it was found
- Create a teacher account and log in to the portal.
- Navigate to My Profile → My School and add a school while intercepting the request.
- Save a copy of the school creation request in Burp Repeater.
- After the school is created, replay the saved request and observe a 201 Created response.
- Refresh the page and see multiple schools associated with the same account.
- Reset the password, log in again, and replay the same saved request to create another school.
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 website's interface can hide buttons, but the server behind it must still check every request. Here, the server accepted the same 'create school' request over and over, even though the screen only allowed one school per teacher. After a password change, the old request still worked once the user logged back in, which should not happen.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.