MedDream PACS Premium modifyRoute reflected cross-site scripting (XSS) vulnerability
The source parameter of the modifyRoute.php script is written into the HTML error message without sanitisation, so a crafted URL reflects attacker-supplied markup back to the browser. An attacker could send a victim a link that runs arbitrary JavaScript in the context of the PACS application.
Originally disclosed on Cisco Talos
A reflected cross-site scripting (xss) vulnerability exists in the modifyRoute 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 application prints the user-controlled source parameter into an HTML error message without encoding it.
Impact
An attacker could run arbitrary JavaScript in a victim's browser session on the PACS application, though the response sets X-XSS-Protection and X-Content-Type-Options headers and the CVSS score rates confidentiality and integrity impact as low.
What the attacker needed
Victim clicks a crafted link; no authentication needed
The fix
The vendor released a patch; the underlying fix is to HTML-encode the source value before printing it into the error message.
How it was found
- Send a request to the modifyRoute script with source, destination and keytag parameters set.
- Set the source value to markup that the browser will treat as script.
- Choose a source value that is not present in the database so the error branch runs.
- Observe the supplied markup reflected unescaped in the returned HTML page.
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.
When a web page takes a value from the address bar and puts it straight into the page, an attacker can put code there instead of plain text. Here the application echoes back a name it could not find in its database, and it does not clean that name first. A victim who opens the attacker's link runs that code inside the medical imaging site, which trusts it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.