AGENT SKILL

webapp-api-websocket

Webapp Api Websocket.

License 许可
MIT
最近更新
2026-09-01
Stars
★ 0
Forks
0

01 前言 Front Matter

name
webapp-api-websocket
domain
cybersecurity
description
Webapp Api Websocket.

02 资源文件 1

03 SKILL.md 正文

-| | CSWSH - No Origin validation | High | | Missing message-level authorization | High | | XSS via chat message injection | Medium | | No rate limiting on messages | Medium | | Channel IDOR (subscribe to any channel) | High | | WebSocket open after logout | Medium |

Impact

  • Private message exfiltration via CSWSH
  • Account impersonation through unauthorized message sending
  • Cross-channel data access affecting all users
  • DoS via message flooding (no rate limits)

Recommendation

  1. Validate the Origin header during WebSocket handshake
  2. Implement CSRF tokens in the WebSocket upgrade request
  3. Enforce authorization checks on every WebSocket message
  4. Sanitize all user input in WebSocket messages (prevent XSS/SQLi)
  5. Implement message rate limiting per connection
  6. Invalidate WebSocket connections on logout or session expiration
  7. Use per-message authentication tokens rather than relying solely on the initial handshake

04 同仓库更多 Skills