Closed Bug 871084 Opened 12 years ago Closed 4 years ago

Vulnerability (unquoted path containing spaces) in "UninstallString" may run rogue program

Categories

(Thunderbird :: Installer, defect)

17 Branch
All
Windows 2000
defect
Not set
trivial

Tracking

(thunderbird_esr78+ fixed, thunderbird84 affected)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird84 --- affected

People

(Reporter: stefan.kanthak, Assigned: lilian.braud)

References

Details

Attachments

(1 file)

User Agent: Opera/9.80 (Windows NT 5.0; U; de) Presto/2.10.289 Version/12.02 Steps to reproduce: Install Thunderbird Actual results: command line with vulnerable unquoted path containing spaces written to "UninstallString": [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 17.0.5 (x86 en-US)] "UninstallString"="C:\\Program Files\\Mozilla Thunderbird\\uninstall\\helper.exe" Expected results: Properly quoted command line written to "UninstallString": [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Thunderbird 17.0.5 (x86 en-US)] "UninstallString"="\"C:\\Program Files\\Mozilla Thunderbird\\uninstall\\helper.exe\""
Reference: bug 868746 Also, it should be easy enough for someone on the Thunderbird team to fix this bug.
Another month passed, and this "easy enough to fix" BEGINNERS ERROR is still present in 17.0.8! JFTR: <http://msdn.microsoft.com/library/ms997548.aspx> | The path you supply to Uninstall-String must be the complete | command line used to carry out your uninstall program.
(In reply to Stefan Kanthak from comment #3) > Another month passed, and this "easy enough to fix" BEGINNERS ERROR is still > present in 17.0.8! just because it can be fixed doesn't mean it deserves to be fixed ASAP. It apparently has no serious exposure, etc. so please don't spam the bug. Trivial severity based on rs' assessement in bug 868746.
Severity: normal → trivial
Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 868746

(In reply to Wayne Mery (:wsmwk) from comment #4)

Trivial severity based on rs' assessement in bug 868746.

Looking at the discussion, I'm not sure if that assessment was entirely correct.
Anyway, Firefox has fixed this, so should we. 2 lines of code to add the quotes:

https://bugzilla.mozilla.org/page.cgi?id=splinter.html&ignore=&bug=868746&attachment=747062

Lilian?

Flags: needinfo?(lilian.braud)
Assignee: nobody → lilian.braud
Status: NEW → ASSIGNED

After all, 1 line of code to add the quotes.
Lines 422 and 562 already have the quotes.

Flags: needinfo?(lilian.braud)
Attachment #9191176 - Attachment description: Bug 871084 - Vulnerability (unquoted path containing spaces) in UninstallString may run rogue program. r=thomasD → Bug 871084 - Installer should quote the 'uninstallstring' registry value in case a non OS builtin app uses the value. r=thomasD,mkmelin
Target Milestone: --- → 85 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ed2e9b0dbf70
Installer should quote the 'uninstallstring' registry value in case a non OS builtin app uses the value. r=thomasD,mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9191176 [details]
Bug 871084 - Installer should quote the 'uninstallstring' registry value in case a non OS builtin app uses the value. r=thomasD,mkmelin

[Approval Request Comment]
Minor sec issue.

Attachment #9191176 - Flags: approval-comm-esr78?

Comment on attachment 9191176 [details]
Bug 871084 - Installer should quote the 'uninstallstring' registry value in case a non OS builtin app uses the value. r=thomasD,mkmelin

[Triage Comment]
Approved for esr78

Attachment #9191176 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: