6602 : Multiple BSD libc realpath() Off-by-one Overflow
Printer | http://osvdb.org/6602 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
18 1108 over 7 years ago over 4 years ago 0 times 90%

Timeline

Disclosure Date Exploit Publish Date
2003-07-31 2003-08-14

Description

A local overflow exists in BSD-derived libc libraries. The realpath() function fails to validate user input resulting in a buffer overflow. With a specially crafted request, an attacker can cause arbitrary code execution resulting in a loss of integrity.

Classification

Location: Local Access Required
Attack Type: Input Manipulation
Impact: Loss of Integrity
Exploit: Exploit Rumored
Disclosure: OSVDB Verified

Technical

wu-ftpd implements a function derived from the libc realpath(), called fb_realpath(). A vulnerability was discovered in this function, and an advisory for wu-ftpd was released on July 31, 2003. The discovery of the wu-ftpd bug in fb_realpath() caused the BSD's to take a look at their libc implementations of realpath(), and they found that the error still exists in their implementations, and affected any program which called realpath(). While this vulnerability exists in separate implementations for wu-ftpd and the BSD libc, both inherit the vulnerability from the 4.4BSD codebase.

Solution

Each vendor maintains its own implementation of realpath(), and each has released a patch or upgrade to address the issue. Please refer to the specific vendor advisory for more information.

Products

Apple Computer, Inc.
Watch-list
Mac OS X
Watch-list
10.0.x
10.1.x
10.2
10.2.1
10.2.2
10.2.3
10.2.4
10.2.5
10.2.6
FreeBSD Project
Watch-list
FreeBSD
Watch-list
3
4.3
4.4
4.5
4.6
4.7
4.8
5.0
NetBSD Foundation, Inc.
Watch-list
NetBSD
Watch-list
1.5
1.6
OpenBSD
Watch-list
OpenBSD
Watch-list
2.x
3.0
3.1
3.2
3.3

References

Tools & Filters

11811 12413 13555 13605 13801 15194

Snort

2389 2390 2391

Credit

  • Wojciech Purczynski - cliphisec.pl - isec.pl
  • Janusz Niewiadomski - funkyshisec.pl - Isec

CVSSv2 Score

CVSSv2 Base Score = 10.0
Source: nvd.nist.gov | Generated: 2003-12-31 | Disagree?

Access_vector_2 Access_complexity_2 Authentication_2 Confidentiality_impact_2 Integrity_impact_2 Availability_impact_2

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use