CVE-2019-6588 Liferay Portal Allows Cross-Site Scripting (XSS) via the SimpleCaptcha API

Medium 4.7 Published Updated

Cross-site scripting in Liferay Portal's SimpleCaptcha API allows attackers to execute scripts if custom code passes unsanitized input to the captcha URL parameter.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-6588?

CVE-2019-6588 is a medium-severity cross-site scripting vulnerability in Liferay Liferay Portal, published on 3 Jun 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Liferay Portal before 7.1 CE GA4, an XSS vulnerability exists in the SimpleCaptcha API when custom code passes unsanitized input into the "url" parameter of the JSP taglib call <liferay-ui:captcha url="<%= url %>" /> or <liferay-captcha:captcha url="<%= url %>" />. Liferay Portal out-of-the-box behavior with no customizations is not vulnerable.

Weakness: CWE-79

Which versions are affected by CVE-2019-6588?

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 MavenAll versions7.1.0
com.liferay.portal:release.portal.bom MavenAll versions7.1.0

Products include Liferay Liferay Portal.

How do I fix CVE-2019-6588?

Upgrade com.liferay.portal:release.portal.bom to 7.1.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-2019-6588 being exploited?

There is no known exploitation of CVE-2019-6588 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

All Liferay Liferay Portal vulnerabilities

Sources

Also known as GHSA-hwp2-gvm5-452f.

Is CVE-2019-6588 in your software?

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

Check your SBOMs for free