SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

Vulnerability Note VU#139129

Heap overflow in Snort "stream4" preprocessor

Overview

The Snort "stream4" preprocessor module contains a vulnerability that allows remote attackers to execute arbitrary code with the privileges of the user running Snort, typically root.

I. Description

Researchers at CORE Security Technologies have discovered a remotely exploitable heap overflow in the Snort "stream4" preprocessor module. This module allows Snort to reassemble TCP packet fragments for further analysis.

To exploit this vulnerability, an attacker must disrupt the state tracking mechanism of the preprocessor module by sending a series of packets with crafted sequence numbers. This causes the module to bypass a check for buffer overflow attempts and allows the attacker to insert arbitrary code into the heap.

For further information, please read the Core Security Technologies Advisory located at

This vulnerability affects Snort versions 1.8.x, 1.9.x, and 2.0 prior to RC1.

II. Impact

This vulnerability allows remote attackers to execute arbitrary code with the privileges of the user running Snort, typically root. Please note that it is not necessary for the attacker to know the IP address of the Snort device they wish to attack; merely sending malicious traffic where it can be observed by an affected Snort sensor is sufficient to exploit these vulnerabilities.

III. Solution

Upgrade to Snort 2.0

This vulnerability is addressed in Snort version 2.0, which is available at

Binary-only versions of Snort are available from

Disable the "stream4" preprocessor module

Sites that are unable to immediately upgrade affected Snort sensors may prevent exploitation of this vulnerability by commenting out the affected preprocessor module in the "snort.conf" configuration file. To do this, comment out the following line:
    preprocessor stream4_reassemble

After commenting out the affected module, send a SIGHUP signal to the affected Snort process to update the configuration. Note that disabling this module may have adverse effects on a sensor's ability to correctly process TCP packet fragments. In particular, disabling this module will prevent the Snort sensor from detecting a variety of IDS evasion attacks.

Block outbound packets from Snort IDS systems

You may be able limit an attacker's capabilities if the system is compromised by blocking all outbound traffic from the Snort sensor. While this workaround will not prevent exploitation of the vulnerability, it may make it more difficult for the attacker to create a useful exploit.

Systems Affected

VendorStatusDate NotifiedDate Updated
Apple Computer Inc.Not Vulnerable17-Apr-2003
BSDIUnknown17-Apr-2003
ConectivaNot Vulnerable19-May-2003
Cray Inc.Unknown17-Apr-2003
Data GeneralUnknown17-Apr-2003
DebianVulnerable19-May-2003
FreeBSDUnknown17-Apr-2003
FujitsuNot Vulnerable19-May-2003
Gentoo LinuxVulnerable19-May-2003
Guardian Digital Inc. Vulnerable19-May-2003
Hewlett-Packard CompanyUnknown17-Apr-2003
IBMUnknown17-Apr-2003
Ingrian NetworksNot Vulnerable17-Apr-2003
MandrakeSoftVulnerable19-May-2003
MontaVista SoftwareUnknown17-Apr-2003
NEC CorporationUnknown17-Apr-2003
NetBSDNot Vulnerable17-Apr-2003
NokiaUnknown17-Apr-2003
OpenBSDUnknown17-Apr-2003
Openwall GNU/*/LinuxUnknown17-Apr-2003
Red Hat Inc.Not Vulnerable17-Apr-2003
SequentUnknown17-Apr-2003
SGINot Vulnerable17-Apr-2003
SmoothWallVulnerable21-Apr-2003
SnortVulnerable17-Apr-2003
Sony CorporationUnknown17-Apr-2003
Sun Microsystems Inc.Unknown17-Apr-2003
SuSE Inc.Unknown17-Apr-2003
The SCO Group (SCO Linux)Unknown17-Apr-2003
The SCO Group (SCO UnixWare)Unknown17-Apr-2003
UnisysUnknown17-Apr-2003
Wind River Systems Inc.Unknown17-Apr-2003
WirexUnknown17-Apr-2003

References


http://www.coresecurity.com/common/showdoc.php?idx=313&idxseccion=10
http://www.ciac.org/ciac/bulletins/n-078.shtml
http://www.snort.org/dl/snort-2.0.0.tar.gz
http://www.secunia.com/advisories/8605/

Credit

This vulnerability was discovered by Bruce Leidl, Juan Pablo Martinez Kuhn, and Alejandro David Weil of Core Security Technologies.

This document was written by Jeffrey P. Lanza.

Other Information

Date Public:2003-04-15
Date First Published:2003-04-16
Date Last Updated:2003-05-19
CERT Advisory:CA-2003-13
CVE-ID(s):CAN-2003-0209
NVD-ID(s):CAN-2003-0209
US-CERT Technical Alerts: 
Metric:30.99
Document Revision:22

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Copyright 2003 Carnegie Mellon University
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader