]> git.saurik.com Git - apt.git/commit
block direct connections to .onion domains (RFC7687)
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 6 Aug 2016 11:53:05 +0000 (13:53 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 10 Aug 2016 23:34:39 +0000 (01:34 +0200)
commit8665dceb5cf2a197ae270b08066f05c8a2870223
tree683af539fcca608f7b0a93d8b141c87e23a763df
parentc9c910695185b59aa27b787c1a250497e47b492b
block direct connections to .onion domains (RFC7687)

Doing a direct connect to an .onion address (if you don't happen to use
it as a local domain, which you shouldn't) is bound to fail and does
leak the information that you do use Tor and which hidden service you
wanted to connect to to a DNS server. Worse, if the DNS is poisoned and
actually resolves tricking a user into believing the setup would work
correctly…

This does block also the usage of wrappers like torsocks with apt, but
with native support available and advertised in the error message this
shouldn't really be an issue.

Inspired-by: https://bugzilla.mozilla.org/show_bug.cgi?id=1228457
methods/connect.cc
test/integration/test-method-connect [new file with mode: 0755]