T09 · Insecure Skill Coding Practices
- Location
scripts/arm-recovery-watchdog.sh:294- Finding
Untrusted watchdog state file permits command hijacking and arbitrary file deletion
- Content
View full analysis
"$state_file" write_kv "$state_file" "backend" "$backend" write_kv "$state_file" "label" "$label" write_kv "$state_file" "unit" "$unit" write_kv "$state_file" "domain" "$LAUNCHCTL_DOMAIN" write_kv "$state_file" "plist" "$plist" write_kv "$state_file" "watchdog_log" "$watchdog_log" write_kv "$state_file" "stdout_log" "$stdout_log" write_kv "$state_file" "stderr_log" "$stderr_log" write_kv "$state_file" "launchctl_bin" "$LAUNCHCTL_BIN" write_kv "$state_file" "systemctl_bin" "$SYSTEMCTL_BIN" write_kv "$state_file" "openclaw_bin" "$OPENCLAW_BIN" ``` ```bash backend="$(read_state_value "$state_file" backend)" label="$(read_state_value "$state_file" label)" unit="$(read_state_value "$state_file" unit)" domain="$(read_state_value "$state_file" domain)" plist="$(read_state_value "$state_file" plist)" watchdog_log="$(read_state_value "$state_file" watchdog_log)" stdout_log="$(read_state_value "$state_file" stdout_log)" stderr_log="$(read_state_value "$state_file" stderr_log)" stored_launchctl="$(read_state_value "$state_file" launchctl_bin)" stored_systemctl="$(read_state_value "$state_file" systemctl_bin)" [[ -n "$stored_launchctl" ]] && L ...[truncated 3105 chars]- Remediation
View remediation
