Closed Bug 1320273 Opened 8 years ago Closed 8 years ago

DLL Hijacking - Firefox installer on Windows 7

Categories

(Firefox :: Installer, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1361326
Tracking Status
firefox-esr52 54+ fixed
firefox54 --- fixed

People

(Reporter: tachibana.laboratory, Assigned: molly)

References

Details

(Keywords: csectype-priv-escalation, reporter-external, sec-high)

Attachments

(2 files)

+++ This bug is recurrence of Bug #883165 and Bug #811557 and Bug #792106 +++ Windows 7 64-bit Firefox/50.0 Steps to reproduce: 1.The attacker will let the target download the trojan DLL named "RpcRtRemote.dll" or "dwmapi.dll". 2.The Target download the Installer of Firefox or Thunderbird . 3.When the user runs Setup, arbitrary code is executed. Actual results: Arbitrary code is executed with the authority of the user who executed setup. Expected results: The installer should not load the trojan dll.
I investigated Windows Vista(32bit), 7(64bit), 8.1(64bit), 10(64bit) using sysinternals Process Monitor, but only Windows 7 could be exploited. Fortunately, these DLLs were called before the installer escalated privileges. I hope that there is no need to explain that this is a vulnerability.
Attachment #8814324 - Attachment filename: dwmapi.dll → CRYPTSP.dll
I made a mistake. Correctly "RpcRtRemote.dll" or "CRYPTSP.dll""RpcRtRemote.dll" or "dwmapi.dll" are incorrect.
Attached patch bug1320273.diffSplinter Review
I wrote a patch, but I can not create a binary with VC6. Would you please take over someone else? This is a provisional response. It is foolish to repeat the test every time a new OS or service pack comes out. More fundamental modification is necessary. Actually, similar bugs have been fixed in 7-zip 16.03. https://sourceforge.net/p/sevenzip/discussion/45797/thread/b6a10dbd/?limit=25&page=0 However, what is used in the mozilla project is 7-zip 4.42 source codes about 10 years ago!(So VC6 is required) We must continuously incorporate the safe and new code of 7-zip into mozilla's project. Otherwise we will need to keep listing up un-KnownDLLs.
Attachment #8814654 - Flags: review?(robert.strong.bugs)
Note to self and Matt, the 7-Zip self-extracting archive doesn't run elevated.
(In reply to Robert Strong [:rstrong] (use needinfo to contact me) from comment #5) > Also see bug 861012. I'm not authorized to access bug 861012. Should We do?
Shouldn't be necessary
I wasn't aware that 7-Zip had addressed this themselves. We should be able to backport their fix. I'll try to work on that soon.
Assignee: nobody → mhowell
Comment on attachment 8814654 [details] [diff] [review] bug1320273.diff I'm r-'ing this patch because I know of at least two more DLL's that need to be included (LPK and WIN32U), but mostly because, as comment 3 points out, just adding more DLL's to that list is not a complete solution. We need to try SetDefaultDllDirectories first.
Attachment #8814654 - Flags: review?(robert.strong.bugs) → review-
(In reply to Matt Howell [:mhowell] from comment #8) > I wasn't aware that 7-Zip had addressed this themselves. We should be able > to backport their fix. I'll try to work on that soon. Three months have passed since the last post. Are you sure that you'll try to work on that? I'm sure that you are busy. If complete solution is difficult right now, I suggest that you release the provisional version witch applied bug1320273.diff and then work over it later.
See Also: → CVE-2017-7755
It seems that this bug has been fixed in Firefox 54.0 by a bug 1361326 that later reported the same problem. Can I ask for an explanation?
You're right. I apologize for forgetting about this bug instead of updating it bug like I should have, but it was indeed fixed by bug 1361326.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Group: toolkit-core-security
Flags: sec-bounty? → sec-bounty+
Component: NSIS Installer → Installer
Product: Toolkit → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: