SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   wvWare Vendors:   wvware.sourceforge.net
wvWare Integer Overflows in wvGetLFO_PLF() and wvGetLFO_records() Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1017126
SecurityTracker URL:  http://securitytracker.com/id/1017126
CVE Reference:   CVE-2006-4513   (Links to External Site)
Date:  Oct 26 2006
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 1.2.2
Description:   A vulnerability was reported in wvWare. A remote user can cause arbitrary code to be executed on the target user's system.

A remote user can create a specially crafted document that, when loaded by the target user, will trigger an integer overflow in the wvGetLFO_PLF() function or the wvGetLFO_records() function and execute arbitrary code on the target system. The code will run with the privileges of the target user.

Products that use the wv library may be affected.

The vendor was notified on August 17, 2006.

infamous41md discovered this vulnerability. iDefense reported this vulnerability.

Impact:   A remote user can create a document that, when loaded by the target user, will execute arbitrary code on the target user's system.
Solution:   The vendor has issued a fixed version (1.2.3).
Vendor URL:  wvware.sourceforge.net/ (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   None.


 Source Message Contents

Subject:  iDefense Security Advisory 10.26.06: Multiple Vendor wvWare LFO Count

Multiple Vendor wvWare LFO Count Integer Overflow Vulnerability

iDefense Security Advisory 10.26.06
http://www.idefense.com/intelligence/vulnerabilities/
Oct 26, 2006

I. BACKGROUND

The WV library provides an interface to facilitate access to binary file
format Microsoft Word documents. The project was originally called
"mswordview" but was renamed to avoid confusion. For more information,
see http://wvware.sourceforge.net/

II. DESCRIPTION

Remote exploitation of an integer overflow vulnerability in the WV
library could allow an attacker to execute arbitrary code.

When parsing documents, two user supplied integer values are multiplied
without checking for an overflow condition.

    89  int
    90  wvGetLFO_PLF (LFO ** lfo, U32 * nolfo, U32 offset, U32 len,
wvStream * fd)
   ...
   101            *nolfo = read_32ubit (fd);
   ...
   104            *lfo = (LFO *) wvMalloc (*nolfo * sizeof (LFO));
   ...
   112            for (i = 0; i < *nolfo; i++)
   113                wvGetLFO (&((*lfo)[i]), fd);


As can be seen from the source code above, an attacker supplied integer
value is read from the file on line 101. On line 104, memory for that
number of structures is allocated based on the supplied number
multiplied by the size of the structures. Any value larger than 2^^32 /
sizeof(LFO) will cause an integer overflow. Lines 112 and 113 show the
loop used for reading data into the newly allocated heap buffer.  When
integer overflow occurs, the loop will store data beyond the end of the
allocated heap buffer.

III. ANALYSIS

A remote attacker could execute arbitrary code as a user that uses a WV
library dependent product to handle a malicious Microsoft Word document.

IV. DETECTION

iDefense has confirmed that this vulnerability exists in version 1.2.2
of the WV library. Earlier versions are suspected to be vulnerable as
well.

V. WORKAROUND

Users should avoid opening suspicious documents from untrusted sources.

VI. VENDOR RESPONSE

The wvWare maintainers have addressed this vulnerability by releasing
version 1.2.3.

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2006-4513 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

08/17/2006  Initial vendor notification
10/18/2006  Initial vendor response
10/18/2006  Second vendor notification
10/26/2006  Coordinated public disclosure

IX. CREDIT

This vulnerability was reported to iDefense by infamous41md.

Get paid for vulnerability research
http://www.idefense.com/methodology/vulnerability/vcp.php

Free tools, research and upcoming events
http://labs.idefense.com/

X. LEGAL NOTICES


Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDefense. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.

_______________________________________________
To unsubscribe, go here:
http://www.idefense.com/mailman/listinfo/idlabs-advisories



Multiple Vendor wvWare LVL Count Integer Overflow Vulnerability

iDefense Security Advisory 10.26.06
http://www.idefense.com/intelligence/vulnerabilities/
Oct 26, 2006

I. BACKGROUND

The WV library provides an interface to facilitate access to binary file
format Microsoft Word documents. The project was originally called
"mswordview" but was renamed to avoid confusion. For more information,
see http://wvware.sourceforge.net/

II. DESCRIPTION

Remote exploitation of an integer overflow vulnerability in the WV
library could allow an attacker to execute arbitrary code.

When parsing documents, an attacker supplied integer value is multiplied
with a constant without checking for an overflow condition.

    35  int
    36  wvGetLFO_records (LFO ** lfo, LFOLVL ** lfolvl, LVL ** lvl, U32
*nolfo,
    37                    U32 * nooflvl, U32 offset, U32 len, wvStream *fd)
    38  {
    ..
    47      for (i = 0; i < *nolfo; i++)
    48          *nooflvl += (*lfo)[i].clfolvl;
    ..
    59      *lfolvl = (LFOLVL *) wvMalloc (sizeof (LFOLVL) * *nooflvl);
    60      *lvl = (LVL *) wvMalloc (sizeof (LVL) * *nooflvl);


On lines 47 and 48, a loop of '*nolfo' iterations increments '*nooflvl'
by an attacker supplied 8-bit value read from the file. Lines 59 and 60
will use the calculated value to allocate memory for two different
dynamic structure arrays. Since no input validation is done, integer
overflow can occur. If an integer overflow, or wrap-around, does occur
it will lead to a heap overflow situation.

III. ANALYSIS

A remote attacker could execute arbitrary code as a user that uses a WV
library dependent product to handle a malicious Microsoft Word document.

IV. DETECTION

iDefense has confirmed that this vulnerability exists in version 1.2.2
of the WV library. Earlier versions are suspected to be vulnerable as
well.

V. WORKAROUND

Users should avoid opening suspicious documents from untrusted sources.

VI. VENDOR RESPONSE

The wvWare maintainers have addressed this vulnerability by releasing
version 1.2.3.

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2006-4513 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

08/17/2006  Initial vendor notification
10/18/2006  Initial vendor response
10/18/2006  Second vendor notification
10/26/2006  Coordinated public disclosure

IX. CREDIT

This vulnerability was reported to iDefense by infamous41md.

Get paid for vulnerability research
http://www.idefense.com/methodology/vulnerability/vcp.php

Free tools, research and upcoming events
http://labs.idefense.com/

X. LEGAL NOTICES


Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDefense. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.


_______________________________________________
To unsubscribe, go here:
http://www.idefense.com/mailman/listinfo/idlabs-advisories
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC