T09 · Insecure Skill Coding Practices
- Location
run.sh:149- Finding
Arbitrary Command Execution Through GNU sed Program Injection
- Content
View full analysis
- Remediation
View remediation
"$TODOS_FILE.tmp" && mv -- "$TODOS_FILE.tmp" "$TODOS_FILE" ``` 4. Run the Skill as a dedicated, unprivileged account and avoid hardcoding storage under `/root`. 5. Apply restrictive permissions to the data directory and files, such as mode `0700` for the directory and `0600` for journal and configuration files. 6. Add regression tests using sed metacharacters, delimiters, newlines, and GNU sed flags to ensure all malformed identifiers are rejected. ]]>
