T09 · Insecure Skill Coding Practices
- Location
scripts/install-wrapper.sh:19- Finding
SSH Option Injection Through an Unvalidated Host Value
- Content
View full analysis
/dev/null 2>&1; then local discovered discovered="$(python3 - "$OPENCLAW_CONFIG" "$tool" <<'PY' import json import sys from pathlib import Path config_path = Path(sys.argv[1]) tool = sys.argv[2] cfg = json.loads(config_path.read_text()) channels = cfg.get("channels") or {} channel_by_tool = { "imsg": "imessage", "remindctl": "reminders", "memo": "notes", "things": "things", "peekaboo": "peekaboo", } channel_name = channel_by_tool.get(tool) if channel_name: channel = channels.get(channel_name) or {} remote_host = channel.get("remoteHost") if isinstance(remote_host, str) and remote_host.strip(): print(remote_host.strip()) raise SystemExit(0) hosts = [] for channel in ch ...[truncated 2564 chars]- Remediation
View remediation
