id: vagrantfile-exposure

info:
  name: Vagrantfile Exposure
  author: DhiyaneshDk
  severity: low
  description: Vagrantfile is exposed to external users.
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Vagrantfile"
  tags: config,exposure,vagrant,oss,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/Vagrantfile"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "./vagrant/config/vagrant-local.yml"
          - "./vagrant/config/vagrant-local.example.yml"

      - type: word
        part: header
        words:
          - "application/json"
          - "text/html"
        negative: true
        condition: or

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