Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions it's possible for a user to write a script in which any velocity content is executed with the right of any other document content author. Since this API require programming right and the user does not have it, the expected result is `$doc.document.authors.contentAuthor` (not executed script), unfortunately with the security vulnerability it is possible for the attacker to get `XWiki.superadmin` which shows that the title was executed with the right of the unmodified document. This has been patched in XWiki versions 14.10.7 and 15.2RC1. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Remediation
References
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-rmxw-c48h-2vf5
https://github.com/xwiki/xwiki-platform/commit/11a9170dfe63e59f4066db67f84dbfce4ed619c6
https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3
https://jira.xwiki.org/browse/XWIKI-20624
https://jira.xwiki.org/browse/XWIKI-20625
Related Vulnerabilities
CVE-2017-16025 Vulnerability in npm package nes
CVE-2020-12265 Vulnerability in maven package org.webjars.npm:decompress-tar
CVE-2023-50768 Vulnerability in maven package org.sonatype.nexus.ci:nexus-jenkins-plugin
CVE-2023-5654 Vulnerability in npm package react-devtools-core
CVE-2023-27495 Vulnerability in npm package @fastify/csrf-protection