You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WebSocket endpoint accepts TCP upgrade and establishes a connection without any authentication. An unauthenticated attacker can receive real-time platform activity broadcasts including:
Agent status changes, task progress, activity feed events
Agent names, activity types, task identifiers
PII leaks (e.g., shared_with email addresses in agent_shared events)
Process execution details and error messages
Root Cause
main.py lines 355–364 call websocket.accept() before performing any authentication check.
Steps to Reproduce
A PoC script (ws_vuln_tests.py) demonstrates that connecting without auth yields real-time events:
agent_activity events with model names, execution IDs, message previews
process_event events with process names and execution details
Remediation
Reject WebSocket upgrade requests that do not provide a valid bearer token before calling websocket.accept()
If browser clients cannot send Authorization headers during WebSocket upgrade, implement a short-lived ticket pattern: exchange a JWT for a one-time WebSocket ticket via an authenticated POST, then use the ticket in the WS URL with a 30-second TTL
Activity
fix(security): WebSocket authentication before accept — reject unauth…
docs(release)+test: record ent#187 skill-package decision (accept ris…
feat(ui): Skills management surface — unhide and rebuild the Skills t…