HACKR.GG
Web Security

WebSocket Security

WebSockets keep connections open for real-time data — but most apps bolt security on as an afterthought. Learn cross-site WebSocket hijacking, message manipulation, auth bypass, and SQLi/XSS through persistent connections.

Intermediate40 min6 lessons1 hands-on
Start free →I have an account
First lesson free. The full module is part of Pro.

You'll be able to

  • ✓Understand how WebSocket connections are established and authenticated
  • ✓Identify when role or privilege checks are missing on message handlers
  • ✓Forge WebSocket tokens to escalate from user to admin
  • ✓Use wscat to send crafted WebSocket frames and observe server behaviour

Lessons

  1. 1How WebSockets Work — The Upgrade Handshake
  2. 2Cross-Site WebSocket Hijacking (CSWSH)
  3. 3Your Turn: Cross-Site WebSocketHANDS-ON
  4. 4Message Injection — SQLi, XSS, and Auth Bypass via WebSocket
  5. 5ws:// vs wss:// and Frame Interception
  6. 6Final Assessment — WebSocket Security
Start free →