exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2005-05-25.1

iDEFENSE Security Advisory 2005-05-25.1
Posted Aug 14, 2005
Authored by iDefense Labs, infamous41md | Site idefense.com

iDEFENSE Security Advisory 05.25.05-1 - Exploitation of a buffer overflow vulnerability in the mail binary of the GNU Projects Mailutils package may allow a remote attacker to execute commands with the privileges of the targeted user. iDEFENSE Labs has verified the existence of this vulnerability in versions 0.5 and 0.6 of the GNU Mailutils package. It is suspected that any previous versions may also be affected.

tags | advisory, remote, overflow
advisories | CVE-2005-1520
SHA-256 | 1ceee07eb37061ac9fd8bec29cf4094c916eb57a1044ae25e6c4c819f1873008

iDEFENSE Security Advisory 2005-05-25.1

Change Mirror Download
GNU Mailutils 0.6 mail header_get_field_name() Buffer Overflow
Vulnerability

iDEFENSE Security Advisory 05.25.05
http://www.idefense.com/application/poi/display?type=vulnerabilities
May 25, 2005

I. BACKGROUND

The GNU mailutils package is a collection of mail-related
utilities, including local and remote mailbox access services.
More information is available at the following site:

http://www.gnu.org/software/mailutils/mailutils.html

II. DESCRIPTION

Exploitation of a buffer overflow vulnerability in the mail
binary of the GNU Projects Mailutils package may allow a remote
attacker to execute commands with the privileges of the
targeted user.

Due to a coding error in the library function
header_get_field_name() in mailbox/header.c, a buffer overflow
condition exists. The code below checks if the value of 'len' is
greater than the value of 'buflen', but always sets the value of
'len' to be the same, effectively performing no instruction.

len = (len > buflen) ? len : len;

This code will set 'len' to the value of 'buflen' if 'len' is
greater than 'buflen'. This typo allows the buffer overflow to
occur. The code should be:

len = (len > buflen) ? buflen : len;

III. ANALYSIS

Successful exploitation of the vulnerability would allow an
email sent by a remote user to cause a buffer overflow, allowing
execution of arbitrary commands in the context of the targeted
user. Access to a user account may allow further escalation of
privileges via local attacks.

IV. DETECTION

iDEFENSE Labs has verified the existence of this vulnerability
in versions 0.5 and 0.6 of the GNU Mailutils package. It is
suspected that any previous versions may also be affected.

It should be noted that the mail command from the GNU mailutils
package is NOT the default mail client on the vast majority of
Linux installations. The mailx mail client is by far much more
likely to be installed. The mailx mail client is typically
installed in /bin/mail, whereas the GNU mailutils mail client is
typically installed in /usr/bin/mail. These values are not
universal, and additional verification should be performed to
determine which version you have installed.

V. WORKAROUND

When possible, run client software as a regular user with
limited access to system resources. This may limit the immediate
consequences of client-side vulnerabilities.

VI. VENDOR RESPONSE

This vulnerability has been fixed in GNU mailutils 0.6.90 which is
available for download at:

ftp://alpha.gnu.org/gnu/mailutils/

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CAN-2005-1520 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

05/12/2005 Initial vendor notification
05/12/2005 Initial vendor response
05/25/2005 Public disclosure

IX. CREDIT

infamous41md@hotpop.com is credited with the discovery of this
vulnerability.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

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

X. LEGAL NOTICES

Copyright (c) 2005 iDEFENSE, Inc.

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.

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close