Bypassing Date Restrictions in an Educational Platform: A Logic Flaw Exploit
The educational platform enforced a 30-day gap between assessment types only in the browser interface, not on the server. A teacher could intercept the edit request and set an earlier start date, then schedule a Mid-Year assessment within the restricted period.
Published on medium.com
In today’s blog, I’ll be sharing a cool bug that I discovered related to application logic flow.
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 server trusted the client to enforce the 30-day interval and did not re-validate the submitted start date against the existing assessment dates.
Impact
Teachers could create assessments without the 30-day restriction, potentially skewing student assessment timelines; the feature is paid.
What the attacker needed
A teacher account; ability to intercept HTTP requests
The fix
The issue was resolved within 10 days, likely by adding server-side validation of the date restrictions.
How it was found
- Log in as a teacher and create a Pre-Assessment.
- Schedule the Pre-Assessment with a start date of 6/28/2024.
- Try to create a Mid-Year Assessment on 7/10/2024 and see the GUI block it for violating the 30-day interval.
- Go back to the Pre-Assessment and click edit.
- Intercept the edit request and change the start date to an earlier date such as 6/10/2024.
- Forward the request, get a 200 OK, refresh the page, and then schedule the Mid-Year Assessment on 7/10/2024.
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.
The website checked the date rules only in the page you see, not on the server that saves the data. By changing the request before it was sent, the teacher could set a date the page would normally refuse. This let them schedule assessments closer together than the rules allowed.
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.