T09 · Insecure Skill Coding Practices
- Location
scripts/lifelog-append.sh:170- Finding
Unsafe JSON construction permits request-body injection and data corruption
- Content
View full analysis
- Remediation
View remediation
/dev/null 2>&1; then echo "Invalid date" >&2 exit 1 fi ``` 4. Validate database and page IDs against the expected Notion identifier format. 5. Enable strict shell behavior with `set -euo pipefail`, use `curl --fail-with-body`, and stop processing when serialization or API requests fail. 6. Add tests containing quotes, backslashes, tabs, carriage returns, Unicode, and multiline text to verify that inputs remain JSON string values rather than changing payload structure. ]]>
