J-Security Center

Title: Lmail Temporary File Race Condition Vulnerability

Severity: MODERATE

Description:

Jon Zeeff's lmail is a local mail delivery agent (LDA) designed to provide mail-to-pipe and mail-to-file aliasing for smail.

A race condition vulnerability exists in the lmail program.

The program uses the mktemp() system call to make a unique temporary file name and opens the file in the normally world-writeable /tmp directory. No checking is performed to verify that the file does not already exist, rendering lmail susceptible to a symbolic link attack.

The program also writes data from the standard input stream (stdin) directly to the temporary file.

Because lmail is usually installed setuid root, it may be possible for a local user to overwrite any file on the system with arbitrary data.

Affected Products:

  • Jon Zeeff lmail 2.7.0

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.