nuclei-templates/http/exposures/files/vscode-sftp.yaml

46 lines
1.2 KiB
YAML

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.
classification:
cpe: cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: microsoft
product: visual_studio_code
shodan-query: html:"sftp.json"
tags: exposure,vscode,sftp,ssh,files
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: 490a00463044022061a0f756f7e9ac6533801ef3f83a65dcd30167a0c28124e2308ca193c37e62ed022048e9e08cd2796e33a7994b994d4f715cb253e81a3250e8c9890ac2269880bb54:922c64590222798bb761d5b6d8e72950