cocotais-bot
Affected
- introduced
1.5.0-test2-hotfix, fixed1.6.2(semver)
Fixed versions
1.6.2
Fix
- Fixed version
1.6.2npm install [email protected]
Advisory
Also known as: CVE-2025-47948
Cocotais Bot has builtin .echo command injection
Summary
A command echoing feature in the framework allows users to indirectly trigger privileged behavior by injecting special platform tags. Specifically, an unauthorized user can use the /echo <qqbot-at-everyone /> command to cause the bot to send a message that mentions all members in the chat, bypassing any permission controls. This can lead to spam, disruption, or abuse of notification systems.
Details
The framework provides a command /echo that causes the bot to repeat any user-provided message verbatim in the group chat. However, the bot fails to sanitize or filter platform-specific control elements such as <qqbot-at-everyone />, which, when included in a message, mentions everyone (i.e., @全体成员). While normal users are forbidden from using this tag in normal chats, the bot, which has higher privileges, is allowed to do so.
Since the /echo command blindly echoes any content, a user can exploit this by sending:
/echo <qqbot-at-everyone />
The bot will then send a message containing <qqbot-at-everyone />, causing the platform to interpret it as an @全体成员 command, effectively allowing an unauthorized user to @everyone via the bot.
PoC
/echo <qqbot-at-everyone />
<qqbot-at-everyone /> as an @全体成员 mention.Medium Basis: The source's own band: MODERATE
1.5.0-test2-hotfix, fixed 1.6.2 (semver)1.6.2
1.6.2npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0