CVE-2020-15840 Liferay Portal and Liferay DXP Bypass via Double Encoded URL

Medium 5.3 Published Updated

Attackers can bypass path restrictions using double-encoded URLs to access restricted resources in Liferay Portal.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-15840?

CVE-2020-15840 is a medium-severity path traversal vulnerability in Liferay Digital Experience Platform, published on 24 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Liferay Portal before 7.3.1, Liferay Portal 6.2 EE, and Liferay DXP 7.2, DXP 7.1 and DXP 7.0, the property 'portlet.resource.id.banned.paths.regexp' can be bypassed with doubled encoded URLs.

Which versions are affected by CVE-2020-15840?

12 open source packages ship an affected version, including com.liferay.portal:release.dxp.bom, com.liferay.portal:com.liferay.portal.impl and com.liferay.portal:release.portal.bom. It affects 2 products.

PackageAffectedFixed in
com.liferay.portal:release.dxp.bom MavenAll versions7.0.10.fp93
com.liferay.portal:release.dxp.bom MavenAll versions7.0.10.fp93
com.liferay.portal:release.dxp.bom MavenFrom 7.1.07.1.10.fp19
com.liferay.portal:release.dxp.bom MavenFrom 7.1.07.1.10.fp19
com.liferay.portal:release.dxp.bom MavenFrom 7.2.07.2.10.fp7
com.liferay.portal:release.dxp.bom MavenFrom 7.2.07.2.10.fp7
6 more packages
com.liferay.portal:com.liferay.portal.impl MavenAll versions7.1.3
com.liferay.portal:com.liferay.portal.impl MavenAll versions7.1.3
com.liferay.portal:com.liferay.portal.impl MavenFrom 7.2.07.4.0
com.liferay.portal:com.liferay.portal.impl MavenFrom 7.2.07.4.0
com.liferay.portal:release.portal.bom MavenAll versions7.3.1
com.liferay.portal:release.portal.bom MavenAll versions7.3.1

Products include Liferay Digital Experience Platform, Liferay Liferay Portal.

How do I fix CVE-2020-15840?

Upgrade com.liferay.portal:release.dxp.bom to a fixed version for your release line: 7.0.10.fp93, 7.1.10.fp19 or 7.2.10.fp7.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-15840 being exploited?

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

All Liferay Digital Experience Platform vulnerabilities

Sources

Also known as GHSA-vrwx-q9pj-x488.

Is CVE-2020-15840 in your software?

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

Check your SBOMs for free