MedDream PACS Premium modifyUser reflected cross-site scripting (XSS) vulnerability
The modifyUser.php script in MedDream PACS Premium writes the user parameter into the HTML page without sanitisation, so a crafted URL causes script execution in the victim's browser. An attacker who gets a logged-in user to open such a link could run arbitrary JavaScript in that user's session.
Originally disclosed on Cisco Talos
A reflected cross-site scripting (xss) vulnerability exists in the modifyUser 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 user parameter is printed directly into the HTML output in several places without any encoding or sanitisation.
Impact
An attacker could run arbitrary JavaScript in a logged-in user's browser, though the exploit requires the victim to be authenticated and to open a crafted URL.
What the attacker needed
Valid authenticated session; victim opens a crafted link
The fix
The vendor released a patch, and the script should encode the user value before writing it into the page.
How it was found
- Log in to the MedDream PACS interface so a valid session exists.
- Send a request to the modifyUser script with a crafted user parameter containing markup.
- Observe the injected markup reflected unescaped in the returned page title and body.
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 reflected cross-site scripting bug means a web page takes something from the address bar and puts it straight into the page it shows back. If that something is code rather than plain text, the browser runs it as if the site itself had written it. Here the user name shown on the profile page is echoed back unsafely, so a link containing code makes the site run that code for whoever clicks it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.