T09 · Insecure Skill Coding Practices
- Location
scripts/workflow/state-manager.sh:73- Finding
Arbitrary Python Code Execution Through Unsanitized Phase Argument
- Content
View full analysis
" exit 1 fi if [ ! -f "$STATE_FILE" ]; then echo "❌ 未找到state.json" exit 1 fi # 更新current_phase python3 - < ``` 2. The a ...[truncated 1028 chars]- Remediation
View remediation
&2 exit 1 ;; esac ``` 4. Run the workflow under a dedicated, unprivileged account and avoid hard-coded root-owned paths. 5. Add tests using phase arguments containing quotes, newlines, backslashes, and shell/Python metacharacters to verify they are rejected rather than executed. ]]>
