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

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: 4a0a004730450221009f11f08f8d83b562d847dcb50810ae90ba5cfc455e846639e719cfb0af09f71c0220503543da8752939151307a54d57568d6dd178cfbf06c92c37cfadb11698c48e8:922c64590222798bb761d5b6d8e72950