T09 · Insecure Skill Coding Practices
- Location
scripts/quality_filter.py:204- Finding
Destination File Overwrite During Move Operations
- Content
View full analysis
--action move --output `. 5. Both source files resolve to `/photo.jpg`. 6. Depending on platform filesystem semantics, a subsequent `shutil.move` replaces the existing destination. 7. The previously moved or pre-existing destination file is lost. ### Impact Assessment The issue can cause unintended and potentially irreversible loss of image files. Its scope is limited to files writable by the account executing the script and to destination names derived from identified low-quality images. It does not ...[truncated 113 chars]- Remediation
View remediation
