GHSA-548x-j6x6-hcv4
Liferay Portal and Liferay DXP's HtmlUtil.escapeRedirect Can Be Circumvented via Replacement Character
Quick fix
GHSA-548x-j6x6-hcv4 — com.liferay.portal:release.portal.bom: upgrade to the fixed version with the command below.
# pom.xml: bump <version>7.4.3.19-ga19</version> for com.liferay.portal:release.portal.bomDetails
HtmlUtil.escapeRedirect in Liferay Portal 7.2.0 through 7.4.3.18, and older unsupported versions, and Liferay DXP 7.4 before update 19, 7.3 before update 4, 7.2 before fix pack 19, and older unsupported versions can be circumvented by using the 'REPLACEMENT CHARACTER' (U+FFFD), which allows remote attackers to redirect users to arbitrary external URLs via the (1) 'redirect` parameter (2) `FORWARD_URL` parameter, (3) `noSuchEntryRedirect` parameter, and (4) others parameters that rely on HtmlUtil.escapeRedirect.
Are you affected?
Enter the version of the package you're using.
Affected packages
7.2.0Fixed in: 7.4.3.19-ga19# pom.xml: bump <version>7.4.3.19-ga19</version> for com.liferay.portal:release.portal.bom0Fixed in: 7.2.10.fp19# pom.xml: bump <version>7.2.10.fp19</version> for com.liferay.portal:release.dxp.bom7.3.0Fixed in: 7.3.10.u4# pom.xml: bump <version>7.3.10.u4</version> for com.liferay.portal:release.dxp.bom7.4.0Fixed in: 7.4.13.u19# pom.xml: bump <version>7.4.13.u19</version> for com.liferay.portal:release.dxp.bomReferences
- https://nvd.nist.gov/vuln/detail/CVE-2024-25608[ADVISORY]
- https://github.com/liferay/liferay-portal/commit/36adf82ef7a09c7035d4f19a1982dcde1ae3f6ae[WEB]
- https://github.com/liferay/liferay-portal/commit/aea651fa5110934b6a00d93391fac87985e27786[WEB]
- https://github.com/liferay/liferay-portal[PACKAGE]
- https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2024-25608[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:maven/com.liferay.portal/release.portal.bom"]}'