websocket-test · git:20260914.819e838 · 2026-09-14 · sha256 4e1e7717cfcfd037
websocket-test git:20260914.819e838A
Immutable. This exact content is served forever at /api/v1/blob/4e1e7717cfcfd037.
--- name: websocket-test description: > Explore WebSocket state, authentication, subscriptions, and replay as chained attack surfaces. metadata: tags: "websocket,ws,csrf,idor,replay" --- # WebSocket Test ## Goal 判断 WebSocket 是否在握手、消息、订阅、重放或 Origin 校验中暴露越权能力。 ## Tools / Inputs - WS/WSS URL、Socket.IO/STOMP hints、tokens、room/channel/user IDs - 资源索引:`references/INDEX.md`;候选资源:`websocket-security-testing.md`;跨协议链路再读 `decision-trees.md` ## Constraints 1. 不做连接耗尽或破坏性 DoS。 2. 用测试账号验证跨用户订阅或消息动作。 3. 每条消息都关注 userId、roomId、tenantId、role 等可控字段。 4. 成功后证明实际接收或执行了不该发生的事件。 5. 新 ID/channel/token 回写值池。 ## Chain Questions - 认证发生在握手还是消息体? - 换 token 或 userId 后订阅边界是否变化? - 消息是否可重放、篡改或跨房间发送? - WS 泄露的数据能否反哺 HTTP API?