id: vscode-launch

info:
  name: Visual Studio Code launch.json Exposure
  author: DhiyaneshDK
  severity: low
  description: |
    The .vscode/launch.json file, used by Visual Studio Code for debugging configurations, is publicly accessible. This file often contains sensitive information such as local file paths, runtime arguments, environment variables, and sometimes hardcoded credentials or access tokens.
  reference:
    - https://code.visualstudio.com/docs/editor/debugging
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"index" html:".vscode"
    tags: vscode,files,debug,exposure

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"version":'
          - '"configurations":'
        condition: and

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