[tbb-bugs] #13594 [Tor Browser]: Tor Browser Bundle 4.0: updater fails on Windows
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Oct 30 19:55:50 UTC 2014
#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
More information about the tbb-bugs
mailing list