Create vscode-sftp.yaml

patch-1
Dhiyaneshwaran 2022-09-15 15:16:16 +05:30 committed by GitHub
parent 84abeba9f8
commit 0f3014df69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
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
tags: vscode,sftp,ssh
requests:
- 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"
- "username"
condition: and
- type: word
part: header
words:
- "application/json"
- type: status
status:
- 200