T09 · Insecure Skill Coding Practices
- Location
scripts/common.sh:9- Finding
Bearer API credential can be transmitted to an arbitrary configured endpoint
- Content
View full analysis
``` 5. The attacker records the key and uses it directly against t ...[truncated 729 chars]- Remediation
View remediation
&2; exit 1 ;; esac ``` 3. Prefer an explicit hostname allowlist, such as `api.usethreadly.co`, for normal operation. 4. If custom deployments are required, require a separate explicit opt-in and document that the destination receives the API credential. 5. Reject malformed URLs and URLs containing user-information components. 6. Keep redirect following disabled unless required. If redirects are later enabled, ensure authorization headers cannot be forwarded to a different origin. 7. Consider separating the official API mode from custom-deployment mode so accidental environment overrides fail closed. ]]>
