| tiêu đề | https://github.com/chenhg5/ cc-connect commit dfad19415a38b00b2c5c288610784d1a7eef337f Missing Authorization |
|---|
| Mô tả | WPS Agentspace platform has no access-control option, unlike every other supported platform
Affected versions: confirmed present in the latest tagged release, v1.5.1-beta.3, and on the default branch `main` at commit `dfad19415a38b00b2c5c288610784d1a7eef337f`.
## Summary
Every supported chat platform in cc-connect (Telegram, Slack, Feishu, WeCom, and its own closest sibling, WPS Xiezuo) supports an `allow_from` option restricting which users may drive the configured coding agent, and the project's own documentation calls this out as required for production use. The WPS Agentspace (数字员工 / "digital employee") platform has no such option anywhere: any WPS user able to message the connected digital-employee app gets the same full, unrestricted access to the configured agent as the deploying operator.
## Details
`platform/wps-agentspace/wpsagentspace.go`'s `handleUserMessage` dispatches directly to the configured agent handler:
```go
func (p *Platform) handleUserMessage(data messageData) error {
chatID := data.SessionID
if chatID == "" {
chatID = data.ChatID
}
...
if p.handler != nil {
msg := &core.Message{...}
go p.handler(p, msg)
}
return nil
}
```
No part of `New()` or `handleUserMessage` reads an `allow_from` option or checks the incoming message against any restriction. Every other platform package in this repository calls `core.AllowList(allowFrom, userID)` (defined in `core/message.go`) before dispatching; `wps-agentspace` is the only one that does not, with nothing in its code, comments, or `config.example.toml` entry suggesting this was deliberate.
The closest comparable platform, `wps-xiezuo` (same vendor, same chat-bot shape), documents this exact risk directly: "Always set `allow_from` for production deployments" and a troubleshooting section titled "Bot responds to unexpected users."
## POC
(available upon request)
## Impact
Any WPS user who can message the digital-employee app this connector is bound to gets the same access as the operator who configured it: the ability to drive whatever coding agent is configured, against whatever `work_dir` the operator set, with no restriction. The project's own example configuration for this platform additionally sets `mode = "bypassPermissions"`, meaning a deployment following that example also skips per-action tool-use confirmation.
Suggested fix: add the same `allow_from` option and `core.AllowList` check every other platform in this codebase already uses, scoped by chat/session ID (the identifier the current protocol frame exposes). A fix implementing exactly this, with test coverage, is included in the linked pull request.
|
|---|
| Nguồn | ⚠️ https://github.com/chenhg5/cc-connect/issues/1961 |
|---|
| Người dùng | carfeii (UID 97470) |
|---|
| Đệ trình | 06/11/2026 17:54 (cách đây 23 ngày) |
|---|
| Kiểm duyệt | 29/11/2026 03:35 (22 days later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 445141 [chenhg5 cc-connect đến 1.5.1-beta.3 WPS Agentspace Platform Adapter wpsagentspace.go handleUserMessage nâng cao đặc quyền] |
|---|
| điểm | 20 |
|---|