id: jsconfig-json

info:
  name: Visual Studio Code jsconfig.json - Detect
  author: DhiyaneshDk
  severity: info
  description: Visual Studio Code jsconfig.json was detected.
  reference:
    - https://code.visualstudio.com/docs/languages/jsconfig
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"jsconfig.json"
  tags: devops,exposure,jsconfig,config

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"compilerOptions": {'
          - '"typeAcquisition": {'
        condition: or

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

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