Exploit database

Vulnerability

CVE-2006-4842

Vulnerability details

Score
3.6
Severity
low

CVSS 2.0 · NVD

Vector string

AV:L/AC:L/Au:N/C:N/I:P/A:P

Description

The Netscape Portable Runtime (NSPR) API 4.6.1 and 4.6.2, as used in Sun Solaris 10, trusts user-specified environment variables for specifying log files even when running from setuid programs, which allows local users to create or overwrite arbitrary files.

CVE Program

Exploit source choices

8 sources
Solaris libnspr NSPR_LOG_FILE Privilege Escalation
MSF-solaris--local--libnspr_nspr_log_file_priv_escMetasploitSolaris / remote

This module exploits an arbitrary file write vulnerability in the Netscape Portable Runtime library (libnspr) on unpatched Solaris systems prior to Solaris 10u3 which allows users to gain root privileges. libnspr versions prior to 4.6.3 allow users to specify a log file with the `NSPR_LOG_FILE` environment variable. The log file is created with the privileges of the running process, resulting in privilege escalation when used in combination with a SUID executable. This module writes a shared object to the trusted library directory `/usr/lib/secure` and runs the specified SUID binary with the shared object loaded using the `LD_LIBRARY_PATH` environment variable. This module has been tested successfully with libnspr version 4.5.1 on Solaris 10u1 (01/06) (x86) and Solaris 10u2 (06/06) (x86).

2006-10-11libnspr_nspr_log_file_priv_esc.rb
0xdea/exploits
GH-f95e1b4b4c94c6e91e756b9b515b41e6GitHubUnofficial GitHub source

A handy collection of my public exploits, all in one place.

2017-07-1261 files · 677 stars