CVE-2020-15840 Liferay Portal and Liferay DXP Bypass via Double Encoded URL
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.
| Package | Affected | Fixed in |
|---|---|---|
com.liferay.portal:release.dxp.bom Maven | All versions | 7.0.10.fp93 |
com.liferay.portal:release.dxp.bom Maven | All versions | 7.0.10.fp93 |
com.liferay.portal:release.dxp.bom Maven | From 7.1.0 | 7.1.10.fp19 |
com.liferay.portal:release.dxp.bom Maven | From 7.1.0 | 7.1.10.fp19 |
com.liferay.portal:release.dxp.bom Maven | From 7.2.0 | 7.2.10.fp7 |
com.liferay.portal:release.dxp.bom Maven | From 7.2.0 | 7.2.10.fp7 |
6 more packages
com.liferay.portal:com.liferay.portal.impl Maven | All versions | 7.1.3 |
com.liferay.portal:com.liferay.portal.impl Maven | All versions | 7.1.3 |
com.liferay.portal:com.liferay.portal.impl Maven | From 7.2.0 | 7.4.0 |
com.liferay.portal:com.liferay.portal.impl Maven | From 7.2.0 | 7.4.0 |
com.liferay.portal:release.portal.bom Maven | All versions | 7.3.1 |
com.liferay.portal:release.portal.bom Maven | All versions | 7.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.
Other vulnerabilities in Liferay Digital Experience Platform
- CVE-2024-8980 Liferay Portal and Liferay DXP Vulnerable to CSRF in the Script Console
- CVE-2023-42496 Liferay Portal and Liferay DXP vulnerable to reflected Cross-site Scripting
- CVE-2023-42498 Liferay Portal Language Override edit screen and Liferay DXP vulnerable to reflected Cross-site Scripting
- CVE-2024-25147 Liferay Portal and Liferay DXP vulnerable to Cross-site Scripting
- CVE-2024-26269 Liferay Portal Frontend JS module's portlet.js and Liferay DXP vulnerable to Cross-site Scripting
Sources
Also known as GHSA-vrwx-q9pj-x488.