<span style="line-height:20px">I'm probably missing significant Tor development history here, but section 5.2 of the </span><a href="http://www.onion-router.net/Publications/tor-design.pdf" style="line-height:20px">tor design paper</a><span style="line-height:20px"> mentions using the domain format x.y.onion where x is used for authorization and y.onion is used for actual the actual addressing. I'm not sure if this idea was ever actually taken any further, but this seems preferable to the UI flow you're talking about and might mean that TBB doesn't have to be updated at all! The concerns I can see are 1) potentially caching the authorization component in the history and 2) essentially disallowing sub-domains for hidden services [this is a minor problem since if hidden services want the security benefits of single-origin policy separation they can just do what facebook did and have a separate onion addresses.] Upstreaming this into the tor daemon would also allow any application to address authenticated hidden services easily instead of just TBB.</span><br><div class="gmail_quote">On Sun Nov 09 2014 at 12:21:01 PM Garrett Robinson <garrett@freedom.press> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">SecureDrop (and former Firefox) dev here. A few months ago I started<br>
working on a patch to support prompting users for an authenticated<br>
hidden service cookie in the manner of HTTP Basic Auth. [0] We require<br>
journalists who use SecureDrop to download submissions from an<br>
authenticated Tor hidden service, and bootstrapping that for them is<br>
currently a major UX pain point. [1]<br>
<br>
The main difficulty was that there was not a clear way to communicate<br>
the HidServAuth info to the Tor Browser's running Tor process. AFAICT,<br>
that is not currently supported in the Tor control protocol. So an<br>
extension to the Tor control would be useful here. It would also be<br>
possible to edit the torrc, reload Tor, and have the TB wait for that,<br>
but that is a) incredibly ugly and b) probably prone to causing all<br>
kinds of fun problems. Haven't tried it yet.<br>
<br>
> How would Tor Browser learn about this reason for not being able to<br>
connect/<br>
> tell Tor the authentication info? This is starting to sound like<br>
> wanting SOCKS5 extensions to indicate different causes for<br>
> connection failures in #6031 did.<br>
<br>
My current patch waits for a connection timeout on a .onion, then offers<br>
a tab-modal prompt that says "A connection to a Tor Hidden Service<br>
failed. If you are trying to connect to an authenticated Tor hidden<br>
service, enter your authentication string below:". A SOCKS5 extension<br>
would be even better, to avoid annoying users who mistype onion's or who<br>
are trying to access an onion that is down. I included a "Don't ask<br>
again" checkbox but it would probably still be annoying.<br>
<br>
Would be interested in hearing ideas about how hard it would be to<br>
extend the control protocol and add a SOCKS5 extension for connection<br>
failures, and if anybody is already working in those directions. I'll<br>
try to return to this patch when I have time in the coming weeks.<br>
<br>
[0] <a href="https://trac.torproject.org/projects/tor/ticket/8000" target="_blank">https://trac.torproject.org/<u></u>projects/tor/ticket/8000</a><br>
[1]<br>
<a href="https://github.com/freedomofpress/securedrop/blob/develop/tails_files/README.md" target="_blank">https://github.com/<u></u>freedomofpress/securedrop/<u></u>blob/develop/tails_files/<u></u>README.md</a><br>
<br>
______________________________<u></u>_________________<br>
tor-dev mailing list<br>
<a href="mailto:tor-dev@lists.torproject.org" target="_blank">tor-dev@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev" target="_blank">https://lists.torproject.org/<u></u>cgi-bin/mailman/listinfo/tor-<u></u>dev</a><br>
</blockquote></div>