MedDream PACS Premium encapsulatedDoc reflected cross-site scripting (XSS) vulnerability
The mimetype parameter of the encapsulatedDoc script is written into the HTML error message without sanitisation, so a crafted URL reflects script into the page. An attacker who gets a logged-in user to open such a URL could run arbitrary JavaScript in that user's session.
Originally disclosed on Cisco Talos
A reflected cross-site scripting (xss) vulnerability exists in the encapsulatedDoc 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 mimetype request parameter is echoed into the HTML error message without encoding or validation.
Impact
An attacker could run arbitrary JavaScript in a logged-in user's browser session, though the exploit requires the victim to be authenticated and to open the crafted URL.
What the attacker needed
Valid login to the application; victim opens a crafted URL
The fix
The mimetype value should be HTML-encoded before being printed in the error message; the vendor released a patch on 2025-12-05.
How it was found
- Log in to the application so the encapsulatedDoc script is reachable.
- Send a request to the encapsulatedDoc script with a mimetype value that is not a known key in the icon table.
- The server returns an error page containing the supplied value unencoded, and the browser executes it.
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 web page takes a value from the address bar and puts it straight into the page it sends back. If that value is a small script, the browser runs it as if the site itself had written it. Because the page is only reachable after logging in, the attacker has to trick a logged-in user 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.