MODERATE 5.5

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:

Affected Maven artifacts (1)

ArtifactAffected versionsFixed 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

1affected artifacts
354affected versions
881dependent artifacts (est.)
61,820dependent versions

57% of the dependent artifacts (503) still pull an affected version in their latest release.

DepthDependent 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

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.