Microsoft Bulitin - A MIDI file can hack your computer

RWhite

Well-known member
I received this security bulitin at work. Seems incredible, but it speaks for itself. The good thing is that if your browser security settings are left at their defaults, you are probably immune - R.W.




-----BEGIN PGP SIGNED MESSAGE-----

- ----------------------------------------------------------------------
Title: Unchecked Buffer in DirectX Could Enable System
Compromise (819696)
Date: July 23, 2003
Software: Microsoft DirectX(r) 5.2 on Windows 98
Microsoft DirectX 6.1 on Windows 98 SE
Microsoft DirectX 7.0a on Windows Millennium Edition
Microsoft DirectX 7.0 on Windows 2000
Microsoft DirectX 8.1 on Windows XP
Microsoft DirectX 8.1 on Windows Server 2003
Microsoft DirectX 9.0a when installed on Windows 98
Microsoft DirectX 9.0a when installed on Windows 98 SE
Microsoft DirectX 9.0a when installed on Windows Millennium Edition
Microsoft DirectX 9.0a when installed on Windows 2000
Microsoft DirectX 9.0a when installed on Windows XP
Microsoft DirectX(r) 9.0a when installed on Windows
Server 2003
Microsoft Windows NT 4.0 Server with either Windows
Media Player 6.4 or Internet Explorer 6 Service Pack 1
installed.
Microsoft Windows NT 4.0, Terminal Server Edition with
either Windows Media Player 6.4 or Internet Explorer 6
Service Pack 1 installed.

Impact: Allow an attacker to execute code on a user's system
Max Risk: Critical
Bulletin: MS03-030

Microsoft encourages customers to review the Security Bulletins at:
http://www.microsoft.com/technet/security/bulletin/MS03-030.asp
http://www.microsoft.com/security/security_bulletins/ms03-030.asp
- ----------------------------------------------------------------------

Issue:
======
DirectX consists of a set of low-level Application Programming
Interfaces (APIs) that are used by Windows programs for multimedia
support. Within DirectX, the DirectShow technology performs client-
side audio and video sourcing, manipulation, and rendering.

There are two buffer overruns with identical effects in the
function used by DirectShow to check parameters in a Musical
Instrument Digital Interface (MIDI) file. A security vulnerability
results because it would be possible for a malicious user to
attempt to exploit these flaws and execute code in the security
context of the logged-on user.

An attacker could seek to exploit this vulnerability by creating a
specially crafted MIDI file designed to exploit this vulnerability
and then host it on a Web site or on a network share, or send it by
using an HTML-based e-mail. In the case where the file was hosted
on a Web site or network share, the user would need to open the
specially crafted file. If the file was embedded in a page the
vulnerability could be exploited when a user visited the Web page.
In the HTML-based e-mail case, the vulnerability could be exploited
when a user opened or previewed the HTML-based e-mail. A successful
attack could cause DirectShow, or an application making use of
DirectShow, to fail. A successful attack could also cause an
attacker's code to run on the user's computer in the security
context of the user.

Mitigating Factors:
====================
- - By default, Internet Explorer on Windows Server 2003 runs in
Enhanced Security Configuration. This default configuration of
Internet Explorer blocks the e-mail-based vector of this attack
because Microsoft Outlook Express running on Windows Server 2003 by
default reads e-mail in plain text. If Internet Explorer Enhanced
Security Configuration were disabled, the protections put in place
that prevent this vulnerability from being exploited would be
removed.
- - In the Web-based attack scenario, the attacker would have to host
a Web site that contained a Web page used to exploit these
vulnerabilities. An attacker would have no way to force users to
visit a malicious Web site outside the HTML-based e-mail vector.
Instead, the attacker would need to lure them there, typically by
getting them to click a link that would take them to the attacker's
site.
- -The combination of the above means that on Windows Server 2003 an
administrator browsing only to trusted sites should be safe from
this vulnerability.
- - Code executed on the system would only run under the privileges
of the logged-on user.

Risk Rating:
============
- Critical

Patch Availability:
===================
- A patch is available to fix this vulnerability. Please read the
Security Bulletins at
http://www.microsoft.com/technet/security/bulletin/ms03-030.asp
http://www.microsoft.com/security/security_bulletins/ms03-030.asp
for information on obtaining this patch.

Acknowledgment:
===============
- eEye Digital Security, http://www.eeye.com
 
This type of "virus" is called "shellcode", the dude who worked out the trick has become a legend!

If the host app's got no buffer or array overflow protection, some one can create an overflow on purpose, which will allow him to overwrite the processor's context backup stack pointer with a new address, which points at the begining of the afometionned array or buffer, which itself contains hexadecimal code wich will be executed, but won't appear in the task manager, and will loop forever!!! it's a brilliant idea! some people even managed to implant mini-web servers into larger systems memory, perfectly undetectable. the only way to get rid of a shell code is to reboot the machine, or do a memory scan and figure out certain hex patterns typical of shell codes.

have a search at it on google, it's amazing to see xhat can be done with such programs.

But I warn you all, I'm no hacker, I'm a computer systems and network security student, but you have to learn all the hacker's tricks to fight them back!
 
Thanks for the heads-up on this one...

Now here's hoping DirectX 9.0b behaves well... I always get nervous when I update DirectX...
 
Who in his right mind would install directX on 2003 SERVER? Playing UT on the company server during lunch? Or is this for an MP3 server?
 
Havoc said:
Who in his right mind would install directX on 2003 SERVER? Playing UT on the company server during lunch? Or is this for an MP3 server?
Hey. I know NO ONE who has used a company server for those purposes... :D
 
Yeah right!

What the heck do you do with a dual xeon that has nothing to do except sharing a few disks? You know the discussions: "well, it is going to be a Server, so shouldn't we get something really powerful?" So there it stands, a dual xeon, 2GB ram, U160 10k disks and that for sharing a few disks.....over a 100MB connection for about 50 people who do most of their work on their personal disks. So from time to time we "excersise" it a bit, just enough to keep the fpu units from rusting.
 
LOL Kinda "Blowing the carbon out of it" so to speak? LOL Our fastest server at work is a Dual P3 1G with RAID 5 U160s and 1G of RAM, but believe me, it's pretty quick. Even if it is a P3... :D I know what you are talking about with building them though. This one we thought "Hmmm... It's a PDC and a Samba server.. RAID 5 is a must, but it at least has to have 1 Gig of RAM to handle 25 employees..." Too bad it's a 1U Rack server or I'd throw an ATI Radeon in it.
 
I think a cup of warm milk could probably create an unchecked buffer overflow in Windows, so I'm not at all surprised a MIDI file can do it.
 
I think what is happening is hackers are findng back doors that Microsoft has programed in. These "Secutiry" enhancements are probably nothing more than Microsoft changing the back door.
 
Back
Top