id: db-xml-file

info:
  name: db.xml File - Detect
  author: tess
  severity: medium
  description: db.xml 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:
    verified: true
    max-request: 1
  tags: misconfig,db,files,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/db.xml"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<ServerName>"
          - "<DBPASS>"
          - "<DBtype>"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402204abfe8b8ac36aa18eb8576aa33cf053e0229f7100b21cc1838518795b71cf0100220735efa07bb9810bb65486cf85ff202cd47d7446b66b804bd3dfb7f83f74aba1b:922c64590222798bb761d5b6d8e72950