T09 · Insecure Skill Coding Practices
- Location
scripts/export_pdf.js:153- Finding
Predictable Temporary Directory Is Recursively Deleted Without Ownership Validation
- Content
View full analysis
/_pdf_pages` and places data there. On platforms where directory junction behavior permits it, the attacker may attempt to redirect the path to another accessible directory. 3. The user runs `node export_pdf.js`. 4. The initialization code resolves the predictable path and calls `fs.rmSync(imgDir, { recursive: true })`. 5. Existing content is d ...[truncated 507 chars]- Remediation
View remediation
