T09 · Insecure Skill Coding Practices
- Location
scripts/shell.sh:25- Finding
Command Injection in Generated Shell Scripts Through Unescaped Template Parameters
- Content
View full analysis
> /var/log/backup.log 2>&1 set -euo pipefail # ---- 配置 ---- BACKUP_SOURCE="${source}" BACKUP_DEST="${dest}" BACKUP_NAME="${name}" ``` Deployment template generation: ```bash gen_deploy() { local name="${NAME:-myapp}" local remote="${REMOTE:-user@server}" cat <- Remediation
View remediation
