Skip to content
Business logic Write-up Beginner

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.

Rahul Masal, on 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

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

  1. Create a teacher account and log in to the portal.
  2. Navigate to My Profile → My School and add a school while intercepting the request.
  3. Save a copy of the school creation request in Burp Repeater.
  4. After the school is created, replay the saved request and observe a 201 Created response.
  5. Refresh the page and see multiple schools associated with the same account.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.