frame masking
The WebSocket rule that every frame from client to server is scrambled with a random 4-byte key, while frames from server to client are not.
In more detail
Masking stops attackers from tricking proxies along the way into caching bytes that look like HTTP. It is not encryption, since the key is sent in the frame.
Related terms
- WebSocket — A protocol that turns an HTTP connection into a long-lived, two-way channel where client and server can each send messages at any time.
- web cache poisoning — An attack that gets a cache to store harmful content under a legitimate address, so everyone who asks for that address receives it.
- proxy server — A server that sits between clients and servers and forwards requests on someone's behalf, often applying policy, caching or security on the way.
Taught in
- Native WebSockets: Bidirectional Real-Time Streams — Node.js Internals & Backend Services