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: | [VulnWatch] High Risk Vulnerability in the OpenOffice and StarOffice Suites |
|---|---|
| Date: | Thu, 4 Jan 2007 17:58:21 -0000 |
John Heasman of NGSSoftware has discovered several high risk vulnerabilities in the handling of WMF and EMF graphics formats within the OpenOffice StarOffice suite.
The vulnerabilities, three heap overflows, affect OpenOffice 2.1.0 and StarOffice 6, 7 and 8. If an attacker can coax a user into opening a specially crafted document then the attacker can execute arbitrary code in the security context of their victim.
Details ******* 1) From svtools\source\filter.vcl\wmf\winwmf.cxx
case W_META_ESCAPE :
...
sal_uInt32 i, nStringLen, nDXCount;
...
aMemoryStream >> aPt.X()
>> aPt.Y()
>> nStringLen;sal_Unicode* pBuf = aString.AllocBuffer( (sal_uInt16)nStringLen ); for ( i = 0; i < nStringLen; i++ ) aMemoryStream >> pBuf[ i ];
nStringLen is a sal_uInt32; it is cast to a sal_uInt16 for the allocation then the original 32 bit value is used as a count to fill the buffer, thus any length greater than 0xFFFF results in a heap overflow. Code execution is possible via a function pointer overwrite or arbitrary DWORD overwrite if the user opens a malicious WMF, or a container document (such as a Microsoft Word document) in which it is embedded.
2) From svtools\source\filter.vcl\wmf\enhwmf.cxx
case EMR_POLYPOLYGON :
INT32 i, nPoly, nGesPoints; ... *pWMF >> nPoly >> nGesPoints; ... pPtAry = (Point*) new char[ nGesPoints * sizeof(Point) ];
for ( i = 0; i < nGesPoints; i++ )
{
*pWMF >> nX32 >> nY32;
pPtAry[ i ] = Point( nX32, nY32 );
}nGesPoints * sizeof(Point) will result in an integer wrap if nGesPoints is > (0x100000000 / sizeof(Point)).
Code execution is possible via a function pointer overwrite.
3) As above but for EMR_POLYPOLYGON16 record.
Solution ********
These issues have now been resolved; OpenOffice and StarOffice users are strongly recommended to install the relevant patch, available from the OpenOffice and SunSolve websites:
http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/xprod-StarOffice= http://download.openoffice.org/2.1.0/index.html
NGSSoftware Insight Security Research http://www.ngssoftware.com http://www.databasesecurity.com/ http://www.nextgenss.com/ +44(0)208 401 0070
-- E-MAIL DISCLAIMER
The information contained in this email and any subsequent correspondence is private, is solely for the intended recipient(s) and may contain confidential or privileged information. For those other than the intended recipient(s), any disclosure, copying, distribution, or any other action taken, or omitted to be taken, in reliance on such information is prohibited and may be unlawful. If you are not the intended recipient and have received this message in error, please inform the sender and delete this mail and any attachments.
The views expressed in this email do not necessarily reflect NGS policy. NGS accepts no liability or responsibility for any onward transmission or use of emails and attachments having left the NGS domain.
NGS and NGSSoftware are trading names of Next Generation Security Software Ltd. Registered office address: 52 Throwley Way, Sutton, SM1 4BF with Company Number 04225835 and VAT Number 783096402
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Next by Date: | Correction (High Risk Vulnerability in the OpenOffice and StarOffice Suites), NGSSoftware Insight Security Research |
|---|---|
| Next by Thread: | Correction (High Risk Vulnerability in the OpenOffice and StarOffice Suites), NGSSoftware Insight Security Research |
| Indexes: | [Date] [Thread] [Top] [All Lists] |