possible segfault on snort-2.9.x.x
"Nilesh K. Patel via Snort-devel" <[email protected]> Thu, 16 Aug 2018 13:29:35 +0000
| Newsgroups | gmane.comp.security.ids.snort.devel |
|---|---|
| Message-ID | <LNXP265MB1323B191477625B0033FF5F6BF3E0@LNXP265MB1323.GBRP265.PROD.OUTLOOK.COM> |
Discover possible segfault in http pre-processor. Please consider below patch to resolve.
--- a/src/preprocessors/HttpInspect/include/hi_eo_log.h
+++ b/src/preprocessors/HttpInspect/include/hi_eo_log.h
@@ -30,7 +30,7 @@
static inline int hi_eo_generate_event(HI_SESSION *Session, int iAlert)
{
if(iAlert && !(Session->norm_flags & HI_BODY) &&
- !Session->server_conf->no_alerts)
+ Session->server_conf && !Session->server_conf->no_alerts)
{
return HI_BOOL_TRUE;
}
Flow from "checkCacheFlowTimeout" function, there is a chance that server_conf is null as Session pointer is pointing to static variable and current processing packet is non http.
_______________________________________________
Snort-devel mailing list
[email protected]
https://lists.snort.org/mailman/listinfo/snort-devel
Please visit http://blog.snort.org for the latest news about Snort!