Commit 43b9f4b
fix(security): remove per-message token override in WebSocket handler
Clients could inject a token in any WebSocket message body to override
the connection's authentication identity. Remove this non-standard
pattern and rely solely on connection-level authentication, matching
the approach used by Socket.IO, GraphQL-WS, Phoenix Channels, and
recommended by OWASP. The login-over-WS flow is unaffected as it
manages its own token via processLoginRequest.1 parent 7db2b21 commit 43b9f4b
1 file changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
570 | 569 | | |
571 | 570 | | |
572 | 571 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | 572 | | |
578 | 573 | | |
579 | 574 | | |
| |||
0 commit comments