[tor-bugs] #24546 [Core Tor/Tor]: Use tor_addr_is_v4() rather than family, or reject all v6-mapped IPv4 addresses

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 6 16:45:33 UTC 2017


#24546: Use tor_addr_is_v4() rather than family, or reject all v6-mapped IPv4
addresses
-------------------------------+------------------------------------
 Reporter:  teor               |          Owner:  (none)
     Type:  defect             |         Status:  new
 Priority:  Medium             |      Milestone:  Tor: 0.3.3.x-final
Component:  Core Tor/Tor       |        Version:
 Severity:  Normal             |     Resolution:
 Keywords:  tor-dirauth, ipv6  |  Actual Points:
Parent ID:                     |         Points:  1
 Reviewer:                     |        Sponsor:  SponsorV-can
-------------------------------+------------------------------------

Comment (by teor):

 We should also audit all uses of tor_addr_compare(a1, a2, CMP_EXACT) to
 see if they should be CMP_SEMANTIC instead.

 The current uses of CMP_SEMANTIC seem reasonable, but not essential: they
 code would still work if we rejected mapped addresses and did exact
 comparisons instead.

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


More information about the tor-bugs mailing list