exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Mozilla Executable Installer DLL Hijacking

Mozilla Executable Installer DLL Hijacking
Posted Feb 20, 2018
Authored by Stefan Kanthak

Mozilla's executable installers are vulnerable to dll hijacking.

tags | advisory
systems | windows
SHA-256 | 667fb44cb2aa120fbd61c8117b32b9ec85ae2bc46b83d6b9d112e9bfb4199dc9

Mozilla Executable Installer DLL Hijacking

Change Mirror Download
Hi @ll,

since many years, Mozilla tries to beat the crap out of their
always vulnerable executable installers: see for example
<https://bugzilla.mozilla.org/show_bug.cgi?id=579593> alias CVE-2010-3131
<https://bugzilla.mozilla.org/show_bug.cgi?id=811557>
<https://bugzilla.mozilla.org/show_bug.cgi?id=792106> alias CVE-2012-4206
<https://bugzilla.mozilla.org/show_bug.cgi?id=961676> alias CVE-2014-1520
<https://bugzilla.mozilla.org/show_bug.cgi?id=1361326> alias CVE-2017-7755
and the gazillions of duplicates (notice that quite some of these
"duplicates" predate their "original" bug).

Their success?
NONE!
ALL their executable installers are still vulnerable to DLL hijacking!


#1) "Firefox Installer.exe" (digitally signed 2018-01-28) 58.0.1
is vulnerable to DLL hijacking:

* on a fully patched Windows Embedded POSReady 2009 alias
Windows XP SP3 it loads at least DWMAPI.DLL (this DLL is NOT
shipped before Windows Vista)

JFTR: this 306kB "large" program is an UPX-compressed 7-zip
self-extractor of whopping 394kB size, which contains a
single "setup-stub.exe" of 406kB size.

The kids at Mozilla must love to play Matroschka!


#2) "setup-stub.exe" extracted and executed by "Firefox Installer.exe"
is vulnerable to DLL hijacking:

* on a fully patched Windows Embedded POSReady 2009 alias
Windows XP SP3 it loads at least PROPSYS.DLL (this DLL is NOT
shipped before Windows Vista) before it displays the message box
"For Windows 7 and newer only"; after click on [OK] it loads
RICHED20.DLL from its application directory.


#3) "Firefox Setup 52.6.0esr.exe" (digitally signed 2018-01-19)
is vulnerable to DLL hijacking:

* on a fully patched Windows Embedded POSReady 2009 alias
Windows XP SP3 it loads at least DWMAPI.DLL (this DLL is NOT
shipped before Windows Vista)

JFTR: this too is an UPX-compressed 7-zip self-extractor.
The UPX-compression reduces its size by less than 0.2%

These kids must REALLY love to play Matroschka!


#4) "setup.exe" extracted and executed by "Firefox Setup 52.6.0esr.exe"
is vulnerable to DLL hijacking:

* on a fully patched Windows Embedded POSReady 2009 alias
Windows XP SP3 it loads (before it even displays the first
dialog box; I stopped there, so there may well be more DLLs
sideloaded) at least WINMM.DLL, SETUPAPI.DLL, MSACM32.DLL,
UXTHEME.DLL from its application directory, plus PROPSYS.DLL
(this DLL is NOT shipped before Windows Vista);

* on a fully patched Windows 7 SP1 it loads (before it even
displays the first dialog box; I stopped there, so there may
very well be more DLLs sideloaded) at least UXTheme.dll,
WinMM.dll, SAMCli.dll, MSACM32.dll, Version.dll, SFC.dll,
SFC_OS.dll, DWMAPI.dll, MPR.dll from its application
directory.


DLL hijacking is a well-known and well-documented vulnerability
(and a true sign for absolute beginner's at work):
see <https://cwe.mitre.org/data/definitions/426.html>
and <https://cwe.mitre.org/data/definitions/427.html>,
plus <https://capec.mitre.org/data/definitions/471.html>


Since these installers need to be run with administrative privileges
(on Windows Vista and above, the 7-zip self-extractors start the
extracted "setup-stub.exe" and "setup.exe" via RunAs to trigger
WindowsA user-account control), the DLL hijacking results in
escalation of privilege.

"setup-stub.exe" and "setup.exe" are extracted to an UNSAFE
subdirectory of %TEMP%, another well-known and well-documented
vulnerability:
see <https://cwe.mitre.org/data/definitions/377.html>
and <https://cwe.mitre.org/data/definitions/379.html>


Fix:
~~~~

Dump those FOREVER defective executable installers for Windows!
Provide an .MSI, or an .INF script plus a .CAB.

Windows ships since more than 22 years with SetupAPI which uses
.INF scripts, and since about 18 years with the Microsoft Installer.


stay tuned, and FAR AWAY from Mozilla's crap
Stefan Kanthak


Timeline:
~~~~~~~~~

2018-02-08 vulnerability report sent to Mozilla

no reaction

2018-02-17 report published



Login or Register to add favorites

File Archive:

November 2022

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    16 Files
  • 2
    Nov 2nd
    17 Files
  • 3
    Nov 3rd
    17 Files
  • 4
    Nov 4th
    11 Files
  • 5
    Nov 5th
    0 Files
  • 6
    Nov 6th
    0 Files
  • 7
    Nov 7th
    3 Files
  • 8
    Nov 8th
    59 Files
  • 9
    Nov 9th
    12 Files
  • 10
    Nov 10th
    6 Files
  • 11
    Nov 11th
    11 Files
  • 12
    Nov 12th
    1 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    9 Files
  • 15
    Nov 15th
    33 Files
  • 16
    Nov 16th
    53 Files
  • 17
    Nov 17th
    11 Files
  • 18
    Nov 18th
    14 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    26 Files
  • 22
    Nov 22nd
    22 Files
  • 23
    Nov 23rd
    10 Files
  • 24
    Nov 24th
    9 Files
  • 25
    Nov 25th
    11 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    20 Files
  • 29
    Nov 29th
    9 Files
  • 30
    Nov 30th
    21 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close