From 0f3014df69d03e0ef4c4f5760d06d90a1e0e3294 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Thu, 15 Sep 2022 15:16:16 +0530 Subject: [PATCH] Create vscode-sftp.yaml --- exposures/files/vscode-sftp.yaml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 exposures/files/vscode-sftp.yaml diff --git a/exposures/files/vscode-sftp.yaml b/exposures/files/vscode-sftp.yaml new file mode 100644 index 0000000000..f64a36ab3d --- /dev/null +++ b/exposures/files/vscode-sftp.yaml @@ -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