VDB
Sign up
MEDIUM6.1

GHSA-3qq5-wcrx-4h8r

Liferay Portal and Liferay DXP's HtmlUtil.escapeRedirect Can Be Circumvented via Two Forward Slashes

Quick fix

GHSA-3qq5-wcrx-4h8r — com.liferay.portal:release.portal.bom: upgrade to the fixed version with the command below.

# pom.xml: bump <version>7.4.3.13-ga13</version> for com.liferay.portal:release.portal.bom

Details

HtmlUtil.escapeRedirect in Liferay Portal 7.2.0 through 7.4.3.12, and older unsupported versions, and Liferay DXP 7.4 before update 9, 7.3 service pack 3, 7.2 fix pack 15 through 18, and older unsupported versions can be circumvented by using two forward slashes, which allows remote attackers to redirect users to arbitrary external URLs via the (1) 'redirect` parameter (2) `FORWARD_URL` parameter, and (3) others parameters that rely on HtmlUtil.escapeRedirect. This vulnerability is the result of an incomplete fix in CVE-2022-28977.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/com.liferay.portal:release.portal.bom
Introduced in: 7.2.0Fixed in: 7.4.3.13-ga13
Fix# pom.xml: bump <version>7.4.3.13-ga13</version> for com.liferay.portal:release.portal.bom
Maven/com.liferay.portal:release.dxp.bom
Introduced in: 7.2.10.fp15

No fixed version published yet for com.liferay.portal:release.dxp.bom (maven). Pin to a known-safe version or switch to an alternative.

Maven/com.liferay.portal:release.dxp.bom
Introduced in: 7.4.0Fixed in: 7.4.13.u9
Fix# pom.xml: bump <version>7.4.13.u9</version> for com.liferay.portal:release.dxp.bom

References

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"]}'