{"id":"CVE-2023-48293","published":"2023-11-20T18:14:08Z","modified":"2024-10-11T15:23:39Z","title":"XWiki Admin Tools Application CSRF with QueryOnXWiki allows arbitrary database queries","vendor":"xwiki-contrib","product":"application-admintools","tier":"tail","description":{"text":"The XWiki Admin Tools Application provides tools to help the administration of XWiki. Prior to version 4.5.1, a cross-site request forgery vulnerability in the query on XWiki tool allows executing arbitrary database queries on the database of the XWiki installation. Among other things, this allows modifying and deleting all data of the wiki. This could be both used to damage the wiki and to create an account with elevated privileges for the attacker, thus impacting the confidentiality, integrity and availability of the whole XWiki instance. A possible attack vector are comments on the wiki, by embedding an image with wiki syntax like `[[image:path:/xwiki/bin/view/Admin/QueryOnXWiki?query=DELETE%20FROM%20xwikidoc]]`, all documents would be deleted from the database when an admin user views this comment. This has been patched in Admin Tools Application 4.5.1 by adding form token checks. Some workarounds are available. The patch can also be applied manually to the affected pages. Alternatively, if the query tool is not needed, by deleting the document `Admin.SQLToolsGroovy`, all database query tools can be deactivated.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00438,"percentile":0.38823,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/xwiki-contrib/application-admintools/security/advisories/GHSA-4f4c-rhjv-4wgv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki-contrib/application-admintools/commit/45298b4fbcafba6914537dcdd798a1e1385f9e46","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/ADMINTOOL-92","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":7.76},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"xwiki-contrib","affectedVersions":[{"vendor":"xwiki-contrib","product":"application-admintools","versions":["< 4.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2023-12-19T20:11:10.452417Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.contrib:xwiki-application-admintools","vulnerableRanges":["<4.5.1"],"patched":["4.5.1"],"from":["GHSA-4f4c-rhjv-4wgv"],"provenance":"source"}],"summary":{"text":"The XWiki Admin Tools Application (product application-admintools, from xwiki-contrib) contains a cross-site request forgery flaw in its QueryOnXWiki tool, which allows arbitrary database queries against the XWiki installation's database in versions prior to 4.5.1. An attacker can exploit this over the network without authentication, but needs an administrator to take an action such as viewing a crafted wiki comment that embeds a malicious image reference, after which the attacker can read, modify, or delete wiki data or create a privileged account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:31Z"},"euvd":{"id":"EUVD-2023-2874","exploited":false,"provenance":"source"}}