{"id":"CVE-2023-48292","published":"2023-11-20T18:02:42Z","modified":"2024-08-02T21:23:39Z","title":"XWiki Admin Tools Application Run Shell Command allows CSRF RCE attacks","vendor":"xwiki-contrib","product":"application-admintools","tier":"tail","description":{"text":"The XWiki Admin Tools Application provides tools to help the administration of XWiki. Starting in version 4.4 and prior to version 4.5.1, a cross site request forgery vulnerability in the admin tool for executing shell commands on the server allows an attacker to execute arbitrary shell commands by tricking an admin into loading the URL with the shell command. A very simple possibility for an attack are comments. When the attacker can leave a comment on any page in the wiki it is sufficient to include an image with an URL like  `/xwiki/bin/view/Admin/RunShellCommand?command=touch%20/tmp/attacked` in the comment. When an admin views the comment, the file `/tmp/attacked` will be created on the server. The output of the command is also vulnerable to XWiki syntax injection which offers a simple way to execute Groovy in the context of the XWiki installation and thus an even easier way to compromise the integrity and confidentiality of the whole XWiki installation. This has been patched by adding a form token check in version 4.5.1 of the admin tools. Some workarounds are available. The patch can be applied manually to the affected wiki pages. Alternatively, the document `Admin.RunShellCommand` can also be deleted if the possibility to run shell commands isn't needed.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.7,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02978,"percentile":0.87996,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/xwiki-contrib/application-admintools/security/advisories/GHSA-8jpr-ff92-hpf9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki-contrib/application-admintools/commit/03815c505c9f37006a0c56495e862dc549a39da8","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/ADMINTOOL-91","tags":["x_refsource_MISC"]}],"priority":{"score":29.4,"factors":[{"name":"EPSS percentile","points":17.6},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.79}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-03-29"},"first":{"date":"2025-03-29","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/52105"},"provenance":"source"},"vendorSlug":"xwiki-contrib","affectedVersions":[{"vendor":"xwiki-contrib","product":"application-admintools","versions":[">= 4.4, < 4.5.1"]}],"affected":[{"ecosystem":"Maven","package":"org.xwiki.contrib:xwiki-application-admintools","vulnerableRanges":[">=4.4, <4.5.1"],"patched":["4.5.1"],"from":["GHSA-8jpr-ff92-hpf9"],"provenance":"source"}],"summary":{"text":"The XWiki Admin Tools Application (product application-admintools, from vendor xwiki-contrib), in versions from 4.4 up to but not including 4.5.1, contains a cross-site request forgery flaw in its admin tool for running shell commands on the server. An unauthenticated remote attacker can execute arbitrary shell commands on the server by getting an administrator to load a crafted URL, which can be done by planting it in a wiki comment (such as an image tag) that the admin views, requiring only that the attacker can post a comment and that the admin then interacts with the page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:17:36Z"},"euvd":{"id":"EUVD-2023-2925","exploited":false,"provenance":"source"},"exploits":[{"id":52105,"url":"https://www.exploit-db.com/exploits/52105","title":"XWiki Standard 14.10 - Remote Code Execution (RCE)","date":"2025-03-29","verified":false,"provenance":"source"}]}