This question is an extension of How does Tor handle DNS poisoning.
After having read Introducing DNS Resolver for Tor and DNS security issues, I am a bit concerned about the riscs of using Tor (Browser) in presence of DNS spoofing/poisoning or MITM attacks.
If I have understood correctly, following happens when visiting https://example.com
:
- Tor exit node resolves
example.com
to an IP, e.g. 5.5.5.5 - End-to-end HTTPS encryption is established between Tor browser client and
example.com
.
Given an evil exit node resolves the domain name to a different IP address 5.5.5.7 owned by Mallory. Then the returned site still needs to deliver a certificate as response, which most probably is self-signed and not trusted by a browser root certificate authority. Hence I would get a certificate error in case of DNS spoofing.
Doesn't that mean, I am safe concerning DNS attacks, when enforcing HTTPS with Tor?