id: vscode-sftp info: name: VSCode SFTP File Exposure author: geeknik severity: high description: | It discloses sensitive files created by vscode-sftp for VSCode, contains SFTP/SSH server details and credentials. metadata: verified: true max-request: 3 shodan-query: html:"sftp.json" product: visual_studio_code vendor: microsoft tags: exposure,vscode,sftp,ssh,files classification: cpe: cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:* http: - method: GET path: - "{{BaseURL}}/sftp.json" - "{{BaseURL}}/.config/sftp.json" - "{{BaseURL}}/.vscode/sftp.json" stop-at-first-match: true matchers-condition: and matchers: - type: word part: body words: - '"name":' - '"host":' - '"protocol":' condition: and - type: word part: header words: - "application/json" - type: status status: - 200 # digest: 4a0a004730450221008b29d9873ec6870c1fe305232d363e69bec8f6146f66709fbf4468d6bce2d06f022078c30674b21f491c4efe798f52fe349e226fe072c62dacc6cbd1eb60c62d8cce:922c64590222798bb761d5b6d8e72950