T09 · Insecure Skill Coding Practices
- Location
scripts/install-wrapper.sh:83- Finding
SSH Option Injection Through an Unvalidated Remote Host
- Content
View full analysis
&2 echo "Provide --map $tool=user@host, --default-host user@host, or configure a matching remoteHost in $OPENCLAW_CONFIG." >&2 exit 1 } ``` ```bash cmd=( "$INSTALL_WRAPPER" --name "$tool" --host "$host" --remote-bin "$remote_bin" --target-dir "$TARGET_DIR" ) ``` ### Technical Analysis The host value is accepted from `--host`, `--map`, `--default-host`, or an OpenClaw `remoteHost` setting without enforcing valid `host` or `user@host` syntax. In particular, values beginning with a hyphen are not rejected. Although `printf '%q'` safely serializes the value into the generated Bash script and prevents direct shell metacharacter expansion ...[truncated 2291 chars]- Remediation
View remediation
