header-logo
Suggest Exploit
vendor:
Communicator
by:
SecurityFocus
7.2
CVSS
HIGH
Race Condition
362
CWE
Product Name: Communicator
Affected Version From: 4.73
Affected Version To: 4.73
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2002

Netscape Communicator /tmp File Race Condition

Netscape Communicator version 4.73 and prior may be susceptible to a /tmp file race condition when importing certificates. Netscape creates a /tmp file which is world readable and writable in /tmp, without calling stat() or fstat() on the file. As such, it is possible, should a user be able to predict the file name, to cause a symbolic link to be created, and followed elsewhere on the file system. Additionally, as the file is created mode 666 prior to being fchmod()'d to 600, there may be a window of opportunity for altering the contents of this file.

Mitigation:

Ensure that the /tmp directory is not world-writable and that all files created in the /tmp directory are owned by the user who created them.
Source

Exploit-DB raw data:

source: https://www.securityfocus.com/bid/1201/info

Netscape Communicator version 4.73 and prior may be susceptible to a /tmp file race condition when importing certificates. Netscape creates a /tmp file which is world readable and writable in /tmp, without calling stat() or fstat() on the file. As such, it is possible, should a user be able to predict the file name, to cause a symbolic link to be created, and followed elsewhere on the file system. 

Additionally, as the file is created mode 666 prior to being fchmod()'d to 600, there may be a window of opportunity for altering the contents of this file.

This issue has only been demonstrated on the Linux binary, for glibc. The sparc Solaris binary does not behave this way.

Predict the name of the temporary file.
ln -sf /elsewhere /tmp/<tmpfilename>

Alternately, a program which watches for the creation of these temporary files, opens them upon their creation, and alters the contents can be written.