Persistent XSS in Sitecore 9.0 Media Library and File Manager
A persistent cross-site scripting (XSS) vulnerability exists in Sitecore 9.0 rev 171002 within the Media Library and File Manager components. An authenticated, unprivileged user can modify the file extension parameter of an uploaded file to inject arbitrary JavaScript code, which will be stored and executed in the context of other users who access the affected components.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of other users, potentially leading to session hijacking, data theft, or further compromise of the Sitecore instance. Since the XSS is persistent, the payload will be executed each time the affected resource is viewed.
If you can’t patch tonight, do this now.
Restrict access to the Media Library and File Manager to trusted users only. Employ web application firewalls (WAFs) with XSS filtering capabilities. Monitor for suspicious file uploads and review user activity logs for signs of exploitation.
Patch, then assume compromise.
Upgrade to a patched version of Sitecore where this vulnerability is addressed. Ensure that user input, especially file extension parameters, is properly sanitized and validated before being stored or rendered.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.