MedDream PACS Premium modifyAnonymize reflected cross-site scripting (XSS) vulnerability
The name parameter of the modifyAnonymize script is written into the HTML page without sanitisation, so a crafted URL causes script to run in the victim's browser. An attacker could send such a link to execute arbitrary JavaScript in the context of the PACS site.
Originally disclosed on Cisco Talos
A reflected cross-site scripting (xss) vulnerability exists in the modifyAnonymize functionality of MedDream PACS Premium 7.3.6.870. A specially crafted malicious URL 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 script echoes the user-supplied name parameter into several HTML output locations without encoding or sanitising it.
Impact
An attacker could run arbitrary JavaScript in a victim's browser session on the PACS site, though the response sets X-XSS-Protection and X-Frame-Options headers.
What the attacker needed
Victim clicks a crafted link; no authentication needed
The fix
The vendor released a patch, and the parameter should be HTML-encoded before being written into the page.
How it was found
- Send a request to the modifyAnonymize script with a script payload in the name parameter.
- The server returns a page containing the payload unencoded in the template heading and the not-found message.
- The victim's browser executes the injected script.
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.
The page takes a value from the web address and puts it straight into the page it sends back. If that value is a piece of script, the browser runs it as if the site itself had written it. An attacker only has to trick someone into opening a prepared link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.