[tor-bugs] #5723 [Tor Client]: ADDRMAP reversed IP bug

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue May 1 20:36:38 UTC 2012


#5723: ADDRMAP reversed IP bug
------------------------+---------------------------------------------------
 Reporter:  mickeyc     |          Owner:                     
     Type:  defect      |         Status:  assigned           
 Priority:  major       |      Milestone:                     
Component:  Tor Client  |        Version:  Tor: 0.2.3.14-alpha
 Keywords:              |         Parent:                     
   Points:              |   Actualpoints:                     
------------------------+---------------------------------------------------
Description changed by rransom:

Old description:

> In the following control port debug log you'll see I look up the IP
> address of "grepular.com" three times in a row. Look how the octets of
> the IP address in the ADDRMAP responses are reversed in the second and
> third responses:
>
> ========================================================================
> mike at alfa:~$ telnet localhost 9051
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> AUTHENTICATE XXXXX
> 250 OK
> SETEVENTS addrmap
> 250 OK
> RESOLVE grepular.com
> 250 OK
> 650 ADDRMAP grepular.com 178.79.145.246 "2012-05-01 01:21:07"
> EXPIRES="2012-05-01 00:21:07"
> RESOLVE grepular.com
> 650 ADDRMAP grepular.com 246.145.79.178 "2012-05-01 01:21:07"
> EXPIRES="2012-05-01 00:21:07"
> 250 OK
> RESOLVE grepular.com
> 650 ADDRMAP grepular.com 246.145.79.178 "2012-05-01 01:21:07"
> EXPIRES="2012-05-01 00:21:07"
> 250 OK
> ========================================================================
>
> If I disconnect and reconnect, they're reversed from the very first
> response. If I restart Tor and try again, then the first response is
> correct, but the subsequent responses are all reversed again. This
> happens for any domain I test. The "tor-resolve" command doesn't display
> this problem. I'm running version "0.2.3.14-alpha"

New description:

 In the following control port debug log you'll see I look up the IP
 address of "grepular.com" three times in a row. Look how the octets of the
 IP address in the ADDRMAP responses are reversed in the second and third
 responses:

 {{{
 mike at alfa:~$ telnet localhost 9051
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 AUTHENTICATE XXXXX
 250 OK
 SETEVENTS addrmap
 250 OK
 RESOLVE grepular.com
 250 OK
 650 ADDRMAP grepular.com 178.79.145.246 "2012-05-01 01:21:07"
 EXPIRES="2012-05-01 00:21:07"
 RESOLVE grepular.com
 650 ADDRMAP grepular.com 246.145.79.178 "2012-05-01 01:21:07"
 EXPIRES="2012-05-01 00:21:07"
 250 OK
 RESOLVE grepular.com
 650 ADDRMAP grepular.com 246.145.79.178 "2012-05-01 01:21:07"
 EXPIRES="2012-05-01 00:21:07"
 250 OK
 }}}

 If I disconnect and reconnect, they're reversed from the very first
 response. If I restart Tor and try again, then the first response is
 correct, but the subsequent responses are all reversed again. This happens
 for any domain I test. The "tor-resolve" command doesn't display this
 problem. I'm running version "0.2.3.14-alpha"

--

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


More information about the tor-bugs mailing list