what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

RSI.0002.05-18-98.BNU.UUCPD

RSI.0002.05-18-98.BNU.UUCPD
Posted Sep 23, 1999

RSI.0002.05-18-98.BNU.UUCPD

SHA-256 | 511e69cdfd71330cd3bc14af0569fcb3a0f37476f7e1dd3f358b746e13c822ac

RSI.0002.05-18-98.BNU.UUCPD

Change Mirror Download


RSI.0002.05-18-98.BNU.UUCPD



|::::. |:::::: |:::::. |:::::: |:::::: |:::::.
|.. :: |.. |.. :: |.. |.. |.. ::
|::::: |::::: |::::: :::::: |:::::: |::::: |::
|:: :: |:: |:: |:: |:: |:: ::
|:: :: |:::::: |:: |:::::: |:::::: |::::::


Repent Security Incorporated, RSI
[ http://www.repsec.com ]


*** RSI ALERT ADVISORY ***


--- [CREDIT] --------------------------------------------------------------

Vulnerability found by: Matt Conover <matt@repsec.com>

Notes: This advisory has been brought to you by WSD;
RSI's official research & development team. <wsd@repsec.com>
Webpage: http://www.w00w00.org

Authors: Matt Conover & Mark Zielinski


--- [SUMMARY] -------------------------------------------------------------

Announced: April 21, 1998
Report code: RSI.0002.05-18-98.BNU.UUCPD
Report title: BNU uucpd
Vulnerability: Insufficient bounds checking
Vendor status: NetBSD: Contacted, patch information below
OpenBSD: Contacted, patch information below
Solaris: Contacted, awaiting patch information
Patch status: Patch available for certain Operating Systems at the end of
this advisory
Platforms: OSF 1.0, 2.0,
SunOS 4.1.3, 4.1.4
Solaris 2.2, 2.3, 2.4, 2.5.1
NetBSD 1.3, 1.3.1
OpenBSD 2.1, 2.2
Not affected: FreeBSD 2.x
BSDi 2.x, 3.x
RedHat Linux 4.x, 5.x
Slackware Linux 3.x
Reference: http://www.repsec.com/advisories.html
Impact: If exploited, an attacker could locally compromise root on
your system.


--- [DETAILS] -------------------------------------------------------------

Problem: Upon successfully logging into a system with uucpd,
the daemon will attempt to record wtmp information.
However, due to insufficient bounds checking, a buffer
overflow can result when uucpd attempts to copy the
connecting hostname into a buffer with a predefined size.

While overwriting the buffer, the attacker can manipulate
the stack and execute their own commands, possibly gaining
root access into the system.

The attacker must have an account on the system, which
will allow this to be exploited.

This problem is present in BNU uucpd. This is not
installed by default on every operating system.
This also may not always run as root.

Known vulnerable Operating Systems include:

OSF 1.0, 2.0,
SunOS 4.1.3, 4.1.4
Solaris 2.2, 2.3, 2.4, 2.5.1
NetBSD 1.3, 1.3.1
OpenBSD 2.1, 2.2

Operating Systems not vulnerable:

FreeBSD 2.x
BSDi 2.x, 3.x
RedHat Linux 4.x, 5.x
Slackware Linux 3.x

For more information on this type of attack, point your
web browsers to http://www.repsec.com/bofs.html.


--- [FIX] -----------------------------------------------------------------

Solution: A generic patch has been made publically available by the RSI staff.


--- [PATCH] ---------------------------------------------------------------

Solution: Apply the following patch to uucpd.c:

--- uucpd.old.c Thu Feb 6 06:34:45 1997
+++ uucpd.c Tue Apr 7 16:37:46 1998
@@ -300,7 +300,8 @@

time(&ll.ll_time);
lseek(f, pw->pw_uid * sizeof(struct lastlog), 0);
- strcpy(line, remotehost);
+ strncpy(line, remotehost, sizeof(line)-1);
SCPYN(ll.ll_line, line);
SCPYN(ll.ll_host, remotehost);
(void) write(f, (char *) &ll, sizeof ll);

For NetBSD's patch please refer to: http://www.repsec.com/advisory/0002.patch.html


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

Repent Security Incorporated (RSI)
advise@repsec.com
13610 N. Scottsdale Rd.
Suite #10-326
Scottsdale, AZ
85254

[ http://www.repsec.com ]

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

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzU6dqAAAAEEAOHt9a5vevjD8ZjsEmncEbFp2U7aeqvPTcF/8FJMilgOVp75
dshXvZixHsYU7flgCNzA7wLIQPWBQBrweLG6dx9gE9e5Ca6yAJxZg8wNsi06tZfP
nvmvf6F/7xoWS5Ei4k3YKuzscxlyePNNKws6uUe2ZmwVoB+i3HHT44dOafMhAAUT
tBpSZXBTZWMgPGFkdmlzZUByZXBzZWMuY29tPg==
=ro8H
-----END PGP PUBLIC KEY BLOCK-----

Copyright May 1998 RepSec, Inc.

The information in this document is provided as a service to customers
of RepSec, Inc. Neither RepSec, Inc., nor any of it's employees, makes
any warranty, express or implied, or assumes any legal liability or
responsibility for the accuracy, completeness, or usefulness of any
information, apparatus, product, or process contained herein, or
represents that its use would not infringe any privately owned rights.
Reference herein to any specific commercial products, process, or
services by trade name, trademark, manufacturer, or otherwise, does not
necessarily constitute or imply its endorsement, recommendation or
favoring by RepSec, Inc. The views and opinions of authors express
herein do no necessarily state or reflect those of RepSec, Inc., and may
not be used for advertising or product endorsement purposes.

The material in this alert advisory may be reproduced and distributed,
without permission, in whole or in part, by other security incident
response teams (both commercial and non-commercial), provided the above
copyright is kept intact and due credit is given to RepSec, Inc.

This alert advisory may be reproduced and distributed, without
permission, in its entirety only, by any person provided such
reproduction and/or distribution is performed for non-commercial
purposes and with the intent of increasing the awareness of the Internet
community.

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

RepSec, Inc. are trademarks of RepSec, Inc. All other trademarks are
property of their respective holders.
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
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 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