[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #3683 [Tor Client]: Stream-isolation code does not handle NULs in SOCKS auth fields properly
#3683: Stream-isolation code does not handle NULs in SOCKS auth fields properly
------------------------+---------------------------------------------------
Reporter: rransom | Owner: nickm
Type: defect | Status: needs_review
Priority: normal | Milestone: Tor: 0.2.3.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Changes (by nickm):
* status: new => needs_review
Comment:
Yikes. Glad that never saw production.
Possible fix in branch bug3683 in my public repository.
Should-I-care questions: The memcmp is only data-independent under limited
circumstances: if either input is NULL, or if their lengths vary, it
returns faster than if they are both strings of the same length.
Also, I think that the use of uint8_t for usernamelen/socks_username_len
might be wrong; socks4 authenticators are NUL-terminated IIRC, not length-
extent?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3683#comment:1>
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