id: bower-json

info:
  name: bower.json File Disclosure
  author: oppsec,noraj
  severity: info
  description: |
    Bower is a package manager which stores package information in the bower.json file
  reference:
    - https://github.com/bower/spec/blob/master/json.md
  metadata:
    max-request: 1
  tags: exposure,files,bower

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "name"
          - "description"
          - "main"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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