T09 · Insecure Skill Coding Practices
- Location
scripts/sanitize-config.sh:20- Finding
Incomplete Secret Sanitization Can Expose Credentials Through an Unverified Backup Repository
- Content
View full analysis
"$OUTPUT_FILE" ``` `scripts/backup.sh:131-153`: ```bash # Backup OpenClaw system configuration log "Backing up OpenClaw system configuration..." if [ -f "$OPENCLAW_CONFIG" ]; then if [ "$DRY_RUN" = false ]; then # Sanitize the config file to remove sensitive tokens if command -v jq &> /dev/null; then log " Sanitizing openclaw.json (removing sensitive tokens)..." # Get script directory relative to this script SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" if [ -f "$SCRIPT_DIR/sanitize-config.sh" ]; then "$SCRIPT_DIR/sanitize-config.sh" "$OPENCLAW_CONFIG" "config/openclaw.json" log " ✓ Backed up: openclaw.json (sanitized)" else log " ⚠ Sanitizer script not found, skipping openc ...[truncated 4142 chars]- Remediation
View remediation
