T09 · Insecure Skill Coding Practices
- Location
SKILL.md:94- Finding
Capability-Bearing Download and Order Status Tokens Exposed in URL Query Strings
- Content
View full analysis
- Remediation
View remediation
``` 2. If browser navigation requires a URL token, exchange a short-lived one-time code for a secure, scoped session and immediately redirect to a URL without the token. 3. Make public-access tokens: - Cryptographically random - Short-lived - Single-use where practical - Scoped to one order, item, and operation - Revocable and rotated when a replacement link is generated 4. Configure applications, proxies, CDNs, analytics systems, and monitoring tools to redact token parameters. 5. Apply a strict `Referrer-Policy`, such as `no-referrer`, to public download and order-status responses. 6. Update both `SKILL.md` and `references/api-examples.md` so they do not encourage long-lived credentials in query strings. 7. Document token lifetime, scope, revocation behavior, and safe handling requirements. ]]>
