T09 · Insecure Skill Coding Practices
- Location
scripts/up-videos.sh:22- Finding
Python Code Injection Through the Uploader UID Argument
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 } ``` 3. Validate and bound the requested limit: ```bash [[ "$LIMIT" =~ ^[0-9]+$ ]] || exit 1 (( LIMIT >= 1 && LIMIT <= 1000 )) || exit 1 ``` 4. Keep the Agent process unelevated and restrict its filesystem and network permissions. 5. Add automated tests containing quotes, newlines, semicolons, backslashes, and Python syntax in every command-line argument. ]]>
