XWiki Platform vulnerable to Cross-site Scripting through attachment filename in uploader
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-web-war Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-web-war Maven |
|
|
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When uploading an attachment with a malicious filename, malicious JavaScript code could be executed. This requires a social engineering attack to get the victim into uploading a file with a malicious name. The malicious code is solely executed during the upload and affects only the user uploading the attachment. While this allows performing actions in the name of that user, it seems unlikely that a user wouldn't notice the malicious filename while uploading the attachment. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0.
From the CVE record · GitHub_M
XWiki Platform can execute malicious JavaScript from an attachment's filename during upload. An attacker must socially engineer a user into uploading the maliciously named file; the code runs only for that user during the upload and can perform actions in their name.
Operators using Maven org.xwiki.platform:xwiki-platform-web-war versions >=4.2-milestone-3 and <14.10.21, >=15.0-rc-1 and <15.5.5, >=15.6-rc-1 and <15.10.6, or >=16.0.0-rc-1 and <16.0.0 should check.