All Questions
Real Time Updates medium

Cross-Site WebSocket Hijacking (CSWSH) is a vulnerability where an attacker's site connects to your WebSocket server using the victim's cookies. How do you prevent this?

  1. A Validate the `Origin` header during the initial HTTP Upgrade handshake.
  2. B Use SSL (WSS) everywhere.
  3. C Disable Cookies.
  4. D Use a random port number.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions