Context-Inappropriate Capability
Medium
- Confidence
- 96% confidence
- Finding
- The code uses child_process.exec to build and execute a shell command containing botToken, chatId, and message text. Even though the message body is URL-encoded, botToken and chatId are interpolated directly into the shell command, so attacker-controlled or malformed configuration values can lead to shell injection or unintended command execution; using a shell here also unnecessarily expands the attack surface for a simple HTTP API call.
