2022-09-15 09:46:16 +00:00
|
|
|
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:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 3
|
2022-09-15 09:46:16 +00:00
|
|
|
verified: true
|
2022-09-15 09:48:19 +00:00
|
|
|
shodan-query: html:"sftp.json"
|
2022-10-13 10:12:07 +00:00
|
|
|
tags: exposure,vscode,sftp,ssh,files
|
2022-09-15 09:46:16 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-09-15 09:46:16 +00:00
|
|
|
- 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:
|
2022-09-15 13:29:13 +00:00
|
|
|
- '"name":'
|
|
|
|
- '"host":'
|
|
|
|
- '"protocol":'
|
2022-09-15 09:46:16 +00:00
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "application/json"
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|