XWiki allows SQL injection in query endpoint of REST API with Oracle
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore Maven |
|
|
XWiki is a generic wiki platform. It's possible to execute any SQL query in Oracle by using the function like DBMS_XMLGEN or DBMS_XMLQUERY. The XWiki query validator does not sanitize functions that would be used in a simple select and Hibernate allows using any native function in an HQL query. This vulnerability is fixed in 16.10.2, 16.4.7, and 15.10.16.
From the CVE record · GitHub_M
XWiki’s query validator does not sanitize functions used in a simple SELECT, and Hibernate permits native functions in HQL queries. With Oracle, this can allow an attacker to execute arbitrary SQL queries using functions such as DBMS_XMLGEN or DBMS_XMLQUERY. The input does not specify authentication requirements, whether the attack is network-accessible, or whether user interaction is needed.
Teams running XWiki with Maven package org.xwiki.platform:xwiki-platform-oldcore in versions >=1.0 <15.10.16, >=16.0.0-rc-1 <16.4.7, or >=16.5.0-rc-1 <16.10.2 should check their installations.