Four CVEs in a Row: A Deep Dive into Recent Vulnerability Discoveries
The student profile photo upload in an online course registration system accepted files without validating type or content, so an attacker could upload an SVG or HTML file containing JavaScript. When an administrator viewed the profile, the script ran in the administrator's browser session.
As a security researcher, there’s nothing quite like the rush of discovering a vulnerability. But finding four CVEs in quick succession?
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
The upload handler did not check the file's real type or content, and stored the file where it was later rendered in the browser.
Impact
The injected script ran with administrator privileges, so an attacker could steal session tokens, act as the administrator, create admin accounts, change configuration and read all student data.
What the attacker needed
Ability to upload a profile photo; administrator views the profile
The fix
The upload should be fixed by allowing only safe file types, checking the real content type on the server, sanitising SVGs, serving uploads from a separate domain with safe headers, and applying a restrictive CSP.
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 file upload feature let people upload any kind of file, including web pages that contain code. When an administrator opened the uploaded file, that code ran inside the administrator's own browser session, so the attacker could act as the administrator.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.