Am Dienstag 30 März 2010 13:05:15 schrieb Simon B.:
> The main problem would be whether a web server can be trusted to give
> out DNS records.
I thought about that and was of the opinion that this does not cause a problem
as an evil web site could link to everywhere anyway. Of course, it makes a
difference whether you click on an evil link or your browser behaviour is
changed.
> Let's say
http://evil.org/ puts up lots of iframes to
> login-pages on facebook, banks, etc and sends faked DNS records such
> that they get the traffic that the browser beleived it was sending to
> the login forms on these banks etc.
> It would make Man-in-the-middle attacks much easier, and we've just
> barely gotten rid of a similar problem with recursive DNS requests.
> It
> could perhaps start the connection to the hinted IP address
> immediately, and in parallell verify the DNS-to-IP and cancel the
> first connection in case it was incorrect.
Exactly. In paranoia mode you could block the downloaded data for further
processing up to the DNS result.
This would result in more DNS lookups than today (the periodic server-side
requests would be additional, no client requests would be saved). But that
seems acceptable to me.
> Load balancing with round-robin and similar one name-many IP:s would
> then be cause a performance punishment to browsers who took a hint
> that needed to be cancelled, as well as hints given by web servers
> with incorrectly configured X-DNS4 hints.
Problems can be caused by such round robin DNS which gives a subset response
only (like Google). This could be easily addressed by the server-side DNS
resolver, though. If that daemon notices that the looked up IP addresses
change often then it would not include an IP for that host (thus avoiding the
performance penalty). The host name could still be written without an IP into
an X-HTTP header in order to allow the browser to start the regular DNS lookup
as soon as possible.
It probably makes sense to rotate the IP order because otherwise this feature
might kill round robin DNS (if a big share of accesses comes from the same
referrer).
It might be optimal to defer the DNS lookups until the downloads have begun.
Thus there is no additional latency for the downloads (which would be quite
low, though) and the DNS lookups should finish before the downloads anyway.
Check lookups eliminate another problem: If thousands of clients would trust
the DNS hints of wellknown.org it would be interesting to try DNS attacks
against wellknown.org.
CU
Hauke