XWiki Platform: Path traversal via resources parameter in ssx and jsx endpoints when using leading slash
xwiki-commons
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.commons:xwiki-commons-classloader-api Maven |
|
|
xwiki-commons
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.commons:xwiki-commons-classloader-api Maven |
|
|
18.1.0-rc-1XWiki Platform is a generic wiki platform. Versions prior to 18.1.0-rc-1, 17.10.3, 17.4.9, and 16.10.17 allow access to read configuration files by using URLs such as http://localhost:8080/bin/ssx/Main/WebHome?resource=/../../WEB-INF/xwiki.cfg&minify=false, leading to Path Traversal. The vulnerability is can be exploited via resources parameter the ssx and jsx endpoints by using leading slashes. This issue has been patched in 18.1.0-rc-1, 17.10.3, 17.4.9, 16.10.17.
From the CVE record · GitHub_M
The ssx and jsx endpoints allow path traversal through leading slashes in the resource parameter. An attacker who can send a crafted request can read configuration files; the input does not specify whether authentication or user interaction is required.
Teams running XWiki Platform with Maven package org.xwiki.commons:xwiki-commons-classloader-api in versions >=4.2-milestone-2 <16.10.17, >=17.0.0-rc-1 <17.4.9, >=17.5.0 <17.10.3, or >=18.0.0-rc-1 <18.1.0-rc-1 should check their deployments.