CVE-2024–53568:Stored Cross-Site Scripting (XSS) Vulnerability
The Volmarg PMS image upload feature did not properly sanitise file metadata or filenames, allowing a low-privileged user to store executable JavaScript. When an admin or other user viewed the uploaded image, the script ran in their browser, enabling session hijacking or actions on their behalf.
Rudransh Singh Rajpurohit Follow
Published on medium.com
While reviewing the Volmarg PMS application, I uncovered a critical stored XSS vulnerability in the image upload feature, now tracked as CVE-2024–53568.
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 application rendered uploaded file metadata or filenames in a browser page without sanitising or escaping them, so injected script tags or event handlers executed.
Impact
Malicious scripts could run in the victim's browser, allowing an attacker to hijack user sessions, steal data, or perform actions on behalf of an authenticated user, and the flaw could be chained with other issues to escalate privileges.
What the attacker needed
A low-privileged account; ability to upload an image; victim views the uploaded image page
The fix
The vendor has refused to fix this, so the application should sanitise and escape all uploaded file metadata and filenames before rendering them in a browser.
How it was found
- A low-privileged user uploads an image file using the built-in UI.
- The metadata of the uploaded file is manipulated to contain a script tag or JavaScript event handler.
- When an admin or user browses to the page displaying that uploaded image, the malicious script executes silently in their browser.
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.
Stored cross-site scripting (XSS) is when a website saves harmful code that a user submitted and later shows it to other people. Here, an uploaded image could carry hidden JavaScript in its file details, and that code ran automatically when someone looked at the image page. The attacker could then act as the logged-in victim, for example by stealing their session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.