
1979 changes to exploits/shellcodes Couchdb 1.5.0 - 'uuids' Denial of Service Apache CouchDB 1.5.0 - 'uuids' Denial of Service Beyond Remote 2.2.5.3 - Denial of Service (PoC) udisks2 2.8.0 - Denial of Service (PoC) Termite 3.4 - Denial of Service (PoC) SoftX FTP Client 3.3 - Denial of Service (PoC) Silverstripe 2.3.5 - Cross-Site Request Forgery / Open redirection SilverStripe CMS 2.3.5 - Cross-Site Request Forgery / Open Redirection Silverstripe CMS 3.0.2 - Multiple Vulnerabilities SilverStripe CMS 3.0.2 - Multiple Vulnerabilities Silverstripe CMS 2.4 - File Renaming Security Bypass SilverStripe CMS 2.4 - File Renaming Security Bypass Silverstripe CMS 2.4.5 - Multiple Cross-Site Scripting Vulnerabilities SilverStripe CMS 2.4.5 - Multiple Cross-Site Scripting Vulnerabilities Silverstripe CMS 2.4.7 - 'install.php' PHP Code Injection SilverStripe CMS 2.4.7 - 'install.php' PHP Code Injection Silverstripe Pixlr Image Editor - 'upload.php' Arbitrary File Upload SilverStripe CMS Pixlr Image Editor - 'upload.php' Arbitrary File Upload Silverstripe CMS 2.4.x - 'BackURL' Open Redirection SilverStripe CMS 2.4.x - 'BackURL' Open Redirection Silverstripe CMS - 'MemberLoginForm.php' Information Disclosure SilverStripe CMS - 'MemberLoginForm.php' Information Disclosure Silverstripe CMS - Multiple HTML Injection Vulnerabilities SilverStripe CMS - Multiple HTML Injection Vulnerabilities Apache CouchDB 1.7.0 and 2.x before 2.1.1 - Remote Privilege Escalation Apache CouchDB 1.7.0 / 2.x < 2.1.1 - Remote Privilege Escalation Monstra CMS before 3.0.4 - Cross-Site Scripting Monstra CMS < 3.0.4 - Cross-Site Scripting (2) Monstra CMS < 3.0.4 - Cross-Site Scripting Monstra CMS < 3.0.4 - Cross-Site Scripting (1) Navigate CMS 2.8 - Cross-Site Scripting Collectric CMU 1.0 - 'lang' SQL injection Joomla! Component CW Article Attachments 1.0.6 - 'id' SQL Injection LG SuperSign EZ CMS 2.5 - Remote Code Execution MyBB Visual Editor 1.8.18 - Cross-Site Scripting Joomla! Component AMGallery 1.2.3 - 'filter_category_id' SQL Injection Joomla! Component Micro Deal Factory 2.4.0 - 'id' SQL Injection RICOH Aficio MP 301 Printer - Cross-Site Scripting Joomla! Component Auction Factory 4.5.5 - 'filter_order' SQL Injection RICOH MP C6003 Printer - Cross-Site Scripting Linux/ARM - Egghunter (PWN!) + execve(_/bin/sh__ NULL_ NULL) Shellcode (28 Bytes) Linux/ARM - sigaction() Based Egghunter (PWN!) + execve(_/bin/sh__ NULL_ NULL) Shellcode (52 Bytes)
54 lines
No EOL
2.9 KiB
Text
54 lines
No EOL
2.9 KiB
Text
Introduction:
|
|
|
|
The Microsoft DirectShow application programming interface (API) is a media-streaming architecture for Microsoft Windows. Using DirectShow, your applications can perform high-quality video and audio playback or capture.
|
|
|
|
Overview:
|
|
|
|
DirectShow in Microsoft Windows XP SP2 and SP3, Windows Server 2003 SP2, Windows Vista SP2, Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8, and Windows Server 2012 allows remote attackers to execute arbitrary code via a crafted GIF file, aka "DirectShow Arbitrary Memory Overwrite Vulnerability."
|
|
|
|
Disclosure Timeline
|
|
|
|
2013-03-20 - Vulnerability reported to vendor
|
|
2013-07-09 - Coordinated public release of advisory
|
|
|
|
Details:
|
|
|
|
Microsoft's DirectShow API is vulnerable to arbitrary memory overwrite when reading specially crafted GIF files. I have attached a GIF which triggers the vulnerability. To open it you can use Media Player Classic which utilizes DirectShow API to render GIF files. I tested it on Windows XP SP3 and Windows 7 SP1 Spanish version. The corresponding output from WindDbg in Windows XP is:
|
|
|
|
|
|
|
|
ModLoad: 72c90000 72c98000 C:\WINDOWS\system32\msacm32
|
|
drv
|
|
ModLoad: 77bb0000 77bc5000 C:\WINDOWS\system32\MSACM32.dll
|
|
ModLoad: 77ba0000 77ba7000 C:\WINDOWS\system32\midimap.dll
|
|
ModLoad: 73e60000 73e64000 C:\WINDOWS\system32\KsUser.dll
|
|
ModLoad: 60830000 608bc000 C:\WINDOWS\system32\qedit.dll
|
|
ModLoad: 75ed0000 75ef1000 C:\WINDOWS\system32\MSVFW32.dll
|
|
|
|
(bd0.bf4): Access violation - code c0000005 (first chance) First chance exceptions are reported before any exception handling.
|
|
|
|
This exception may be expected and handled.
|
|
|
|
eax=ff414141 ebx=fffffa60 ecx=00000000 edx=fea57028 esi=fea57028 edi=000000ef
|
|
eip=60864094 esp=0274ec0c ebp=0274ed3c iopl=0 nv up ei ng nz ac pe cy
|
|
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010297
|
|
|
|
qedit!CImgGif::ReadImage+0x288:
|
|
|
|
60864094 8902 mov dword ptr [edx],eax ds:0023:fea57028=????????
|
|
|
|
|
|
The issue occurs inside qedit.dll when trying to read GIF header data, in CImgGif::ReadImage+0x288. This writes in memory position edx=fea57028 the value eax=ff414141 both of them controlled by the user. eax=fea57028 can be modified in the GIF file in the position 0x32C corresponding to NW corner of frame at 0, 0 and eax=ff414141 can be modified in the position 0x307 corresponding to Global Color Table. With these two values controlled by an attacker, arbitrary code execution could be achieved, with the privileges of the user running the application (in this case MPC).
|
|
|
|
References:
|
|
|
|
https://technet.microsoft.com/en-us/security/bulletin/ms13-056
|
|
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-3174
|
|
|
|
Fix:
|
|
|
|
http://technet.microsoft.com/en-us/security/bulletin/ms13-056
|
|
|
|
PoC:
|
|
https://docs.google.com/file/d/0B48gNjWDSsFwSDQ1ZGZEb3ItSEU
|
|
https://github.com/offensive-security/exploitdb-bin-sploits/raw/master/bin-sploits/27050.zip |