CVE-2022-42115 Liferay Portal Vulnerable to XSS in the Object Module
Remote attackers can inject arbitrary web script or HTML via the Label field in the Object module, potentially leading to session hijacking or malicious actions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-42115?
CVE-2022-42115 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 18 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Cross-site scripting (XSS) vulnerability in the Object module's edit object details page in Liferay Portal 7.4.3.4 through 7.4.3.36 allows remote attackers to inject arbitrary web script or HTML via a crafted payload injected into the object field's `Label` text field.
Weakness: CWE-79
Which versions are affected by CVE-2022-42115?
2 open source packages ship an affected version, including com.liferay:com.liferay.object.web. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.liferay:com.liferay.object.web Maven | All versions | 1.0.99 |
com.liferay:com.liferay.object.web Maven | All versions | 1.0.99 |
Products include Liferay Liferay Portal.
How do I fix CVE-2022-42115?
Upgrade com.liferay:com.liferay.object.web to 1.0.99 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-42115 being exploited?
There is no known exploitation of CVE-2022-42115 in the wild and no public exploit code.
Other vulnerabilities in Liferay Liferay Portal
- CVE-2020-7961 Liferay Portal Deserialization of Untrusted Data
- CVE-2021-33990 File upload in n/a
- CVE-2019-16891 Liferay Portal Allows RCE via Deserialization of a JSON Payload
- CVE-2023-47797 Liferay Portal XSS with `p_l_back_url_title` on edit content page
- CVE-2020-13445 Liferay Portal and Liferay DXP Vulnerable to Arbitrary Code Execution
Sources
Also known as GHSA-x43w-xphx-86w3.