Skip to content

v4.3.0

Choose a tag to compare

@Nedomas Nedomas released this 24 Nov 19:55
0afe993

latest moves from 4.2.4 to 4.3.0: two protections against web pages, for gateways without an API key. Nothing changes for clients that aren't browsers, nor for connections from other machines. No new options.

Security fixes

  • DNS rebinding. Without a key, a browser's same-origin request that reaches this machine on a loopback address for a name that isn't this machine's (localhost, *.localhost and addresses are) gets 403 (Forbidden: host not allowed), logged once per name. A page served on such a name through a tunnel or proxy on this machine, using the gateway on that same name, is allowed with --cors and its origin, or --baseUrl for SSE (#387)
  • WebSocket without --cors. Without a key, a web page on another site can no longer open a WebSocket to this machine's loopback address (403, logged with the --cors that allows it). Clients that send no origin, pages on this machine (localhost, *.localhost, an address), browser extensions and connections from other machines connect as before (#387)

Validation

New tests cover both refusals end to end on every output, and everything that must not be refused: clients without an origin, tunnels forwarding a public Host (ngrok, cloudflared, Caddy), connections from other machines, gateways with a key, and --cors and --baseUrl. Each test fails with its refusal disabled. Both were also checked in real Chrome. Side by side with 4.1.0–4.2.4 nothing else differs; the own tests of 4.2.3 and 4.2.4 fail only their two tests that expected any page to open a WebSocket without --cors. 4.3.0-rc.1 ran over 13 hours of soak on Linux, Windows and macOS with no failures.

Thanks to: