T09 · Insecure Skill Coding Practices
- Location
scripts/batch_rename.py:49- Finding
Path Traversal in Batch Rename Destination
- Content
View full analysis
- Remediation
View remediation
{new_path.resolve(strict=False)}") ``` 4. Abort execution when destination collisions are detected instead of merely warning. 5. Consider removing `--no-confirm`. If non-interactive operation is required, require an additional explicit safety option after all paths have passed containment validation. 6. Revalidate containment immediately before `rename()` to reduce time-of-check/time-of-use risks caused by filesystem changes. ]]>
