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] Microsoft Excel Array Index Error Remote Code Execution (MS06-037)

Subject: [NT] Microsoft Excel Array Index Error Remote Code Execution (MS06-037)
Date: 13 Jul 2006 00:45:22 +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 

- - - - - - - - -



  Microsoft Excel Array Index Error Remote Code Execution (MS06-037)
------------------------------------------------------------------------


SUMMARY

This vulnerability allows remote attackers to execute arbitrary code in 
the context of the logged in user.

DETAILS

Vulnerable Systems:
 * Microsoft Office 2000 Service Pack 3
 * Microsoft Office XP Service Pack 3
 * Microsoft Office 2003 Service Pack 1 or Service Pack 2

An array boundary condition may be violated by a malicious .xls file in 
order to redirect execution into  attacker-supplied data. Exploitation 
requires that the attacker coerce or persuade the victim to open a 
malicious .XLS file.
The specific flaw exists within the parsing of the BIFF file format used 
by Microsoft Excel.
A function pointer is not validated and insecurely affected by some user 
supplied data, thus resulting code execution.

The disassembly code:
text:300ABAFC sub_300ABAFC    proc near               ; CODE XREF: 
sub_3008FEA4+B5p
text:300ABAFC                                         ; 
sub_30096EC8-5F2p ...
text:300ABAFC
text:300ABAFC arg_0           = dword ptr  4
text:300ABAFC arg_4           = dword ptr  8
text:300ABAFC arg_8           = dword ptr  0Ch
text:300ABAFC
text:300ABAFC                 mov     eax, [esp+arg_0]
text:300ABB00                 movsx   ecx, word ptr [eax]  --> [eax] read 
from the XLS file
text:300ABB03                 push    [esp+arg_8]
text:300ABB07                 imul    ecx, 14h
text:300ABB0A                 push    [esp+4+arg_4]
text:300ABB0E                 push    eax
text:300ABB0F                 mov     eax, dword_308792C4  --> 
[eax]=00e17638,always, maybe different in the language SYSTEM
text:300ABB14                 call    dword ptr [ecx+eax]  --> **** Here! 
call your CODE.
text:300ABB17                 retn    0Ch
text:300ABB17 sub_300ABAFC    endp

eax is the index and always set to 00e17638h(?), and the ecx can vary from 
a very wide range, so we the attacker can plant specific data somewhere 
and CALL it.

The supplied data will be used to some operate and after some caculate 
(such as imul) will be used for direct memory access, in this case, we can 
caculate and specially choose some value which contains data we can 
control, will easily lead to remote code execution.

CVE Information:
 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1306> 
CVE-2006-1306


ADDITIONAL INFORMATION

The information has been provided by  <mailto:smaillist@gmail.com> Sowhat.
The original article can be found at:  
<http://secway.org/advisory/AD20060711.txt> 
http://secway.org/advisory/AD20060711.txt



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


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] Microsoft Excel Array Index Error Remote Code Execution (MS06-037), SecuriTeam <=