GHSA-2jhm-qp48-hv5j
Missing authorization in xwiki-platform
Quick fix
GHSA-2jhm-qp48-hv5j — org.xwiki.platform:xwiki-platform-oldcore: upgrade to the fixed version with the command below.
# pom.xml: bump <version>13.7-rc-1</version> for org.xwiki.platform:xwiki-platform-oldcoreDetails
### Impact
Any user with SCRIPT right (EDIT right before XWiki 7.4) can read any file located in the XWiki WAR (for example xwiki.cfg and xwiki.properties) through XWiki#invokeServletAndReturnAsString:
``` $xwiki.invokeServletAndReturnAsString("/WEB-INF/xwiki.cfg") ```
### Patches
It has been patched in XWiki versions 12.10.9, 13.4.3 and 13.7-rc-1.
### Workarounds
The only workaround is to give SCRIPT right only to trusted users.
### References
https://jira.xwiki.org/browse/XWIKI-18870
### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki](https://jira.xwiki.org) * Email us at [our security mailing list](mailto:security@xwiki.org)
Are you affected?
Enter the version of the package you're using.
Affected packages
13.6-rc-1Fixed in: 13.7-rc-1# pom.xml: bump <version>13.7-rc-1</version> for org.xwiki.platform:xwiki-platform-oldcore13.0.0Fixed in: 13.4.3# pom.xml: bump <version>13.4.3</version> for org.xwiki.platform:xwiki-platform-oldcore0Fixed in: 12.10.9# pom.xml: bump <version>12.10.9</version> for org.xwiki.platform:xwiki-platform-oldcoreReferences
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-2jhm-qp48-hv5j[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2022-23621[ADVISORY]
- https://github.com/xwiki/xwiki-platform/commit/df8bd49b5a4d87a427002c6535fb5b1746ff117a[WEB]
- https://github.com/xwiki/xwiki-platform[PACKAGE]
- https://jira.xwiki.org/browse/XWIKI-18870[WEB]