T05 · Unauthorized Access and Privilege Escalation
Warning
- Location
- SKILL.md:67
- Finding
- Unnecessary Disabling of Telegram Bot Privacy Mode Expands Message Access## Vulnerability Details **File Location**: `SKILL.md`, lines 67-83 **Vulnerability Type**: Excessive access to Telegram message content **Risk Level**: Medium ### Vulnerable Instruction Snippet The following is an English rendering of the relevant instruction segment: ```markdown ## Step 2: Configure Bot Privacy Mode Through BotFather Every OpenClaw bot needs to disable privacy mode so that it can read all messages in the channel, rather than only commands sent to it. Steps: 1. Open the conversation with @BotFather in Telegram. 2. Send /setprivacy. 3. Select your OpenClaw bot. 4. Select Disable. Explain why this matters: by default, Telegram bots can only see messages beginning with / or messages that directly mention them. After privacy mode is disabled, the bot can see every message in the channel. Important: the user's friend must do the same for their OpenClaw bot. Privacy mode must be disabled for both bots. ``` Related context-access rules at lines 183 and 217 instruct each bot to read the ten most recent messages. ### Technical Analysis The Skill categorically instructs every participant to disable Telegram bot privacy mode. This changes a bot-level security setting and can broaden message delivery beyond explicit commands and direct mentions, particularly when the bot is used in Telegram groups in addition to the intended channel. The setting is not scoped exclusively to the channel established by this Skill. Consequently, a bot reused elsewhere may receive message content from other conversations after the setting is changed. The Skill does not require participant consent, identify retention boundaries, restrict processing to explicit triggers, or explain how users should restore the setting. Moreover, Telegram privacy mode primarily controls message visibility in groups; channel administrators receive channel posts through Telegram's channel update mechanism. Requiring this global reduction ...[truncated 1598 chars]
- Remediation
- ## Remediation Suggestions 1. Do not require privacy mode to be disabled by default. 2. Explain that privacy mode affects group message delivery at the bot level and is not restricted to one channel. 3. Verify whether channel administrator updates already satisfy the integration requirements before weakening privacy settings. 4. Prefer explicit activation through mentions, commands, replies, or an allowlisted channel identifier. 5. Require an allowlist of permitted chat IDs in OpenClaw and reject updates from all other chats. 6. Obtain informed consent from every participant before processing general conversation content. 7. Minimize retained context and document whether messages are logged, transmitted to model providers, or stored by integrations. 8. If disabling privacy mode is genuinely required, recommend a dedicated bot that is not present in unrelated groups. 9. Include rollback instructions for re-enabling privacy mode when the integration is removed. 10. Treat all Telegram messages as untrusted input and prevent message content from authorizing tool calls, configuration changes, credential disclosure, or persistent instruction updates.
