[tor-bugs] #21612 [Metrics/Atlas]: Handle rehashing invalid fingerprints

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 2 14:50:24 UTC 2017


#21612: Handle rehashing invalid fingerprints
-------------------------------+-----------------
     Reporter:  cypherpunks    |      Owner:  irl
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:  Metrics/Atlas  |    Version:
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+-----------------
 The search and details pages rehash given fingerprints using the
 `hashFingerprints` function before looking them up. This function isn't
 strict enough in detecting fingerprints which results in the function
 passing invalid hex strings to the jssha library. The library then gives
 the following error in the console and the page gets stuck on the loading
 screen.

 {{{
 uncaught exception: srcString of HEX type must be in byte increments
 }}}

 This is reproducible with the following urls

 GOOD
 https://atlas.torproject.org/#details/BC630CBBB518BE7E9F4E09712AB0269E9DC7D626
 BAD
 https://atlas.torproject.org/#details/BC630CBBB518BE7E9F4E09712AB0269E9DC7D6261

 GOOD
 https://atlas.torproject.org/#search/BC630CBBB518BE7E9F4E09712AB0269E9DC7D626
 BAD
 https://atlas.torproject.org/#search/BC630CBBB518BE7E9F4E09712AB0269E9DC7D6261

 The fix is simple and a patch is coming once i get the ticket number.

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


More information about the tor-bugs mailing list