T09 · Insecure Skill Coding Practices
- Location
scripts/render_preview.mjs:3703- Finding
Rendering recursively deletes a reusable staging directory, including unrelated existing files
- Content
View full analysis
Impact
Existing unrelated files and subdirectories within the selected staging directory are deleted with the invoking user's filesystem permissions. Cleanup does not require --force, an affirmative deletion confirmation, or a dry-run override. The optional --keep-tmp flag prevents deletion but does not make the default safe.
