T09 · Insecure Skill Coding Practices
- Location
scripts/autothread-telegram.sh:39- Finding
Unrestricted Telegram API endpoint override can disclose bot credentials and message content
- Content
View full analysis
- Remediation
View remediation
` or a Unix socket. 5. Reject non-HTTPS destinations and validate the parsed hostname against an exact allowlist. 6. Do not place credentials in URLs when an API supports safer authentication mechanisms. Telegram requires its current URL token format, making strict destination validation especially important. 7. Sanitize the environment in the parent service before invoking adapters. 8. Add tests verifying that arbitrary domains, user-info URLs, redirects, and plaintext HTTP endpoints are rejected. 9. Consider using `curl --proto '=https' --max-redirs 0 --fail-with-body` for production requests. ]]>
