J-Security Center

Title: Lotus Notes Remote Code Execution Vulnerability

Severity: HIGH

Description:

It is possible for a remote attacker to embed malicious code in an email message targeted to a Lotus Notes user. Opening the email message or viewing the message from a preview pane will execute the code.

Lotus Notes allows users to create forms within an email message rather than using template forms; these forms travel within the message. A user familiar with Lotus Notes could exploit this technique by modifying the forms properties. The forms properties must be modified to enable 'Store form in Document'. The attacker must then embed the code in either the 'Post Open' or 'Launch' function. 'Post Open' function will require an attacker to be familiar with Lotus Script programming, while the 'Launch' function simply executes the attachment upon opening the mail message.

Successful exploitation of this vulnerability could lead to complete comprimise of the host.

This vulnerability involves the use of a "NULL" or "zero" value byte in the filename, an attack common to CGI vulnerabilities. Most C functions that deal with strings regard NULL bytes as string terminators, signifying the end of a string. High-level scripting languages, such as those often used for CGI applications, may not. When passing these filenames to underlying system functions that are written in C, they will often pass a null byte if supplied by a user through. This can cause the string, when intrepreted by the lower level C function, to be cut off prematurely. In situations where files are opened or commands are executed involving user-supplied data, this may pose a security threat.

User supplied data is used to construct a filename, which is passed to the open() system call by the script interpreter. The open() call interprets the string C style and terminates it at the user-supplied byte. This gives the attacker control over the file that is opened.

Affected Products:

  • Lotus Notes R5 Client 4.6.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.