CVE-2022-23621
Missing authorization in xwiki-platform
Description
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
- Email us at our security mailing list
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.xwiki.platform » xwiki-platform-oldcore | < 12.10.9>= 13.0.0, < 13.4.3>= 13.6-rc-1, < 13.7-rc-1 | 12.10.9, 13.4.3, 13.7-rc-1 |
Blast radius
57% of the dependent artifacts (503) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 24,694 |
| 2 hops | 24,426 |
| 3 hops | 10,650 |
| 4 hops | 1,932 |
| 5 hops | 116 |
| 6 hops | 2 |
Most used dependents
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.xwiki.platform » xwiki-platform-rest-server85 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
- org.xwiki.platform » xwiki-platform-administration-ui75 usages
- org.xwiki.platform » xwiki-platform-test-page72 usages
- org.xwiki.platform » xwiki-platform-test-oldcore71 usages
- org.xwiki.platform » xwiki-platform-panels-ui62 usages
- org.xwiki.platform » xwiki-platform-configuration-default57 usages
- org.phenotips » patient-data-api52 usages
- com.xwiki.licensing » application-licensing-licensor-api51 usages
- org.xwiki.platform » xwiki-platform-skin-skinx49 usages
- org.xwiki.platform » xwiki-platform-livetable-ui48 usages
- org.xwiki.platform » xwiki-platform-rendering-wikimacro-store47 usages
- org.xwiki.platform » xwiki-platform-uiextension-api47 usages
- org.phenotips » vocabularies-api46 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2022-23621 | nvd.nist.gov |
| Package | xwiki/xwiki-platform | github.com |
| Web | xwiki/xwiki-platform advisory GHSA-2jhm-qp48-hv5j | github.com |
| Web | xwiki/xwiki-platform commit df8bd49 | github.com |
| Web | browse/XWIKI-18870 | jira.xwiki.org |
