CSRF Vulnerability Leads to Course DoS
A course-completion endpoint accepted cross-site POST requests without CSRF protection, letting an attacker mark chapters complete for a logged-in user. By adding a single quote to the chapter name value, the attacker could also break the user's course progress so they could not advance to the next chapter.
Published on exploit5lovers.medium.com
I found a bug on a bug bounty program. It was a CSRF flaw that didn’t seem like a big deal at first.
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 chapter-completion endpoint lacked CSRF protection and stored the chapter name without validating or escaping it, so a quote character corrupted the saved progress record.
Impact
An attacker could remotely make any course inaccessible to a logged-in user, breaking the product for them and potentially causing loss of work.
What the attacker needed
Victim is logged in; victim opens attacker's page; attacker knows course and module IDs
How it was found
- Log in to the educational portal and open a course chapter.
- Click the Complete button and intercept the resulting request.
- Note that the request carries no CSRF protection.
- Build an HTML page with a hidden form that auto-submits the same request.
- Add a single quote to the chapter name value in the request.
- Open the page while logged in and observe that the course can no longer be progressed.
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.
CSRF (cross-site request forgery) is when another website makes a logged-in user's browser send a request the user did not intend. Here the 'complete chapter' request had no protection, so a page the victim visited could silently submit it. Adding a stray quote character to the chapter name then corrupted the saved progress, so the victim could no longer move on.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.