Windows XP "dwmapi.dll" Dll-load Vulnerability (FG-VD-10-022)
Originally disclosed on Mozilla
- Fixed in 28 days
- Paid in 3.0 years
- Disclosed after 28 days
Created attachment 458030
PoC
Haifei Li of Fortinet's FortiGuard Labs submitted the following advisory to security@. The video is too large to attach, so if you need it, contact me OOB.
==============================================================================
//NOTE: The following vulnerability information is a part of the pending-released paper from the author regarding the Dll-load attack research. Additional information (PoC, reproduce video) is attached as well.
//We recommend you fix this issue as soon as possible since we are going the release our paper including all the details of this vulnerability in the near future. If you have any concerns let us know, we would like to work with you resolve this issue.
by Haifei Li of Fortinet's FortiGuard Labs ([address removed])
2. Mozilla Firefox on Windows XP "dwmapi.dll" Dll-load Vulnerability
Confirmed Affected Conditions:
Mozilla Firefox 3.6.6 on Windows XP SP3
Description:
When opening a html file with Firefox directly (by double-clicking on the file, for example, Firefox is the default web browser), Firefox will try to load a dll named "dwmapi.dll" in the system. This "dwmapi.dll" is a system dll on Windows editions after Windows XP such as Windows Vista and Windows 7. However, on Windows XP there is no such a dll. Thus, if the attacker put a malicious "dwmapi.dll" at the same directory of the html file, malicious code will be executed when opening the html file by Firefox.
This dll-loading process is done by LoadLibrary in “xul.dll” as the following codes:
.text:10253717 push offset s_Dwmapi_dll ; "dwmapi.dll"
.text:1025371C call edi ; LoadLibraryW
Thus, it follows the SSO. The following detailed search order also shows the point (in the case that “dwmapi.dll” does not exist in the system, “C:\firefox” is the CWD):
C:\Program Files\Mozilla Firefox\dwmapi.dll NOT FOUND
C:\WINDOWS\system32\dwmapi.dll NOT FOUND
C:\WINDOWS\system\dwmapi.dll NOT FOUND
C:\WINDOWS\dwmapi.dll NOT FOUND
C:\firefox\dwmapi.dll NOT FOUND
C:\Program Files\Mozilla Firefox\dwmapi.dll NOT FOUND
C:\WINDOWS\system32\dwmapi.dll NOT FOUND
C:\WINDOWS\dwmapi.dll NOT FOUND
C:\WINDOWS\System32\Wbem\dwmapi.dll NOT FOUND
On the development side:
We could infer that in the developing/testing process of Firefox, the vendor used highly-version Windows as their testing environment, they did not realize that their loading-dll could be non-exist on other platforms.
This case suggests that vendor should test their product on all the platforms that their product could run on.
A middle course is that putting the system dll in the application directory when installing, however, this requires that if the system dll is updated by Microsoft for security problems in future, the 3rd party vendor should also update the dll with Microsoft to ensure the safety of their product.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A security bug in Widget: Win32. Mozilla made it public on 14 August 2010 as CVE-2010-3131.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.