Snort mailing list archives

Re: Segfault using react


From: Steven Sturges <ssturges () sourcefire com>
Date: Tue, 03 Jan 2012 15:09:32 -0500

Currently, only one %s is allowed.

Cheers
-steve

On 1/3/12 2:40 PM, snort user wrote:
Hi Cleber,

Could you try on snort 2.9.1.2?

Thanks




On Tue, Jan 3, 2012 at 2:14 PM, CleBeer<clebeer () gmail com>  wrote:
Hello guys,

I'm facing a strange segfault in snort with react.

If I set the tag "%s" to show rule message on the html file more than 1 time
the snort crashes with Segmentation Fault.

Here a sample of the html working fine:

----
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\r\n"
\\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\";>
<html xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<title>Access Denied</title>
</head>
<body  bgcolor='white'>
<font color="FF3300" face="arial">
<h1><p align="center">ACCESS DENIED</h1></p>
<p align="center"><img src="http://www.xxx.net/logo.gif"; alt="Logo"></p>
<h3><p align="center">Cantact your security team<a
href="mailto:security () xxx net?Subject=Acces%20Denied:%s">security () xxx net</a></p></h3>
</body>
</html>
---

if I add the line
Rule: %s
snort crashes

Here the html crashing snort:

-----
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\r\n"
\\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\";>
<html xmlns=\"http://www.w3.org/1999/xhtml\"; xml:lang=\"en\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<title>Access Denied</title>
</head>
<body  bgcolor='white'>
<font color="FF3300" face="arial">
<h1><p align="center">ACCESS DENIED</h1></p>
<p align="center"><img src="http://www.xxx.net/logo.gif"; alt="Logo"></p>
<h3><p align="center">Cantact your security team<a
href="mailto:security () xxx net?Subject=Acces%20Denied:%s
%s">security () xxx net</a></p></h3>
<p>Rule:%s</p>
</body>
</html>
----


Some one here facing the same problem?


My snort version is:
# snort -V

    ,,_     -*>  Snort!<*-
   o"  )~   Version 2.9.2 IPv6 GRE (Build 75)
    ''''    By Martin Roesch&  The Snort Team:
http://www.snort.org/snort/snort-team
            Copyright (C) 1998-2011 Sourcefire, Inc., et al.
            Using libpcap version 1.1.1
            Using PCRE version: 8.12 2011-01-15
            Using ZLIB version: 1.2.3.4




cheers

--
-----------------------------
Cleber S. Brandão
Mob. +55 11 9333-9429

clebeerpub.blogspot.com
www.snort.org.br
   ,, _
  o"    )~
    '' ''
http://www.linkedin.com/in/clebeer
-----------------------------------

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel

Please visit http://blog.snort.org for the latest news about Snort!


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel

Please visit http://blog.snort.org for the latest news about Snort!


Current thread: