| عنوان | Sipeed PicoClaw <= 0.2.9 Incorrect Authorization (CWE-863) |
|---|
| الوصف | # Technical Details
An authorization and policy bypass exists in the WeCom inbound channel in `pkg/channels/wecom/wecom.go` of PicoClaw.
The application fails to enforce the configured group trigger policy before publishing WeCom group messages to the internal inbound bus. `dispatchIncoming` classifies `body.chattype="group"` as a group message, but directly calls `HandleInboundContext` without invoking the shared `ShouldRespondInGroup` gate.
# Vulnerable Code
File: `pkg/channels/wecom/wecom.go`
Method: `handleMessageCallback`, `dispatchIncoming`
Why: Accepts ordinary WeCom message callbacks and forwards group messages to `HandleInboundContext` without checking `group_trigger.mention_only`.
File: `pkg/channels/base.go`
Method: `ShouldRespondInGroup`
Why: Implements the expected mention-only group gate, but WeCom fails to invoke it before publishing inbound messages.
# Reproduction
1. Configure WeCom with `channels.wecom.group_trigger.mention_only=true`.
2. Send an ordinary unmentioned WeCom group message.
3. Observe `dispatchIncoming` sets `ChatType` to `group` and publishes the content to `MessageBus.InboundChan`.
4. Run the control gate and observe that `ShouldRespondInGroup` would suppress the message.
# Impact
- Allows unmentioned WeCom group messages to reach the agent runtime despite mention-only policy.
- Enables unauthorized prompt injection by ordinary group participants.
- May trigger unintended tools, workflow actions, or model/API resource consumption. |
|---|
| المصدر | ⚠️ https://github.com/sipeed/picoclaw/issues/3076 |
|---|
| المستخدم | Eric-i (UID 97584) |
|---|
| ارسال | 09/06/2026 01:33 PM (1 شهر منذ) |
|---|
| الاعتدال | 18/07/2026 09:22 AM (1 month later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 380011 [Sipeed PicoClaw حتى 0.2.9 Group Message wecom.go dispatchIncoming تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|