CVE-2020-7934 Liferay Portal Vulnerable to Persistent Cross-Site Scripting (XSS) in MyAccountPortlet
Persistent XSS in Liferay Portal allows attackers to inject scripts via user name fields, potentially leading to session hijacking or malicious actions when users search for others.
- 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-2020-7934?
CVE-2020-7934 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 28 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
In LifeRay Portal CE 7.1.0 through 7.2.1 GA2, the First Name, Middle Name, and Last Name fields for user accounts in MyAccountPortlet are all vulnerable to a persistent XSS issue. Any user can modify these fields with a particular XSS payload, and it will be stored in the database. The payload will then be rendered when a user utilizes the search feature to search for other users (i.e., if a user with modified fields occurs in the search results). This issue was fixed in Liferay Portal CE version 7.3.0 GA1.
Weakness: CWE-79
Which versions are affected by CVE-2020-7934?
2 open source packages ship an affected version, including com.liferay.portal:release.portal.bom. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.liferay.portal:release.portal.bom Maven | From 7.1.0 | 7.3.0 |
com.liferay.portal:release.portal.bom Maven | From 7.1.0 | 7.3.0 |
Products include Liferay Liferay Portal.
How do I fix CVE-2020-7934?
Upgrade com.liferay.portal:release.portal.bom to 7.3.0 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-2020-7934 being exploited?
There is no known exploitation of CVE-2020-7934 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry and 2 proofs of concept on GitHub.
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-f99h-h678-fgg4.