Context-Inappropriate Capability
Medium
- Confidence
- 94% confidence
- Finding
- This code reads a Discord bot token from configuration and the DISCORD_BOT_TOKEN environment variable, normalizes it, and returns the token value in the function result. Returning raw secrets from an inspection/helper routine materially increases exposure because any caller, logger, telemetry path, or downstream consumer can accidentally disclose or misuse the credential; for a Discord bot token, compromise enables full bot impersonation.
