T09 · Insecure Skill Coding Practices
- Location
scripts/bootstrap_restic_home.sh:221- Finding
Root Command Injection Through Unsafely Generated and Sourced Environment File
- Content
View full analysis
"${ENV_FILE}" </dev/null 2>&1; then echo " ✓ Repository already initialized — skipping init" else echo " Initializing repository at ${RESTIC_REPOSITORY}..." /usr/bin/restic init 2>&1 echo " ✓ Repository initialized" fi fi ``` Generated scheduled scripts also source the same file: ```bash #!/usr/bin/env bash set -euo pipefail source /etc/home-backup/env exec /usr/local/ ...[truncated 2327 chars]- Remediation
View remediation
