| Título | https://github.com/matt1398 claude-devtools 0.5.0 Local Sensitive Logic Exposure Lead to Arbitrary Path Existence |
|---|
| Descrição | claude-devtools is an Electron desktop application that visualizes local Claude Code session logs. When the user enables "Enable server mode" in the settings, the application starts a Fastify HTTP server on the local machine (default 127.0.0.1:3456, falling back to 3466 when the port is occupied).
The path validation endpoints exposed by this service (POST /api/validate/path, POST /api/validate/mentions) and the file metadata endpoints (POST /api/read-mentioned-file, POST /api/read-directory-claude-md) have no authentication mechanism, and the parameters used as the probing baseline — projectPath / projectRoot / dirPath — are fully specified by the requester. As long as the application is running, any process on the same machine — for example, a browser extension with host permissions, any local script, a background service, or any other application process — can call these endpoints directly, without any credentials, and obtain three probing primitives:
Existence of arbitrary paths: determine whether any file or directory exists on the user's machine (including sensitive paths such as .ssh/id_rsa, .aws/credentials, and .env — the existence endpoint applies no sensitive-file filtering);
File/directory type distinction: beyond existence, further distinguish whether the target is a file or a directory;
File metadata: for files not matching the sensitive-name blacklist, return the character count and a token estimate (no content is returned), while distinguishing "file exists but was blocked by policy" from "file does not exist".
These primitives do not leak file contents by themselves, but combined they form a complete local environment reconnaissance toolkit:
Local username enumeration: dictionary-probe whether C:\Users\<name> directories exist, enumerating all local user directories;
Software and version fingerprinting: probe installation directories under C:\Program Files\ (many applications use version-named directories), yielding a far more precise software inventory than a User-Agent; the presence or absence of security product (EDR) directories directly reveals the protection posture;
Confirmation of sensitive configuration presence: verify whether SSH private keys, cloud credentials, Kubernetes configurations, password stores, etc. exist — directing subsequent theft attempts;
UNC paths triggering SMB authentication (substantial Windows-specific risk): setting the baseline path to a \\host\share form causes the service process to issue an SMB authentication handshake toward the target host when executing fs.existsSync. An attacker-controlled host can capture Net-NTLM hashes, while also probing internal host liveness;
Weak content inference and activity monitoring: for configuration files with a fixed format, differences in character count can reveal which options are enabled; polling the character count of the same file enables stealthy tracking of file changes and user activity.
Impact summary: for a native malicious process on the same machine, the marginal gain is limited (such a process can read the filesystem itself); but for sandboxed attack vectors such as browser extensions, this is a qualitative change — from being entirely unable to touch the filesystem to possessing a yes/no oracle over arbitrary paths. It also serves as a verifier for other disclosure vulnerabilities, confirming leaked intelligence item by item. Hence the Medium-Low rating: the individual disclosure is limited, but the value as a link in an attack chain is significant. |
|---|
| Fonte | ⚠️ https://github.com/matt1398/claude-devtools/issues/252 |
|---|
| Utilizador | Anonymous User |
|---|
| Submissão | 06/11/2026 08h10 (há 23 dias) |
|---|
| Moderação | 29/11/2026 16h00 (23 days later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 445188 [matt1398 claude-devtools até 0.5.0 Fastify HTTP API validation.ts projectPath Autenticação fraca] |
|---|
| Pontos | 20 |
|---|