T09 · Insecure Skill Coding Practices
- Location
scripts/validate.sh:58- Finding
Arbitrary Python Code Execution Through Unsafely Interpolated File Paths
- Content
View full analysis
- Remediation
View remediation
".join(str(p) for p in exc.absolute_path)) sys.exit(1) PY ``` Additional hardening should include: - Avoiding dynamically generated source code entirely. - Running validation with the least privileges required. - Testing filenames containing quotes, spaces, newlines, shell metacharacters, and Unicode characters. - Keeping dependency installation separate from file validation. - Adding automated regression tests proving that unusual paths are treated strictly as data. ]]>
