T09 · Insecure Skill Coding Practices
- Location
generate.sh:291- Finding
Shell Command Injection Through Dynamic curl Command Evaluation
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` Apply additional input validation: - Require `seed` to match an explicitly supported numeric format. - Restrict custom filenames to a conservative character allowlist and an expected image extension. - Validate or normalize `OUTPUT_DIR` before use. - Treat API keys and all environment-derived values as untrusted shell data. - Keep every variable expansion quoted. - Consider using Bash arrays if the script is intentionally migrated from POSIX `sh` to Bash. ]]>
