[UNIX] UUCP Command Line Arguments Buffer Overflow

From: support@securiteam.com
Date: 12/01/01


From: support@securiteam.com
To: list@securiteam.com
Subject: [UNIX] UUCP Command Line Arguments Buffer Overflow
Message-Id: <20011201120407.DFBF1138BF@mail.der-keiler.de>
Date: Sat,  1 Dec 2001 13:04:07 +0100 (CET)

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

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  UUCP Command Line Arguments Buffer Overflow
------------------------------------------------------------------------

SUMMARY

A buffer overflow vulnerability in UUCP has been found. The vulnerability
allows an attacker to cause the program to execute arbitrary code, thus
gaining elevated access (when the program has been set setuid uucp, or
root).

DETAILS

Vulnerable systems:
BSDI BSD/OS 4.0.1
BSDI BSD/OS 3.0

Example:
$ /usr/bin/uucp `perl -e 'print "A" x 900'` `perl -e 'print "A" x 900'`
`perl -e 'print "A" x 356'`

As you can notice the return address is writable, and it is marked as 352
- 354 in the third buffer (from left to right).

Since /usr/bin/uucp is by nature suid and the owned by uucp, you would
gain uucp privileges.

ADDITIONAL INFORMATION

The information has been provided by <mailto:izik@tty64.org> Izik.

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

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.



Relevant Pages

  • [EXPL] UUCP Family Exploit (uucp / uuparams / uuname)
    ... UUCP Command Line ... Arguments Buffer Overflow, a buffer overflow vulnerability in UUCP allows ... 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. ...
    (Securiteam)
  • Re: UUCP
    ... Subject: UUCP ... security fix for uuxqt parsing of command line arguments ... > buffer overflow is based on command line argv. ...
    (Vuln-Dev)
  • RE: UUCP
    ... This is really funny if true, I remember seeing this bug over a long period ... many releases of one flavor of UNIX.... ... Subject: UUCP ... buffer overflow is based on command line argv. ...
    (Vuln-Dev)
  • UUCP
    ... Subject: UUCP ... in BSDi platform's ... versions that seems to be vuln are: ... buffer overflow is based on command line argv. ...
    (Vuln-Dev)
  • UUCP
    ... Subject: UUCP ... in BSDi platform's ... versions that seems to be vuln are: ... buffer overflow is based on command line argv. ...
    (Bugtraq)