MedDream PACS Premium emailfailedjob reflected cross-site scripting (XSS) vulnerability
The jobid parameter of the emailfailedjob script is written into an error page without sanitisation, so a crafted URL causes arbitrary JavaScript to run in the victim's browser. An attacker could send such a link to a logged-in user to execute script in the application's context.
Originally disclosed on Cisco Talos
A reflected cross-site scripting (xss) vulnerability exists in the emailfailedjob 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 jobid request parameter is inserted into an HTML error message without encoding or validation.
Impact
An attacker who gets a logged-in user to open a crafted link could run script in that user's session, though the response headers include some browser protections such as a content-type nosniff header and a legacy XSS filter directive.
What the attacker needed
Valid logged-in session; victim opens a crafted link
The fix
The jobid value should be HTML-encoded before being placed in the error message; the text notes a vendor patch release but does not describe the fix.
How it was found
- Log in to the application so a valid session exists.
- Send a request to the emailfailedjob script with a jobid value containing HTML or script.
- The script finds no matching job and renders an error page that includes the jobid value unescaped, so the script runs.
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 puts something a user typed straight into its HTML, a malicious value can include script tags that the browser then runs. This is called reflected cross-site scripting, because the bad input is echoed back in the response. Here the jobid value from the URL ends up inside an error message, so a link containing script would run that script for whoever opens it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.