T09 · Insecure Skill Coding Practices
- Location
scripts/install.sh:55- Finding
Arbitrary Command Execution Through Unsafe Work Directory Expansion
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi WORKDIR="$(cd "$WORKDIR" && pwd -P)" ``` Additional hardening should include: - Rejecting control characters in paths. - Avoiding every use of `eval` for user-controlled input. - Using `realpath` or a safe directory canonicalization method where available. - Adding regression tests containing command substitutions, semicolons, quotes, spaces, and XML metacharacters. ]]>
