[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #13594 [Tor Browser]: Tor Browser Bundle 4.0: updater fails on Windows
#13594: Tor Browser Bundle 4.0: updater fails on Windows
-----------------------------+----------------------
Reporter: marc | Owner: tbb-team
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor Browser | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
-----------------------------+----------------------
Comment (by gk):
comment:12 was:
> and no ways to bypass it.
It changes PATH environment variable.
What for PATH in Tor Browser? What if to change [https://mxr.mozilla.org
/mozilla-esr31/source/toolkit/xre/nsWindowsWMain.cpp#80 call of]
SanitizeEnvironmentVariables (or directly [https://mxr.mozilla.org
/mozilla-esr31/source/xpcom/base/nsSetDllDirectory.h#19
SanitizeEnvironmentVariables]), to clear PATH and to fill it by:
1. The directory from which Tor Browser loaded.
2. The system directory. Use the GetSystemDirectory function to get the
path of this directory.
3. The Windows directory. Use the GetWindowsDirectory function to get the
path of this directory.
It allows to protect against injected paths and fixes `updater.exe`
without extra voodoo or copying of need dlls to need dir.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13594#comment:18>
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