id: snyk-ignore-file-disclosure

info:
  name: Snyk Ignore File Disclosure
  author: dhiyaneshDk
  severity: info
  reference:
    - https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/snyk-ignore-file-disclosure.json
  metadata:
    max-request: 1
  tags: exposure,files,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities."
        part: body

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008ddc141ba7def948ec3de0eeb681d7847d68959fb429991edf5077c1f770a0de0221009757b49d74b7a8d4781529fdf2d59f49bdfd9b908b76ca52f0e6c8f2af728a26:922c64590222798bb761d5b6d8e72950