ECH silent failure and fallback for WebSocket connections
Categories
(Core :: Networking: WebSockets, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: aleksandr.v.piskunov, Assigned: kershaw)
Details
(Whiteboard: [necko-triaged] [necko-priority-queue])
Attachments
(1 external file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:156.0) Gecko/20100101 Firefox/156.0
Steps to reproduce
- Some webapp using websocket http1.1 upgrade connection (HomeAssistant, Gotify, whatever)
- Behind nginx reverse proxy, ECH enabled, valid DNS HTTPS ECH record.
- Firefox 156, fresh profile.
- Wireshark watching for TLS Hello
Actual results
ECH works for plain HTTPS connections (HTTP 1.1, HTTP2 or HTTP3 - doesn't matter), only outer SNI is visible in Wireshark dumps. F12 DevTools show ECH=true.
ECH silently fails for websocket connections, falling back and leaking actual SNI. DevTools show ECH=false.
Setting network.dns.force_use_https_rr=true fixes this problem, websocket connections get correct ECH.
Expected results
As long as there is a HTTPS ECH record, every connection to that particular host should either get a correct ECH, renegotiate old/expired one, or fail visibly.
Silent fallback to non-encrypted SNI must not occur under any circumstances.
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Networking: WebSockets' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Comment 3•1 month ago
|
||
This bug happens because we don’t allow HTTPS RR here for WebSocket connections. Enabling Happy Eyeballs should resolve it.
I’ll still create a patch to fix it when HE is disabled, since HEv3 isn’t enabled everywhere yet.
| Assignee | ||
Comment 4•1 month ago
|
||
Updated•1 month ago
|
Comment 5•21 days ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 1 week.
:kershaw, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•15 days ago
|
Comment 7•7 days ago
|
||
| bugherder | ||
Description
•