CVE-2022-42113: XSS Vulnerability in Liferay Document Library Module

Summary

19/10/2022
Yes i
Moderate
6.1

CVE-2022-42113: Liferay Portal and Liferay DXP Vulnerable to XSS via the Document Library Module. Affects com.liferay:com.liferay.document.library.web versions < 6.0.98. Fixed in 6.0.98. 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 Liferay Document Library module is a key component of the Liferay Portal, which is a popular open-source platform for building web applications and managing content. This module allows users to upload, manage, and share documents within the portal. It is widely used in enterprise environments for its robust features and flexibility. However, a recent vulnerability has been identified that exposes users to potential cross-site scripting (XSS) attacks, compromising the security of the application.

Vulnerability Detail

A Cross-site scripting (XSS) vulnerability exists in the Document Library module of Liferay Portal versions prior to 6.0.98 and Liferay DXP versions 7.4.3.30 through 7.4.3.36. This vulnerability allows remote attackers to inject arbitrary web scripts or HTML via the 'redirect' parameter, which can lead to unauthorized actions being performed on behalf of the user or the exposure of sensitive information.

How To Fix

Minimum fixed version

6.0.98

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 immediate patching is not possible, consider implementing input validation and sanitization for the 'redirect' parameter to mitigate the risk of XSS attacks. This can be done by encoding user inputs and ensuring that only safe URLs are processed.

Conclusion

The XSS vulnerability identified in the Liferay Document Library module poses a significant risk to users and applications utilizing this component. It is crucial to apply the necessary updates to mitigate the threat and ensure the security of your web applications.

See every vulnerability recorded for com.liferay:com.liferay.document.library.web →

Share this vulnerability

FAQ

CVE-2022-42113 is a vulnerability in the Liferay Document Library module that allows for cross-site scripting (XSS) attacks.

The vulnerability affects Liferay Portal versions prior to 6.0.98 and Liferay DXP versions 7.4.3.30 through 7.4.3.36.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing the pom.xml file. Visit Vulert Scanner to check your application without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized actions on behalf of users, data theft, or the injection of malicious scripts.

The CVSS score for this vulnerability is 6.1, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for com.liferay:com.liferay.document.library.web.

How To Fix

Minimum fixed version

6.0.98

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