CVE-2020-7934 Liferay Portal Vulnerable to Persistent Cross-Site Scripting (XSS) in MyAccountPortlet

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
com.liferay.portal:release.portal.bom MavenFrom 7.1.07.3.0
com.liferay.portal:release.portal.bom MavenFrom 7.1.07.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.

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-f99h-h678-fgg4.

Is CVE-2020-7934 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free