T09 · Insecure Skill Coding Practices
- Location
SKILL.md:838- Finding
Arbitrary Shell Command Execution Through Sourced Configuration
- Content
View full analysis
- Remediation
View remediation
"${TRIM_TEMP_LOGFILE}" exit 1 ;; esac if [ "$configured_port" -lt 1 ] || [ "$configured_port" -gt 65535 ]; then echo "Configured port is outside the valid range" >"${TRIM_TEMP_LOGFILE}" exit 1 fi PORT="$configured_port" fi ``` The parser should be extended carefully for other approved keys rather than using `eval`, `source`, or the dot command. ]]>
