CVE-2022-42115: XSS Vulnerability in Liferay Object Web Package
Summary
CVE-2022-42115: Liferay Portal Vulnerable to XSS in the Object Module. Affects com.liferay:com.liferay.object.web versions < 1.0.99. Fixed in 1.0.99. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The Liferay Object Web package is a component of the Liferay Portal, which is designed to facilitate the management of digital experiences. This package allows users to create and manage objects within the portal, providing essential functionalities for data handling and user interaction. However, it has been identified to have a cross-site scripting (XSS) vulnerability that can be exploited by attackers.
Vulnerability Detail
The vulnerability arises from improper handling of user input in the Object module's edit object details page. Specifically, the issue allows remote attackers to inject arbitrary web scripts or HTML through a crafted payload in the object field's 'Label' text field. This can lead to unauthorized actions being executed in the context of the affected user's session, potentially compromising sensitive data and user privacy.
How To Fix
Minimum fixed version
1.0.99
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 measure, it is advisable to sanitize user inputs and validate the data before processing it in the application. This can help mitigate the risk of XSS attacks until the package is updated.
Conclusion
The Liferay Object Web package has a critical XSS vulnerability that can be exploited by attackers. It is crucial to update to version 1.0.99 to mitigate this risk. Additionally, using tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for com.liferay:com.liferay.object.web →
FAQ
CVE-2022-42115 is a cross-site scripting (XSS) vulnerability found in the Liferay Object Web package, allowing attackers to inject malicious scripts.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
Exploitation of this vulnerability can lead to unauthorized actions being performed in the context of the affected user's session, risking data exposure and user privacy.
The CVSS score for this vulnerability is 5.4, indicating a moderate level of risk.
You can update the package by modifying your pom.xml file to include the patched version 1.0.99 as shown in the 'how_to_fix' section.