Cross-site Request Forgery (CSRF) Affecting org.xwiki.contrib:xwiki-application-admintools package, versions [4.4,4.5.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKICONTRIB-6070618
  • published23 Nov 2023
  • disclosed20 Nov 2023
  • creditUnknown

Introduced: 20 Nov 2023

CVE-2023-48292  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade org.xwiki.contrib:xwiki-application-admintools to version 4.5.1 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) in the admin tool for executing shell commands on the server. An attacker can execute arbitrary shell commands by tricking an admin into loading the URL with the shell command.

Note: The command output is also vulnerable to XWiki syntax injection, which offers a simple way to execute Groovy in the context of the XWiki installation, compromising Integrity and Confidentiality.

Workaround

The document Admin.RunShellCommand can be deleted if the possibility of running shell commands isn't needed.

PoC

/xwiki/bin/view/Admin/RunShellCommand?command=touch%20/tmp/attacked

CVSS Base Scores

version 3.1