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,vuln

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: 490a0046304402207a3e08136e5eec37cbee89215014d05c31199173b152ef4dc5f4f5b4d80d8400022052a7e48e8afcb8345772cae0c540469fd452983331f33190a1d9cdfa3c43bbc9:922c64590222798bb761d5b6d8e72950