T09 · Insecure Skill Coding Practices
- Location
scripts/imap.js:329- Finding
Email Attachment Filename Allows Path Traversal and Arbitrary File Overwrite
- Content
View full analysis
--dir ``` 4. `mailparser` exposes the attacker-provided attachment filename. 5. The Skill joins that filename to `outputDir` without containment validation. 6. `fs.writeFileSync()` writes attacker-controlled attachment data outside the intended directory. 7. If the resolved destination already exists and is writable, it is overwritten. ### Impact Assessment An attacker can ...[truncated 491 chars]- Remediation
View remediation
