T05 · Unauthorized Access and Privilege Escalation
- Location
smart-files.js:18- Finding
Workspace Boundary Bypass Enables Unauthorized External File Access
- Content
View full analysis
0) { const ext = path.extname(entry.name).toLowerCase(); if (!extensions.includes(ext)) continue; } files.push({ path: fullPath, name: entry.name, size: fs.statSync(fullPath).size }); } } return files; } ``` The `--info` implementation accepts an arbitrary path without calling `resolveDir` at all: ```js function fileInfo(filepath) { try { const stat = fs.statSync ...[truncated 5627 chars]- Remediation
View remediation
