[tor-bugs] #24110 [Core Tor/Tor]: NS_CONTROL_PORT formats change when using microdescriptors

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Nov 1 06:45:17 UTC 2017


#24110: NS_CONTROL_PORT formats change when using microdescriptors
--------------------------+------------------------------------
 Reporter:  teor          |          Owner:  (none)
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor  |        Version:  Tor: 0.3.0.1-alpha
 Severity:  Normal        |     Resolution:
 Keywords:  bwauth-needs  |  Actual Points:
Parent ID:                |         Points:  1
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by arma):

 Thanks. Here is an interesting detail: when I do 'setevents newconsensus
 ns' on Tor 0.3.3, I end up with events like
 {{{
 r toXelRasPiRelay /iaAWfg1g5j9UXiEicniBQBmErE Sk5Zj+7j8ujjZiMA9gMKr1ij/qg
 2017-10-31 23:50:28 80.143.207.169 9001 9030
 s Fast Running V2Dir Valid
 w Bandwidth=82
 }}}

 That turns out to be a weird frankenstein NS-style line, fabricated by my
 Tor only for the control port. This is the corresponding part of my
 cached-microdesc-consensus file:
 {{{
 r toXelRasPiRelay /iaAWfg1g5j9UXiEicniBQBmErE 2017-10-31 23:50:28
 80.143.207.169 9001 9030
 m Sk5Zj+7j8ujjZiMA9gMKr1ij/qh0HRLgsMM4qVBbv80
 s Fast Running V2Dir Valid
 v Tor 0.3.1.8
 pr Cons=1-2 Desc=1-2 DirCache=1-2 HSDir=1-2 HSIntro=3-4 HSRend=1-2
 Link=1-4 LinkAuth=1,3 Microdesc=1-2 Relay=1-2
 w Bandwidth=82
 }}}

 So my Tor, for the control port, is fabricating a v2 style NS line, but
 swapping in the md hash instead of the descriptor hash.

 I think there's a good argument for fixing the bug in how the control port
 crafts NS-style lines (I think the chances that somebody has a working
 controller for this situation are low), and then adding a way for the
 control port to ask for MD-style lines too if we/they want that.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24110#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list