Description
Detected exposed Visual Studio Code configuration files that were accessible over HTTP, which could have led to credential leakage or sensitive workspace disclosure.
Detected exposed Visual Studio Code configuration files that were accessible over HTTP, which could have led to credential leakage or sensitive workspace disclosure.
id: vscode-settings
info:
name: Visual Studio Code Settings - Credential Exposure
author: DhiyaneshDk
severity: low
description: |
Detected exposed Visual Studio Code configuration files that were accessible over HTTP, which could have led to credential leakage or sensitive workspace disclosure.
metadata:
max-request: 3
verified: true
shodan-query: html:".vscode" html:"Directory listing for /"
tags: exposure,config,vscode,misconfig,vuln
http:
- method: GET
path:
- "{{BaseURL}}/.vscode/settings.json"
- "{{BaseURL}}/settings.json"
- "{{BaseURL}}/.vscode/launch.json"
- "{{BaseURL}}/.vscode/tasks.json"
- "{{BaseURL}}/.vscode-server/data/Machine/settings.json"
stop-at-first-match: true
matchers:
- type: dsl
name: launch
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "launch", "configurations")'
condition: and
- type: dsl
name: settings
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_any(body, "ignoreLimitWarning", "yaml.schemas", "search.exclude", "sqltools.connections", "python", "livePreview", "multipliers", "matchCommandLine", "errorSquiggles", "editor")'
condition: and
- type: dsl
name: task
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "version", "tasks")'
condition: and
# digest: 4a0a00473045022100e74564a02e31bf10d20d3dd2fae643e5b97496a0d6cc821cf8c90324bc6d5ba1022051cccbd8eedfb613a09df8551c6dd01768d681f807fa944abc473aa8c61c1c03:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.