id: tidb-native-password

info:
  name: TiDB - Password Vulnerability
  author: lu4nx
  severity: info
  description: TiDB queries with enabled native password support are susceptible to password brute-force attacks.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: network,tidb,db,misconfig,tcp

tcp:
  - host:
      - "{{Hostname}}"
    port: 4000

    matchers:
      - type: word
        words:
          - "mysql_native_password"
          - "TiDB"
        condition: and
# digest: 4b0a00483046022100a943ee452395ed2f130da0e0026594f7a7a23e6f5d2f5c6ab0ad7dc8ca0f4f13022100d246a3d85eeeea7ff73396e7c1eb8f611dffb061881302f5bbb40abddd24e65d:922c64590222798bb761d5b6d8e72950