cbcvebase.
CVE-2024-25608
published 2024-02-20

CVE-2024-25608: 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…

PriorityP178medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
0.96%
57.9th percentile
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.

Affected

9 ranges
VendorProductVersion rangeFixed in
liferaydigital_experience_platform< 7.27.2
liferaydigital_experience_platform
liferaydigital_experience_platform
liferaydigital_experience_platform
liferaydxp7.2.10 – 7.2.10-dxp-18
liferaydxp7.3.10 – 7.3.10-dxp-3
liferaydxp7.4.13 – 7.4.13.u18
liferayliferay_portal< 7.4.3.197.4.3.19
liferayportal7.2.0 – 7.4.3.18

Detection & IOCsextracted from sources · hover to see the quote

url{{BaseURL}}/html/common/forward_jsp.jsp?FORWARD_URL=http://oast.me%EF%BF%BD@localhost
path/html/common/forward_jsp.jsp
otherU+FFFD (REPLACEMENT CHARACTER, %EF%BF%BD) in redirect parameters
  • Look for HTTP 302 redirects from Liferay Portal where the Location header contains the pattern 'http://oast.me?@localhost' or similar external URLs — indicating successful bypass of HtmlUtil.escapeRedirect via the U+FFFD replacement character.
  • Monitor GET requests to /html/common/forward_jsp.jsp with a FORWARD_URL parameter containing the UTF-8 encoded replacement character (%EF%BF%BD / U+FFFD) to detect open redirect exploitation attempts.
  • Use Shodan/FOFA to identify exposed Liferay instances via favicon hash 129457226 as potential targets for this CVE.
  • ·Multiple parameters are affected beyond FORWARD_URL, including 'redirect', 'noSuchEntryRedirect', and any other parameter that internally calls HtmlUtil.escapeRedirect — detection rules should cover all such parameters.

CVSS provenance

nvdv3.16.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vulncheck6.1MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.