Web Security · Client-side
Cross-Site WebSocket Hijacking
Also known as: CSWSH
An attacker page opens a WebSocket to a trusted site using the browser's eligible session cookie. If the server accepts the foreign Origin, that page can send messages and read replies as the user. Allow only exact trusted origins and authorize each action.