T09 · Insecure Skill Coding Practices
- Location
scripts/security-check.sh:105- Finding
Arbitrary Python Code Execution Through Unsanitized Channel Names
- Content
View full analysis
/dev/null || echo ""; } ``` ### Technical Analysis Channel names originate in `openclaw.json` and are inserted between single quotes inside expressions supplied to `python3 -c`. No Python-string escaping or validation is applied. A channel key containing a quote and additional Python syntax can terminate the intended string literal and alter the expression executed by Python. Although the shell variable is enclosed in double quotes and does not directly produce shell metacharacter expansion, the resulting value is deliberately interpreted as Python source. This creates an arbitrary Python execution primitive for anyone able to influence the local OpenClaw configuration. ### Attack Path 1. An attack ...[truncated 1085 chars]- Remediation
View remediation
