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

Re: [tor-bugs] #18330 [Tor Launcher]: Tor Launcher only accepts HEXDIGIT passwords for controller



#18330: Tor Launcher only accepts HEXDIGIT passwords for controller
--------------------------+-----------------------
 Reporter:  gk            |          Owner:  brade
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:
Component:  Tor Launcher  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
  Sponsor:                |
--------------------------+-----------------------
Description changed by gk:

Old description:

> We currently give the advice to double quute the password for the Tor
> controller in the start-tor-browser script which seems to be a good thing
> given the trouble with quoting correctly. But this does not work (I
> wonder if it actually ever worked). The problem is that Tor Launcher is
> expecting a `HEXDIGIT` password. Using `deadbeef` is fine but
> {{{
> password[i] = parseInt(aHexPassword.substr(i * 2, 2), 16);
> }}}
> does not like things like `test` or {{{"`test"`}}} and is e.g. reporting
> for the former `NaN, NaN` which breaks the hashed control password option
> (the argument `aHexPassword` is spoiling the bug hunt a bit but I was not
> affected by it :) ). That in turn breaks the authentication and Tor
> Browser won't start.

New description:

 We currently give the advice to double quote the password for the Tor
 controller in the start-tor-browser script which seems to be a good thing
 given the trouble with quoting correctly. But this does not work (I wonder
 if it actually ever worked). The problem is that Tor Launcher is expecting
 a `HEXDIGIT` password. Using `deadbeef` is fine but
 {{{
 password[i] = parseInt(aHexPassword.substr(i * 2, 2), 16);
 }}}
 does not like things like `test` or {{{'"test"'}}} and is e.g. reporting
 for the former `NaN, NaN` which breaks the hashed control password option
 (the argument `aHexPassword` is spoiling the bug hunt a bit but I was not
 affected by it :) ). That in turn breaks the authentication and Tor
 Browser won't start.

--

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18330#comment:2>
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