CVE-2023-6911: WSO2 Registry Stored Cross Site Scripting (XSS) vulnerability

Summary

22/12/2023
Yes i
Moderate
4.8

CVE-2023-6911: WSO2 Registry Stored Cross Site Scripting (XSS) vulnerability. Affects org.wso2.carbon.registry:carbon-registry versions < 4.7.37. Fixed in 4.7.37. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The WSO2 Registry is a package that provides a feature-rich registry for managing and storing various types of assets. It is commonly used in enterprise environments to facilitate the storage and retrieval of artifacts such as web services, APIs, and configurations. The Registry is a critical component of the WSO2 Carbon platform, which is widely adopted for building and deploying enterprise applications. However, a vulnerability has been discovered in the Registry that allows for Stored Cross Site Scripting (XSS) attacks.

Vulnerability Detail

The vulnerability arises from improper output encoding in the Registry feature of the WSO2 Management Console. This allows an attacker to inject malicious payloads into the Registry, which can then be executed when accessed by other users. The impact of this vulnerability can be significant, as it enables an attacker to execute arbitrary JavaScript code in the context of other users, potentially leading to session hijacking, data theft, or other malicious activities. The vulnerability has been assigned a CVSS score of 4.8, indicating a moderate severity level.

How To Fix

Minimum fixed version

4.7.37

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

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented to mitigate the risk. This involves implementing input validation and output encoding measures within the application code that interacts with the Registry. By properly sanitizing user input and encoding output, the risk of XSS attacks can be significantly reduced. Here is an example of how input validation and output encoding can be implemented in Java:

// Input validation
String userInput = request.getParameter("input");
if (userInput != null) {
    userInput = userInput.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
}

// Output encoding
String output = "<script>alert('XSS')</script>";
output = output.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
response.getWriter().write(output);

Conclusion

The WSO2 Registry is vulnerable to a Stored Cross Site Scripting (XSS) attack due to improper output encoding. This can be mitigated by upgrading to version 4.7.37 or later, or by implementing input validation and output encoding measures. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for org.wso2.carbon.registry:carbon-registry →

Share this vulnerability

FAQ

The WSO2 Registry is a package that provides a feature-rich registry for managing and storing various types of assets in enterprise environments.

Stored Cross Site Scripting (XSS) is a type of vulnerability that allows an attacker to inject malicious scripts into a web application, which are then executed when accessed by other users.

The vulnerability can enable an attacker to execute arbitrary JavaScript code in the context of other users, potentially leading to session hijacking, data theft, or other malicious activities.

The CVSS score of this vulnerability is 4.8, indicating a moderate severity level.

To fix this vulnerability, it is recommended to upgrade the WSO2 Registry package to version 4.7.37 or later. Alternatively, implementing input validation and output encoding measures within the application code can provide a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for org.wso2.carbon.registry:carbon-registry.

How To Fix

Minimum fixed version

4.7.37

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