GHSA-pwfv-3cvg-9m4c
org.xwiki.platform:xwiki-platform-oldcore makes Incorrect Use of Privileged APIs with DocumentAuthors
Quick fix
GHSA-pwfv-3cvg-9m4c — org.xwiki.platform:xwiki-platform-oldcore: upgrade to the fixed version with the command below.
# pom.xml: bump <version>14.10</version> for org.xwiki.platform:xwiki-platform-oldcoreDetails
### Impact
The Document script API returns directly a DocumentAuthors allowing to set any authors to the document, which in consequence can allow subsequent executions of scripts since this author is used for checking rights. Example of such attack:
``` {{velocity}} $doc.setContent('{{velocity}}$xcontext.context.authorReference{{/velocity}}') $doc.authors.setContentAuthor('xwiki:XWiki.superadmin') $doc.getRenderedContent() {{/velocity}} ```
### Patches The problem has been patched in XWiki 14.10 and 14.4.7 by returning a safe script API.
### Workarounds There no easy workaround apart of upgrading.
### References
* https://jira.xwiki.org/browse/XWIKI-20380 * https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83
### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira](https://jira.xwiki.org) * Email us at [security ML](mailto:security@xwiki.org)
Are you affected?
Enter the version of the package you're using.
Affected packages
14.5Fixed in: 14.10# pom.xml: bump <version>14.10</version> for org.xwiki.platform:xwiki-platform-oldcore14.4.1Fixed in: 14.4.7# pom.xml: bump <version>14.4.7</version> for org.xwiki.platform:xwiki-platform-oldcoreReferences
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-pwfv-3cvg-9m4c[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2023-29507[ADVISORY]
- https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83[WEB]
- https://github.com/xwiki/xwiki-platform[PACKAGE]
- https://jira.xwiki.org/browse/XWIKI-20380[WEB]