Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Cross-Site Scripting (XSS) vulnerabilities in an interactive lesson.
Start learningUpgrade org.xwiki.platform:xwiki-platform-web-templates
to version 14.10.12, 15.5-rc1 or higher.
org.xwiki.platform:xwiki-platform-web-templates is a Web Resources for the XWiki platform.
Affected versions of this package are vulnerable to Cross-Site Scripting (XSS). An attacker can create a template provider containing malicious code on any document that is part of the wiki. This code is executed when a user selects this template provider during document creation. Depending on the rights of the user, this may allow remote code execution and full read and write access to the whole XWiki installation.
As a simple user with no script right, edit the user profile with the object editor and add an object of type "Template Provider Class". Set the name to "My Template", set template to any page on the wiki. In "Creation Restrictions", enter <img onerror="alert(1)" src="https://www.example.com". Accept the suggestion to add this string in the dropdown. Click "Save & View"
As any user with edit right, open <xwiki-host>/xwiki/bin/create/Main/WebHome?parent=&templateprovider=XWiki.<username>&name=foo&spaceReference=Bar
, where is the URL of your XWiki installation and is the username of the attacker.