T09 · Insecure Skill Coding Practices
- Location
SKILL.md:52- Finding
Unvalidated API Base URL Can Disclose Bearer Credentials and Note Content
- Content
View full analysis
- Remediation
View remediation
&2 exit 1 fi ``` 4. Configure `curl` to fail on HTTP errors and avoid following redirects to unintended hosts: ```bash curl --fail --silent --show-error \ -X POST "$AICOO_BASE/os/snapshots/42" \ -H "Authorization: Bearer $AICOO_API_KEY" \ -H "Content-Type: application/json" \ -d '{"label":"Pre-edit backup"}' ``` 5. Document that agents must never send `AICOO_API_KEY` or note content to a user-supplied or environment-supplied host without explicit trust validation. 6. Apply least privilege and short expiration to API credentials. Rotate the key immediately if an affected workflow may have been executed with an untrusted `PULSE_BASE`. ]]>
