MedDream PACS Premium fetchPriorStudies reflected cross-site scripting (XSS) vulnerability
The fetchPriorStudies script writes the user-supplied uid parameter straight into the HTML page without sanitising it. An attacker who gets a logged-in user to open a crafted URL can run arbitrary JavaScript in that user's session.
Originally disclosed on Cisco Talos
A reflected cross-site scripting (xss) vulnerability exists in the fetchPriorStudies 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 reads the uid request parameter and prints it directly into the HTML response without encoding or validation.
Impact
An attacker could execute arbitrary JavaScript in a victim's authenticated session, though the exploit requires the victim to be logged in and to open the crafted URL.
What the attacker needed
Valid authenticated session; victim opens a crafted URL
The fix
The uid value should be HTML-encoded before being printed into the page; the text notes a vendor patch was released but does not describe it.
How it was found
- Log in to the MedDream PACS interface so a valid session exists.
- Send a request to the fetchPriorStudies script with a uid value containing HTML and JavaScript and a remoteae value.
- Observe the response page containing the injected markup inside the study message.
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.
A web page can include small programs called JavaScript that run in your browser. This medical imaging server takes a value from the web address and pastes it into the page without cleaning it first, so an attacker can put their own JavaScript there. If a logged-in user clicks the attacker's link, that code runs as if the site itself had written it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.