id: hikvision-info-leak

info:
  name: Hikvision Configuration File - Detect
  author: pikpikcu
  severity: medium
  description: Hikvision configuration file was detected.
  classification:
    cvss-metrics: CVSS:3.1/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: exposure,config,hikvision

http:
  - method: GET
    path:
      - '{{BaseURL}}/config/user.xml'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<user name='
          - 'password='
        condition: and

      - type: word
        words:
          - "text/xml"
        part: header
# digest: 4a0a0047304502200c901acbe51e992eeea39d09974751f6f8a66ea9d321b8cda5cb95f2e5d4c2e5022100ae677ebea4b56a7d733aed4c7b8147834e8d78779fc569222a4280ec7341efdb:922c64590222798bb761d5b6d8e72950