vendor:
Solaris Operating Environment
by:
Larry W. Cashdollar
7.2
CVSS
HIGH
Symlink /tmp File Creation Vulnerability
264
CWE
Product Name: Solaris Operating Environment
Affected Version From: Solaris 2.x
Affected Version To: Solaris 2.x
Patch Exists: YES
Related CWE: N/A
CPE: o:sun:solaris:2.x
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: SunOS smackdown 5.8 Generic_108528-10 sun4u sparc SUNW,Ultra-5_10
2002
patchadd Solaris 2.x Symlink /tmp File Creation Vulnerability
A problem exists in the creation of /tmp files by patchadd. patchadd creates a variety of files in /tmp while installing the patches on the operating system. The files created in /tmp are mode 0666, and are created with the extension sh<pid of patchadd>.1, sh<pid of patchadd>.2, and so on. Running the program requires administrative access. It is possible to brute force guess the pid of patchadd, and create files in the /tmp directory that are symbolic links to sensitive system files. It is therefore possible for a user with malicious intent to gain elevated privileges, corrupt system files, or execute arbitrary commands.
Mitigation:
Ensure that patchadd is not running with administrative privileges.