__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN IBM Lotus Notes Vulnerabilities [IBM Security Advisory 702] October 24, 2007 21:00 GMT Number S-029 ______________________________________________________________________________ PROBLEM: Several vulnerabilities have been found in IBM Lotus Notes. PLATFORM: IBM Lotus Notes versions prior to 8.0 and 7.0.3 DAMAGE: Allows the execution of arbitrary code. SOLUTION: Upgrade to the appropriate version. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. Allows the execution of arbitrary code. ASSESSMENT: ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/s-028.shtml ORIGINAL BULLETIN: http://vuln.sg/lotusnotes702doc-en.html ADDITIONAL LINKS: http://vuln.sg/lotusnotes702sam-en.html http://vuln.sg/lotusnotes702wpd-en.html http://vuln.sg/lotusnotes702mif-en.html http://www.symantec.com/content/en/us/enterprise/research/ SYMSA-2007-013.txt CVE: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CVE-2007-5544 ______________________________________________________________________________ [***** Start IBM Security Advisory 702 *****] IBM Lotus Notes mwsr.dll DOC Attachment Viewer Buffer Overflow by Tan Chew Keong Release Date: 2007-10-23 Summary A vulnerability has been found in IBM Lotus Notes. When exploited, the vulnerability allows execution of arbitrary code when the user views a malicious Microsoft Word for DOS file. Tested Versions Lotus Notes 7.0.2 (Trial) with mwsr.dll version 7.0.20.6302 Build 20031024 Details This advisory discloses a buffer overflow vulnerability in IBM Lotus Notes. The stack-based buffer overflow occurs when the user views a Microsoft Word for DOS file (that was received as an email attachment) from within Lotus Notes. It is possible to exploit the buffer overflow to execute arbitrary code. In order to exploit this vulnerability, the user must be convinced to view the Microsoft Word for DOS (.doc) file from within Lotus Notes. The buffer overflow occurs within mwsr.dll when parsing a Microsoft Word for DOS (.doc) file. In the DLL, the "memcpy()" function is used to copy the contents read from the Word file into a fixed-size 108-byte stack buffer. The "memcpy()" function expects a length value to be supplied to determine the number of bytes that will be copied into the destination buffer. In this case, the length value used in the copy operation is a byte-value that was read from the Word file. This byte is treated as unsigned, and thus, allows 255 bytes to be copied in the 108-byte stack buffer. This has been successfully exploited to cause a stack-based buffer overflow that allows arbitrary code execution via a specially-crafted Word file. The Ollydbg screen capture below shows that the vulnerability can be used to overwrite the saved EIP. POC / Test Code The following POC Microsoft Word for DOS (DOC) file will exploit the vulnerability in IBM Lotus Notes to execute the harmless calculator (calc.exe). The POC has been successfully tested on English Windows XP SP2 with Lotus Notes version 7.0.2. notes702mwsr-XPSP2.doc (exploits the vulnerability to run calc.exe via Buffer Overflow). notes702mwsr-CRASH.doc (exploits the vulnerability to crash Lotus Notes via Buffer Overflow). Instructions: Create a new email in Lotus Notes and attach the POC file to the email. Save the email as draft or send the email to yourself. Open the email and right click on the POC attachment. (This will popup the context menu). Choose "View" in the context menu to view the POC file. Successful exploit will run calculator "calc.exe" or crash Lotus Notes. Patch / Workaround Update to version 7.0.3. See vendor's technote for more information. Disclosure Timeline 2007-01-21 - Vulnerability Discovered. 2007-01-26 - Initial Vendor Notification. 2007-01-26 - Vulnerability description and POC files sent to vendor. 2007-01-29 - Received notification (from vendor) that SPR# KEMG6XTLDN has been assigned. 2007-03-28 - Received notification (from vendor) that fixes will be included in version 7.0.3 maintenance release. 2007-10-23 - Vendor Released Fixed Version. 2007-10-23 - Public Release. [***** End IBM Security Advisory 702 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of IBM for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) S-019: DHCP Vulnerability S-020: Cisco Unified Communications Web-based Management Vulnerability S-021: HP-UX Running OpenSSL Vulnerability S-022: Mozilla Products Vulnerabilities S-023: RealPlayer Playlist Vulnerability S-024: libpng Security Update S-025: reprepro Vulnerability S-026: xfce4-terminal Vulnerability S-027: t1lib Vulnerability S-028: Vulnerability in Java Runtime Environment Virtual Machine