Protect yourself against future threats.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2005.0976 -- [Win][UNIX/Linux] Ethereal OSPF Protocol Dissector Buffer Overflow Vulnerability 12 December 2005 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: Ethereal 0.10.12 and prior Publisher: iDEFENSE Operating System: UNIX variants (UNIX, Linux, OSX) Windows Impact: Execute Arbitrary Code/Commands Denial of Service Access: Remote/Unauthenticated CVE Names: CVE-2005-3651 Original Bulletin: http://www.idefense.com/application/poi/display?id=349 - --------------------------BEGIN INCLUDED TEXT-------------------- Ethereal OSPF Protocol Dissector Buffer Overflow Vulnerability iDefense Security Advisory 12.09.05 www.idefense.com/application/poi/display?id=349&type=vulnerabilities December 9, 2005 I. BACKGROUND Ethereal is a full featured open source network protocol analyzer. For more information, see http://www.ethereal.com/ II. DESCRIPTION Remote exploitation of an input validation vulnerability in the OSPF protocol dissectors within Ethereal, as included in various vendors operating system distributions, could allow attackers to crash the vulnerable process or potentially execute arbitrary code. The affected Ethereal component is used to analyse Open Shortest Path First (OSPF) Interior Gateway Protocol (IGP), as specified in RFC-2178. The vulnerability specifically exists due to no bounds checking being performed in the dissect_ospf_v3_address_prefix() function. This function takes user-supplied binary data and attempts to convert it into a human readable string. This function uses a fixed length buffer on the stack to store the constructed string but performs no checks on the length of the input. If the generated output length from the input exceeds the size of the buffer, a stack-based overflow occurs. III. ANALYSIS Successful exploitation allows remote attackers to perform a DoS against a running instance of Ethereal and may, under certain conditions, potentially allow the execution of arbitrary code. As the overflow string is generated from a format string converting binary values into their hexadecimal (base 16) equivalent characters, it can contain only a limited subset of all possible characters, and the length of an overflow is only able to be controlled to within the three characters. This may prevent exploit ability on some platforms; however, it may be possible that these constraints will not prevent exploitation on others. IV. DETECTION iDefense has confirmed the existence of this vulnerability in the ethereal-0.10.12 RPM from Red Hat Fedora Core 3. It is suspected that previous versions containing the OSPF dissector code are also vulnerable. V. WORKAROUND Disable the OSPF packet dissector in Ethereal by performing the following actions as the user invoking Ethereal, typically root. Create the .ethereal directory: # mkdir ~/.ethereal You can safely ignore the following error: mkdir: cannot create directory '/root/.ethereal': File exists Add the OSPF dissector to the list of protocols to ignore. # echo ospf >> ~/.ethereal/disabled_protos This workaround will prevent Ethereal from parsing the contents of OSPF packets, which prevents exposure to the vulnerability. VI. VENDOR RESPONSE A source patch is available from the main ethereal SVN Repository: http://anonsvn.ethereal.com/viewcvs/viewcvs.py/trunk/epan/dissectors/ packet-ospf.c?rev=16507&view=markup VII. CVE INFORMATION The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2005-3651 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org), which standardizes names for security problems. VIII. DISCLOSURE TIMELINE 11/14/2005 Initial vendor notification 11/14/2005 Initial vendor response 12/09/2005 Public disclosure IX. CREDIT The discoverer of this vulnerability wishes to remain anonymous. Get paid for vulnerability research http://www.iDefense.com/poi/teams/vcp.jsp Free tools, research and upcoming events http://labs.iDefense.com X. LEGAL NOTICES Copyright © 2005 iDefense, Inc. Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDefense. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please email customerservice@iDefense.com for permission. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information. - --------------------------END INCLUDED TEXT-------------------- You have received this e-mail bulletin as a result of your organisation's registration with AusCERT. The mailing list you are subscribed to is maintained within your organisation, so if you do not wish to continue receiving these bulletins you should contact your local IT manager. If you do not know who that is, please send an email to auscert@auscert.org.au and we will forward your request to the appropriate person. NOTE: Third Party Rights This security bulletin is provided as a service to AusCERT's members. As AusCERT did not write the document quoted above, AusCERT has had no control over its content. The decision to follow or act on information or advice contained in this security bulletin is the responsibility of each user or organisation, and should be considered in accordance with your organisation's site policies and procedures. AusCERT takes no responsibility for consequences which may arise from following or acting on information or advice contained in this security bulletin. NOTE: This is only the original release of the security bulletin. It may not be updated when updates to the original are made. If downloading at a later date, it is recommended that the bulletin is retrieved directly from the author's website to ensure that the information is still current. Contact information for the authors of the original document is included in the Security Bulletin above. If you have any questions or need further information, please contact them directly. Previous advisories and external security bulletins can be retrieved from: http://www.auscert.org.au/render.html?cid=1980 If you believe that your computer system has been compromised or attacked in any way, we encourage you to let us know by completing the secure National IT Incident Reporting Form at: http://www.auscert.org.au/render.html?it=3192 =========================================================================== Australian Computer Emergency Response Team The University of Queensland Brisbane Qld 4072 Internet Email: auscert@auscert.org.au Facsimile: (07) 3365 7031 Telephone: (07) 3365 4417 (International: +61 7 3365 4417) AusCERT personnel answer during Queensland business hours which are GMT+10:00 (AEST). On call after hours for member emergencies only. =========================================================================== -----BEGIN PGP SIGNATURE----- Comment: http://www.auscert.org.au/render.html?it=1967 iQCVAwUBQ5zOqCh9+71yA2DNAQJS2QP9HAgXifzSMJO9RtfGUo0K2kBjxiQeqWQS 4W7FMADsuwWWDM2wxtWPBDinKLPBYLPsk1BB4qHQNOOP1xweKH47DZ979HoHus5h xzThvavyjIEUSRU0j55hskedUs14eVXjP3pKF2xWfYHjX9WhgdlbLPjbhmys+Fl+ uTqjEWTWM4Y= =yJN2 -----END PGP SIGNATURE-----