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.88482
    epss-percentile: 0.99516
    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: 4a0a00473045022100ba974a0b0f951c3c473f20b721f72597b5c25cdbd0d279ad0b11b07cf04de645022061ecb561d1c970ad907d4120affdc9f277e59d16f86186a274c027f0583d063e:922c64590222798bb761d5b6d8e72950