Описание
XWiki Platform has path traversal via resources parameter in ssx and jsx endpoints when using leading slash
Impact
It's possible to get access and read configuration files by using URLs such as http://localhost:8080/bin/ssx/Main/WebHome?resource=/../../WEB-INF/xwiki.cfg&minify=false.
This can apparently be reproduced on Tomcat instances.
Patches
This has been patched in 18.0.0-rc-1, 17.10.3, 17.4.9, 16.10.17.
Workarounds
There is no known workaround, other than upgrading XWiki.
References
- https://jira.xwiki.org/browse/XCOMMONS-3547
- https://github.com/xwiki/xwiki-commons/commit/a979cafd89f6a9c9c0b9ab19744d672df64429bf
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
Attribution
The vulnerability was reported by Michał Kołek.
Пакеты
org.xwiki.commons:xwiki-commons-classloader-api
>= 4.2-milestone-2, < 16.10.17
16.10.17
org.xwiki.commons:xwiki-commons-classloader-api
>= 17.0.0-rc-1, < 17.4.9
17.4.9
org.xwiki.commons:xwiki-commons-classloader-api
>= 17.5.0, < 17.10.3
17.10.3
org.xwiki.commons:xwiki-commons-classloader-api
>= 18.0.0-rc-1, < 18.1.0-rc-1
18.1.0-rc-1
Связанные уязвимости
XWiki 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.