CVE-2022-42114: XSS Vulnerability in Liferay Roles Admin Web and DXP

Summary

19/10/2022
Yes i
Moderate
5.4

CVE-2022-42114: Liferay Portal and Liferay DXP Vulnerable to XSS via the Role Module. Affects com.liferay:com.liferay.roles.admin.web versions < 5.0.48. Fixed in 5.0.48. 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

Liferay Roles Admin Web is a component of Liferay Portal, which is a popular open-source platform for building web applications and managing content. It provides functionalities for managing user roles and permissions within the portal. The vulnerability in question affects the Role module's edit role assignees page, allowing for potential exploitation through cross-site scripting (XSS). This can lead to unauthorized script execution, compromising the integrity of the web application.

Vulnerability Detail

A Cross-site scripting (XSS) vulnerability exists in the Role module's edit role assignees page in Liferay Roles Admin Web prior to version 5.0.48 and Liferay DXP 7.4 before update 37. This vulnerability allows remote attackers to inject arbitrary web scripts or HTML, which can lead to session hijacking, data theft, or other malicious activities. The vulnerability is classified under CWE-79, indicating its nature as an XSS issue.

How To Fix

Minimum fixed version

5.0.48

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 on the affected pages to mitigate the risk of XSS attacks. This can include encoding user inputs and restricting the types of content that can be submitted.

Conclusion

The CVE-2022-42114 vulnerability poses a moderate risk to users of Liferay Roles Admin Web and Liferay DXP. It is crucial to update to the latest patched versions to protect against potential XSS attacks. Implementing workarounds can provide temporary relief, but a permanent fix through updates is recommended.

See every vulnerability recorded for com.liferay:com.liferay.roles.admin.web →

Share this vulnerability

FAQ

CVE-2022-42114 is a vulnerability in Liferay Roles Admin Web and Liferay DXP that allows for cross-site scripting (XSS) attacks.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By simply analyzing your pom.xml, you can check for vulnerabilities without needing to install any software.

The vulnerability can lead to unauthorized script execution, session hijacking, and data theft, posing significant security risks to users and applications.

Yes, implementing input validation and sanitization on the affected pages can help reduce the risk of XSS attacks until a patch can be applied.

You can update your Maven dependencies by modifying your pom.xml file to include the patched versions of the affected packages as shown in the 'how_to_fix' section.

How To Fix

Minimum fixed version

5.0.48

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