CVE-2021-33337: Liferay Document Library Module XSS Vulnerability

Summary

24/05/2022
Yes i
Moderate
6.1

CVE-2021-33337: Liferay Portal and Liferay DXP Cross-site scripting (XSS) vulnerability in the Document Library module. Affects com.liferay:com.liferay.document.library.web versions >= 5.0.6, < 5.0.54. Fixed in 5.0.54. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Liferay Document Library module is a component of the Liferay Portal and Liferay DXP platforms, which are widely used for building enterprise web applications. This module allows users to manage documents and media files efficiently. However, it has been found to be vulnerable to a cross-site scripting (XSS) attack, which can compromise the security of applications built on these platforms.

Vulnerability Detail

The vulnerability arises from improper handling of user input in the add document menu of the Document Library module. Specifically, the _com_liferay_document_library_web_portlet_DLAdminPortlet_name parameter is susceptible to XSS attacks, allowing remote attackers to inject arbitrary web scripts or HTML. This can lead to unauthorized actions being performed on behalf of users, data theft, or the spread of malware. The affected versions include 5.0.6 to before 5.0.54, Liferay Portal 7.3.0 through 7.3.4, and Liferay DXP 7.1 before fix pack 20, and 7.2 before fix pack 9.

How To Fix

Minimum fixed version

5.0.54

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 feasible, consider implementing input validation and sanitization for the _com_liferay_document_library_web_portlet_DLAdminPortlet_name parameter to mitigate the risk of XSS attacks. Ensure that any user-generated content is properly escaped before being rendered in the application.

Conclusion

The CVE-2021-33337 vulnerability poses a significant risk to applications using the Liferay Document Library module. It is crucial for developers and system administrators to apply the necessary patches or implement workarounds to safeguard their applications from potential XSS attacks.

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

Share this vulnerability

FAQ

CVE-2021-33337 is a cross-site scripting (XSS) vulnerability found in the Liferay Document Library module, which allows attackers to inject malicious scripts.

The vulnerability affects versions 5.0.6 to before 5.0.54 of the Document Library module, Liferay Portal 7.3.0 through 7.3.4, and Liferay DXP 7.1 before fix pack 20, and 7.2 before fix pack 9.

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

Exploitation of this vulnerability can lead to unauthorized actions, data theft, and the potential spread of malware through compromised user sessions.

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

Related vulnerabilities

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

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5.0.54

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