J-Security Center

Title: Ncompress Insecure Temporary File Creation Vulnerability

Severity: MODERATE

Description:

Ncompress is a file compression and decompression utility.

The issue is due to an insecure manner in which the ncompress scripts "build", "zcmp" and "zdiff" create temporary files in the '/tmp' directory.

A local attacker would most likely take advantage of this vulnerability by creating a malicious symbolic link in a directory where the temporary files will be created. When the program attempts to perform an operation on the temporary files, it will instead perform the operation on the file pointed to by the malicious symbolic link.

Exploitation would most likely result in loss of data or a denial of service if critical files are overwritten in the attack. Other attacks may also be possible.

The vulnerability is reported in version 4.2.4. Other versions may also be affected.

Affected Products:

  • ncompress ncompress 4.2.4

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.