CVE-2022-23620: Path traversal in xwiki-platform-skin-skinx

Summary

09/02/2022
Yes i
Moderate
6.8

CVE-2022-23620: Path traversal in xwiki-platform-skin-skinx. Affects org.xwiki.platform:xwiki-platform-skin-skinx versions >= 6.2-rc-1, < 13.6. Fixed in 13.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

XWiki Platform is a generic wiki platform that provides runtime services for applications built on top of it. The xwiki-platform-skin-skinx package is a component of XWiki Platform that handles the skinning functionality. It allows users to customize the appearance of their XWiki applications. However, a vulnerability has been discovered in the package that allows for path traversal attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2022-23620, exists in the AbstractSxExportURLFactoryActionHandler#processSx function of xwiki-platform-skin-skinx. This function fails to properly escape elements from the SSX document reference when serializing it on the filesystem. As a result, an attacker can exploit this flaw by injecting filesystem syntax like "../", "./", or "/" in reference elements, leading to path traversal attacks. This can potentially allow an attacker to access sensitive files or directories on the server. The vulnerability has a CVSS score of 6.8, indicating a moderate severity level.

How To Fix

Minimum fixed version

13.6

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advised to give script or subwiki admin rights only to trusted individuals. Additionally, disabling HTML/PDF export can help mitigate the risk of exploitation. By implementing these measures, the likelihood of an attacker exploiting the vulnerability can be reduced.

Conclusion

In conclusion, the xwiki-platform-skin-skinx package in XWiki Platform is vulnerable to a path traversal attack. This can allow an attacker to access sensitive files or directories on the server. To mitigate this vulnerability, it is recommended to update the package to version 13.6 or later. Giving script or subwiki admin rights only to trusted individuals and disabling HTML/PDF export can also provide temporary mitigation. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for org.xwiki.platform:xwiki-platform-skin-skinx →

Share this vulnerability

FAQ

XWiki Platform is a generic wiki platform that provides runtime services for applications built on top of it. It offers a range of features and functionalities for creating collaborative websites and applications.

xwiki-platform-skin-skinx is a package in XWiki Platform that handles the skinning functionality. It allows users to customize the appearance of their XWiki applications.

Path traversal is a type of vulnerability that allows an attacker to access files or directories outside of the intended scope. By manipulating file paths or references, an attacker can navigate to sensitive areas of the file system.

This vulnerability can allow an attacker to access sensitive files or directories on the server. Depending on the permissions of the user running the XWiki application, this could lead to unauthorized access, data leakage, or further exploitation of the system.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the pom.xml file to analyze dependencies.

Related vulnerabilities

Recent vulnerabilities recorded for org.xwiki.platform:xwiki-platform-skin-skinx.

How To Fix

Minimum fixed version

13.6

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback