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

SecurityTracker
Archives


 


Category:   Application (Instant Messaging/IRC/Chat)  >   Gaim Vendors:   Gaim.sourceforge.net
(Fedora Issues Fix for RH Linux) Gaim Contains Multiple Overflows That Let a Remote User Execute Arbitrary Code
SecurityTracker Alert ID:  1011752
SecurityTracker URL:  http://securitytracker.com/id/1011752
CVE Reference:   CVE-2004-0005, CVE-2004-0006, CVE-2004-0007, CVE-2004-0008   (Links to External Site)
Date:  Oct 17 2004
Impact:   Denial of service via network, Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 0.75 and prior versions
Description:   Multiple vulnerabilities were reported in Gaim. A remote user can execute arbitrary code on the target user's system.

Stefan Esser of e-matters GmbH reported 12 vulnerabilities, including stack overflows, heap overflows, and an integer overflow. Some of the vulnerabilities require a man-in-the-middle attack to exploit.

Several of the vulnerabilities were due to buffer overflows in the processing of Yahoo! Messenger protocol.

An integer overflow was reported in the processing of the AIM/Oscar protocol.

A variety of other protocols and functions also contain overflows.

It is reported that two buffer overflows reside in the decoding of octal values in the yahoo_decode() function in
'gaim/src/protocols/yahoo/yahoo.c' [CVE: CVE-2004-0005]. Only version 0.75 is affected.

A remote server can send an HTTP reply header with specially crafted cookie values to trigger an overflow in 'gaim/src/protocols/yahoo/yahoo.c' in the yahoo_web_pending() function [CVE: CVE-2004-0006].

Two buffer overflows in yahoo_login_page_hash() can be triggered by specially crafted values in the Yahoo! login webpage [CVE: CVE-2004-0006].

A remote user can send a Yahoo! Messenger packet containing a specially crafted keyname value to the target server via the Yahoo! server to execute arbitrary code on the target system [CVE: CVE-2004-0006]. The flaw reportedly resides in the yahoo_packet_read() function in 'gaim/src/protocols/yahoo/yahoo.c'.

It is reported that a malicious AIM/Oscar directIM packet can trigger an overflow in the handlehdr_odc() function in 'gaim/src/protocols/oscar/ft.c' [CVE: CVE-2004-0008]. Versions 0.74 and prior are affected.

Two vulnerabilites were reported in the MIME decoding functions of quotedp_decode() in 'gaim/src/util.c' [CVE: CVE-2004-0005]. Only version 0.75 is affected.

The gaim_url_parse() function in 'gaim/src/util.c' reportedly splits URLs into fixed sized buffers [CVE: CVE-2004-0006].

The gaim_markup_extract_info_field() function in 'gaim/src/util.c' contains a stack overflow in several locations [CVE: CVE-2004-0007]. Versions 0.74 and earlier are affected.

A remote user acting as an HTTP proxy server can trigger an overflow in a connected Gaim client when the client is configured to use an HTTP proxy [CVE: CVE-2004-0006]. The flaw resides in the http_canread() function in 'gaim/src/proxy.c'.

The vendor was initially notified regarding the first of the bugs on January 4, 2004.

The original advisory is available at:

http://security.e-matters.de/advisories/012004.html

Impact:   A remote user can execute arbitrary code on the target system. In some of the vulnerabilities, the remote user must be operating as a malicious server. In some cases, the remote user must invoke a man-in-the-middle attack. In one case, a remote user can simply send a message via the Yahoo! server.
Solution:   Fedora has released a fix.

Red Hat Linux 7.3:

SRPM:
http://download.fedoralegacy.org/redhat/7.3/updates/SRPMS/gaim-0.82.1-0.73.2.legacy.src.rpm

i386:
http://download.fedoralegacy.org/redhat/7.3/updates/i386/gaim-0.82.1-0.73.2.legacy.i386.rpm

Red Hat Linux 9:

SRPM:
http://download.fedoralegacy.org/redhat/9/updates/SRPMS/gaim-0.82.1-0.90.3.legacy.src.rpm

i386:
http://download.fedoralegacy.org/redhat/9/updates/i386/gaim-0.82.1-0.90.3.legacy.i386.rpm

The verification checksums are:

cda084b78e263bb725ad92fdef0fc4b329b705d5
7.3/updates/i386/gaim-0.82.1-0.73.2.legacy.i386.rpm
e28d0c278324c7a508af7a30565cc5741b7ec4f0
7.3/updates/SRPMS/gaim-0.82.1-0.73.2.legacy.src.rpm
958a8c9d2077ae068af20c282e69e64ec8f1a4e7
9/updates/i386/gaim-0.82.1-0.90.3.legacy.i386.rpm
211c4e944d0b1178e53f0f1dd8bd303eeee1a6cf
9/updates/SRPMS/gaim-0.82.1-0.90.3.legacy.src.rpm

Vendor URL:  gaim.sourceforge.net/ (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Red Hat Linux)
Underlying OS Comments:  7.3, 9

Message History:   This archive entry is a follow-up to the message listed below.
Jan 26 2004 Gaim Contains Multiple Overflows That Let a Remote User Execute Arbitrary Code



 Source Message Contents

Subject:  [Full-Disclosure] [FLSA-2004:1237] Updated gaim package resolves security issues



--=-yT6Wjt5+gK57EgNFrD7m
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

-----------------------------------------------------------------------
               Fedora Legacy Update Advisory

Synopsis:          Updated gaim package resolves security issues
Advisory ID:       FLSA:1237
Issue date:        2004-10-16
Product:           Red Hat Linux
Keywords:          Bugfix
Cross references:  https://bugzilla.fedora.us/show_bug.cgi?id=3D1237
CVE Names:         CAN-2004-0006 CAN-2004-0007 CAN-2004-0008
                   CAN-2004-0500 CAN-2004-0754 CAN-2004-0784
                   CAN-2004-0785
-----------------------------------------------------------------------


-----------------------------------------------------------------------
1. Topic:

An updated gaim package that fixes several security issues is now
available.

2. Relevant releases/architectures:

Red Hat Linux 7.3 - i386
Red Hat Linux 9 - i386

3. Problem description:

Issues fixed with this gaim release include:

Multiple buffer overflows that affect versions of Gaim 0.75 and earlier.
1) When parsing cookies in a Yahoo web connection, 2) YMSG protocol
overflows parsing the Yahoo login webpage, 3) a YMSG packet overflow, 4)
flaws in the URL parser, and 5) flaws in HTTP Proxy connect. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the
name CAN-2004-0006 to these issues.

A buffer overflow in Gaim 0.74 and earlier in the Extract Info Field
Function used for MSN and YMSG protocol handlers. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the
name CAN-2004-0007 to this issue.

An integer overflow in Gaim 0.74 and earlier, when allocating memory for
a directIM packet results in heap overflow. The Common Vulnerabilities
and Exposures project (cve.mitre.org) has assigned the name
CAN-2004-0008 to this issue.

Buffer overflow bugs were found in the Gaim MSN protocol handler. In
order to exploit these bugs, an attacker would have to perform a man in
the middle attack between the MSN server and the vulnerable Gaim client.
Such an attack could allow arbitrary code execution. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the
name CAN-2004-0500 to this issue.

An integer overflow bug has been found in the Gaim Groupware message
receiver. It is possible that if a user connects to a malicious server,
an attacker could send carefully crafted data which could lead to
arbitrary code execution on the victims machine. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the
name CAN-2004-0754 to this issue.

A shell escape bug has been found in the Gaim smiley theme file
installation. When a user installs a smiley theme, which is contained
within a tar file, the unarchiving of the data is done in an unsafe
manner. An attacker could create a malicious smiley theme that would
execute arbitrary commands if the theme was installed by the victim. The
Common Vulnerabilities and Exposures project (cve.mitre.org) has
assigned the name CAN-2004-0784 to this issue.

Buffer overflow bugs have been found in the Gaim URL decoder, local
hostname resolver, and the RTF message parser. It is possible that a
remote attacker could send carefully crafted data to a vulnerable client
and lead to a crash or arbitrary code execution. The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the
name CAN-2004-0785 to this issue.

Users of Gaim are advised to upgrade to this updated package which
contains Gaim version 0.82.1 and is not vulnerable to these issues.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which
are not installed but included in the list will not be updated.  Note
that you can also use wildcards (*.rpm) if your current directory *only*
contains the desired RPMs.

Please note that this update is also available via yum and apt.  Many
people find this an easier way to apply updates.  To use yum issue:

yum update

or to use apt:

apt-get update; apt-get upgrade

This will start an interactive process that will result in the
appropriate RPMs being upgraded on your system.  This assumes that you
have yum or apt-get configured for obtaining Fedora Legacy content.
Please visit http://www fedoralegacy.org/docs for directions on how to
configure yum and apt-get.

5. Bug IDs fixed:

http://bugzilla.fedora.us - bug #1237

6. RPMs required:

Red Hat Linux 7.3:

SRPM:
http://download.fedoralegacy.org/redhat/7.3/updates/SRPMS/gaim-0.82.1-0.73.=
2.legacy.src.rpm

i386:
http://download.fedoralegacy.org/redhat/7.3/updates/i386/gaim-0.82.1-0.73.2=
.legacy.i386.rpm

Red Hat Linux 9:

SRPM:
http://download.fedoralegacy.org/redhat/9/updates/SRPMS/gaim-0.82.1-0.90.3.=
legacy.src.rpm

i386:
http://download.fedoralegacy.org/redhat/9/updates/i386/gaim-0.82.1-0.90.3.l=
egacy.i386.rpm

7. Verification:

SHA1 sum                                 Package Name
---------------------------------------------------------------------------

cda084b78e263bb725ad92fdef0fc4b329b705d5=20
7.3/updates/i386/gaim-0.82.1-0.73.2.legacy.i386.rpm
e28d0c278324c7a508af7a30565cc5741b7ec4f0=20
7.3/updates/SRPMS/gaim-0.82.1-0.73.2.legacy.src.rpm
958a8c9d2077ae068af20c282e69e64ec8f1a4e7=20
9/updates/i386/gaim-0.82.1-0.90.3.legacy.i386.rpm
211c4e944d0b1178e53f0f1dd8bd303eeee1a6cf=20
9/updates/SRPMS/gaim-0.82.1-0.90.3.legacy.src.rpm

These packages are GPG signed by Fedora Legacy for security.  Our key is
available from http://www.fedoralegacy org/about/security.php

You can verify each package with the following command:

    rpm --checksig -v <filename>

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the sha1sum with the following command:

    sha1sum <filename>

8. References:

http://security.e-matters.de/advisories/012004.html
http://gaim.sourceforge.net/security/index.php?id=3D0
http://gaim.sourceforge.net/security/index.php?id=3D1
http://gaim.sourceforge.net/security/index.php?id=3D2
http://gaim.sourceforge.net/security/index.php?id=3D3
http://gaim.sourceforge.net/security/index.php?id=3D4
http://gaim.sourceforge.net/security/index.php?id=3D5
http://gaim.sourceforge.net/security/index.php?id=3D6
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0006
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0007
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0008
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0500
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0754
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0784
http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCAN-2004-0785


9. Contact:

The Fedora Legacy security contact is <secnotice@fedoralegacy.org>. More
project details at http://www.fedoralegacy.org

---------------------------------------------------------------------


--=-yT6Wjt5+gK57EgNFrD7m
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBBcWI7LMAs/0C4zNoRAuwkAJ4n8aqw46Ypr31zcF/agwoWtT3u/wCfc/IB
jfgx69hTPs9W16I7z3TBJ6g=
=mQs0
-----END PGP SIGNATURE-----

--=-yT6Wjt5+gK57EgNFrD7m--

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html

 
 


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 2021, SecurityGlobal.net LLC