id: angular-json

info:
  name: Angular JSON File Exposure
  author: DhiyaneshDk
  severity: info
  classification:
    cpe: cpe:2.3:a:angularjs:angular:*:*:*:*:node.js:*:*:*
  metadata:
    verified: true
    max-request: 4
    vendor: angularjs
    product: angular
    shodan-query:
      - html:"angular.json"
      - html:"angular-cli.json"
  tags: exposure,angularjs,files

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"root":'
          - '"config":'
        condition: and

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

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