id: CVE-2021-3287

info:
  name: Zoho ManageEngine OpManager < 12.5.329 - Remote Code Execution
  author: theamanrawat
  severity: critical
  description: |
    Zoho ManageEngine OpManager before 12.5.329 contains a remote code execution caused by a general bypass in the deserialization class, letting unauthenticated attackers execute arbitrary code, exploit requires no authentication
  impact: |
    Unauthenticated attackers can execute arbitrary code remotely, leading to full system compromise.
  remediation: |
    Update to version 12.5.329 or later.
  reference:
    - http://packetstormsecurity.com/files/164231/ManageEngine-OpManager-SumPDU-Java-Deserialization.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-3287
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2021-3287
    epss-score: 0.51332
    epss-percentile: 0.98828
    cwe-id: CWE-502
    cpe: cpe:2.3:a:zohocorp:manageengine_opmanager:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    vendor: zohocorp
    product: manageengine_opmanager
    shodan-query:
      - http.title:"opmanager plus"
      - http.title:"opmanager"
    fofa-query:
      - title="opmanager plus"
      - title="opmanager"
    google-query:
      - intitle:"opmanager plus"
      - intitle:"opmanager"
  tags: cve,cve2021,deserialization,rce,opmanager,passive,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 3

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "compare_versions(version, '< 125329', '>= 125000')"
          - "contains(body, 'ManageEngine')"
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        name: version
        regex:
          - 'cachestart\/([0-9.]+)\/cacheend'
# digest: 4b0a00483046022100f05aa7fe309305daebc1d835543ed0027392a9c1c56725d5a6f7b4c7d05beaf4022100d75589ad01aa2d5986271dd0ce5f570947d2a10e0b3b8de768cf009195db82a9:922c64590222798bb761d5b6d8e72950