Cocotais Bot Command Injection Vulnerability Allowing Unauthorized @everyone Mentions

Vulnerability

A command injection vulnerability has been identified in Cocotais Bot, a QQ robot framework based on qq-bot-sdk. This issue affects versions 1.5.0-test2-hotfix through 1.6.1. The vulnerability arises from the command echoing feature, which allows users to inject special platform tags that trigger privileged behaviors. Specifically, an unauthorized user can use the '/echo <qqbot-at-everyone />' command to make the bot mention all members in a chat, bypassing permission controls. This exploitation can lead to spam and disruption of notification systems.

Impact

Exploitation of this vulnerability allows unauthorized users to send @everyone mentions through the bot, causing all chat members to receive notifications and potentially leading to spam and disruption.

Reproduction

To reproduce this vulnerability, set up a chatbot using the affected Cocotais Bot framework version 1.5.0-test2-hotfix through 1.6.1. Join a chat as a regular user without permission to use @全体成员. Send the message '/echo <qqbot-at-everyone />'. The bot will repeat the message, and the platform will interpret it as an @全体成员 mention, notifying all chat members.

Remediation

Users can upgrade to Cocotais Bot version 1.6.2, which patches this vulnerability.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.