Security: Unbounded per-connection WebSocket send queue (memory DoS) #81
Labels
No labels
area:api
area:core
area:docs
area:infra
area:ux
dependencies
documentation
duplicate
good first issue
help wanted
invalid
question
rust
status:complete
status:partial
status:planned
type:bug
type:design
type:feature
type:infra
type:refactor
type:refactor
type:research
type:ux
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
icub3d/decentcom#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High — found in code review 2026-07-07.
Problem
server/src/gateway/connection.rs:30usesmpsc::unbounded_channel::<String>()for each connection's outbound queue. Everybroadcast_all(joins/leaves, messages, role events) pushes to each connection's sender. A client that connects, authenticates, then stops reading grows its queue without bound as server activity continues — one idle socket per attacker exhausts server memory. The heartbeat-ack timeout doesn't bound an un-flushed backlog.Fix
Acceptance