Websocket security

From zakirkun/ice-tea · View interactive version

Websocket security is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects insecure WebSocket implementations including missing origin validation, lack of authentication, and message injection risks.

How to use this skill

Skill file

WebSocket Security Issues

Overview

WebSocket connections bypass same-origin policy — browsers send cookies with WebSocket upgrade requests, making them vulnerable to:

  1. Cross-Site WebSocket Hijacking (CSWSH): No Origin header validation allows cross-origin connections
  2. Missing authentication: WebSocket handlers that don't verify the user is logged in
  3. Message injection: User-controlled messages echoed back without sanitization

Detection Strategy

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.