// back

Sun Microsystems Solaris NSPR Library Arbitrary File Creation Vulnerability

10.11.06

BACKGROUND

The Netscape Portable Runtime (NSPR) API allows compliant applications
to use system facilities such as threads, thread synchronization, I/O,
interval timing, atomic operations and several other low-level services
in a platform-independent manner. More information can be found on
Mozilla's website at http://www.mozilla.org/projects/nspr/.

DESCRIPTION

Local exploitation of a design error vulnerability in version 4.6.1 of
NSPR, as included with Sun Microsystems Solaris 10, allows attackers to
create or overwrite arbitrary files on the system.

The problem exists because environment variables are used to create log
files. Even when the program is setuid, users can specify a log file
that will be created with elevated privileges.

ANALYSIS

Exploitation allows local attackers to elevate privileges to root.

DETECTION

iDefense confirmed that Solaris 10 with NSPR version 4.6.1 is vulnerable
to privilege escalation. Additionally, iDefense has also confirmed via
the source code that version 4.6.2 does not address the vulnerability.

WORKAROUND

iDefense is currently unaware of any effective workaround for this
issue.

VENDOR RESPONSE

Sun Microsystems has addressed this issue with Sun Security Alert 102658
which can be found at:
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102658-1

CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2006-4842 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

DISCLOSURE TIMELINE

08/31/2006 Initial vendor notification
09/04/2006 Initial vendor response
10/11/2006 Coordinated public disclosure

CREDIT

The discoverer of this vulnerability wishes to remain anonymous.

Get paid for vulnerability research
http://www.idefense.com/methodology/vulnerability/vcp.php

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

LEGAL NOTICES

Copyright © 2006 Verisign, 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.