[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #5146 [Tor Bridge]: Bridges include or-address [::]:$port in their server descriptor



#5146: Bridges include or-address [::]:$port in their server descriptor
------------------------+---------------------------------------------------
 Reporter:  karsten     |          Owner:  ln5                
     Type:  defect      |         Status:  assigned           
 Priority:  normal      |      Milestone:                     
Component:  Tor Bridge  |        Version:  Tor: 0.2.3.12-alpha
 Keywords:              |         Parent:                     
   Points:              |   Actualpoints:                     
------------------------+---------------------------------------------------
Changes (by ln5):

  * status:  new => assigned


Comment:

 (Slipped on submit.)

 router_rebuild_descriptor() gets ri->ipv4h_addr from
 router_pick_published_address() while ri->ipv6_orport comes from
 configuration, non-sanitized.

 router_pick_published_address() first tries resolve_my_address() and
 then, if that fails, tries to get it from HTTP headers received from
 "a peer".

 Should we turn resolve_my_address() into resolve_my_addresses() and
 teach it about IPv6?  get_interface_address6() used here needs some
 work for #4806 too.

 As a minimal approach, we should check IPv6 ORPort's from config with
 tor_addr_is_internal(for_listening=1).  This will catch '[::]'.  And
 document the importance of configuring an IPv6 ORPort with some extra
 care for the time being.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5146#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs