MedDream PACS Premium config.php multiple reflected cross-site scripting (XSS) vulnerability
Multiple reflected cross-site scripting flaws exist in the config.php script of MedDream PACS Premium, where user-supplied parameters are printed into HTML without sanitisation. An attacker could craft a malicious URL or form submission to execute arbitrary JavaScript in a victim's browser.
Originally disclosed on Cisco Talos
Multiple reflected cross-site scripting (xss) vulnerabilities exist in the config.php functionality of MedDream PACS Premium 7.3.6.870. Specially crafted malicious URLs can lead to arbitrary javascript code execution.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The application writes user-controlled parameter values directly into HTML output without encoding or sanitisation.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser, potentially leading to session theft or other client-side attacks, though the CVSS score reflects limited confidentiality and integrity impact.
What the attacker needed
Victim clicks a crafted link or submits a form; attacker can craft a URL or POST request
The fix
The vulnerabilities were fixed in a vendor patch release.
How it was found
- Send a GET request to config.php with a crafted status parameter containing script code.
- Observe the script code reflected unescaped in the HTML response.
- Send a POST request to config.php with update set and a crafted archivedir parameter pointing to a non-existent directory.
- Observe the archivedir value reflected unescaped in the error message.
- Repeat with other parameters such as longtermdir, uploaddir, thumbnaildir, phpexe, phpdir, worklistsrc, and imagedir.
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 report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website takes input from a user and puts it directly into a page without cleaning it, so an attacker can make the page run their own JavaScript. Here, several settings fields in an admin configuration page are echoed back without encoding, so a crafted link or form can run code in the browser of whoever visits it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.