This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Federation uses incorrect Host: header when SRV record is present #2525
Comments
I'm failing to understand why this isn't a dup of #1491 |
Ooops, it indeed is. The comments of that issue mostly discussed SNI, and I failed to read the original post carefully. |
This specific point was discussed in the context of dendrite today; the conclusion was that the current behaviour is actually correct. Here are our reasons:
|
This decision is kind of security by obscurity. Use DNSSEC instead. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Consider:
example.org
_matrix._tcp.example.org has SRV record 1 1 443 matrix.example.org.
Synapse sends federation requests to
https://matrix.example.org
, which is correct, but it uses wrong hostname (example.org
instead ofmatrix.example.org
) and also doesn't use SNI (which is a known issue, though, #1491).The problem is here:
synapse/synapse/http/matrixfederationclient.py
Line 143 in 6c1bb16
MatrixFederationHttpClient
uses original server name, before DNS resolution.The text was updated successfully, but these errors were encountered: