SecurityContext

CVE-2023-48292: XWiki Admin Tools - Cross Site Request Forgery & Command Injection

  • Cve: CVE-2023-48292
  • Name: XWiki Admin Tools - Cross Site Request Forgery & Command Injection
  • Description: 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.
  • Impact: Attackers can execute arbitrary shell commands and inject malicious scripts, compromising server integrity, confidentiality, and potentially leading to full system compromise.
  • Remediation: Update to version 4.5.1 or later, or manually apply the patch, or delete the 'Admin.RunShellCommand' document if shell command execution is not needed.
  • Vulnerability type: cross_site_request_forgery
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to trick an admin into viewing malicious content
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.33907
  • Epss percentile: 0.98417
  • Assignee: [email protected]
  • Published at: 2023-11-20T18:15:07Z
  • Age in days: 1100
  • Modified at: 2026-06-17T06:33:56Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-48292
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-352Cross-Site Request Forgery

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/xwiki-contrib/application-admintools/commit/03815c505c9f37006a0c56495e862dc549a39da8Patch
https://github.com/xwiki-contrib/application-admintools/security/advisories/GHSA-8jpr-ff92-hpf9Patch, Vendor Advisory
https://jira.xwiki.org/browse/ADMINTOOL-91Issue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
xwiki:admin_tools>= 4.4, < 4.5.1nonvd/v1/products/xwiki/admin_tools

Projects

RepositoryLink kindsIndexedUrl
xwiki-contrib/application-admintoolscommit, fix, package, security_advisoryyes/v1/repositories/xwiki-contrib/application-admintools

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts