forked from vileamsfff/snort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
17493 lines (15379 loc) · 716 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2014-07-09 Joel Cornett <jocornet@cisco.com>
Snort 2.9.6.2
* src/build.h:
updating build number to 77
* src/: encode.c, encode.h :
Fixed handling of ICMPv6 traffic.
* src/preprocessors/Stream5/snort_stream5_tcp.c :
Fixed inline stream reassembly during file processing.
* src/preprocessors/spp_perfmonitor.c :
Fixed race condition in performance monitor.
* src/preprocessors/:
snort_httpinspect.c,
HttpInspect/client/hi_client.c,
HttpInspect/include/hi_client.h,
HttpInspect/include/hi_ui_config.h,
HttpInspect/user_interface/hi_ui_config.c :
Added the ability to specify additional custom 'x-forwarder-for'
http field names. A new http inspection configuration element is used to
specify a set of field names and their respective precedence order.
* src/preprocessors/Stream5/snort_stream5_session.c :
Add cache flow timeout for ip.
2014-03-04 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.6.1
* src/build.h:
updating build number to 56
* src/Makefile.am, src/dump.c, src/dump.h, src/snort.c,
configure.in, tools/control/Makefile.am,
tools/control/README.snort_dump_packets_control,
tools/control/sfcontrol.c, tools/control/snort_dump_packets.c:
Added a control command (4) to snort that takes a filename and bpf.
The instance number (-G <n>) is added to the filename as <filename>.<n>.
All packets that match the given bpf are written to the pcap file.
Added a control program for dump and a README to describe. Only compile
the dump capability if control socket is enabled.
* src/dynamic-preprocessors/sdf/sdf_pattern_match.c:
Update FindPiiRecursively to return the partial index if the child
node matches partially.
2014-02-27 Steven Sturges <ssturges@sourcefire.com>
* src/encode.c:
icmp header length now determined by layer size rather than
automatic being 8 bytes.
* src/preprocessors/perf-base.c:
pkt_stats.pkts_recv can no longer become a negative number
* doc/: snort_manual.pdf, snort_manual.tex:
Modified descriptions of urilen, dsize, and flags rule options.
* doc/snort_manual.pdf, doc/snort_manual.tex, src/sfutil/sfPolicy.c:
Added check in binding mappings to prevent Snort from loading binding
policy_ids > 4095, having it reject the configuration on load.
Updated documentation to include config binding policy_id.
* src/detection-plugins/: sp_byte_check.c, sp_byte_extract.h,
sp_byte_jump.c, sp_isdataat.c, sp_pattern_match.c:
Modified error outputs to include the offending rule option.
2013-12-30 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.6.0
* src/build.h:
updating build number to 47
* doc/README.file, doc/README.file_ips,
etc/file_magic.conf, etc/Makefile.am:
Added file_magic.conf and fixed a few typos. Thanks to Joshua Kinard for
pointing them out.
* doc/snort_manual.tex:
Update snort team members
* src/detection-plugins/sp_file_type.h,
src/dynamic-preprocessors/libs/sf_preproc_info.h,
tools/file_server/file_server.c:
Clean up copyright and attribution.
* src/dynamic-preprocessors/sdf/spp_sdf.c:
Fix seconndary check for reassembled packets.
* doc/: README.GTP, README.PerfProfiling, README.dcerpc2,
README.file, README.frag3, README.ftptelnet, README.http_inspect,
README.imap, README.multipleconfigs, README.normalize,
README.pop, README.reload, README.reputation, README.rpc_decode,
README.sfportscan, README.sip, README.unified2, USAGE, WISHLIST,
snort_manual.pdf, snort_manual.tex, README.SMTP, README.counts,
README.asn1, README.active, README, NEWS, INSTALL:
Corrected typos in documentation. Thanks to Mahendra Ladhe for
pointing out the mistakes and providing a patch.
* src/: file-process/file_capture.c,
file-process/file_mime_process.c,
dynamic-preprocessors/imap/snort_imap.c,
dynamic-preprocessors/smtp/snort_smtp.c,
dynamic-preprocessors/file/file_inspect_config.c,
dynamic-preprocessors/pop/snort_pop.c,
sfutil/sf_email_attach_decode.h:
Enable detetion on all file data
* src/sfutil/: sfxhash.c, sfxhash.h:
Fix alignment of sfxhash node on sparc. Thanks to Markus Lude.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Identify EOF on single segment PDU transimssions.
* src/dynamic-preprocessors/dcerpc2/dce2_memory.c:
Avoid checking memcap for DCE/RPC configuration data.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Tweak retransmit handling to ensure full right overlap condition holds
2013-11-22 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.6.0.rc
* src/build.h: updating build number to 43
* configure.in, doc/README.ha, doc/snort_manual.pdf,
doc/snort_manual.tex, doc/Makefile.am:
Add Stream5 HA documentation and mark --enable-ha and
--enable-side-channel as experimental.
* rpm/snort.spec:
Install snort_control, u2boat, u2spewfoo from spec file.
Thanks to Bradley Turnbough for mentioning it.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
using sequence number overlapping to trigger retransmission
handler. This fixed issue on file blocking.
* src/dynamic-preprocessors/: pop/pop_log.c, smtp/smtp_log.c,
imap/imap_log.c:
avoid mail decoding prepocessor alerts when they not enabled
in config.
* doc/snort_manual.tex,
src/: active.c, active.h, decode.c, detect.c, fpdetect.c,
detection-plugins/sp_react.c,
dynamic-plugins/sf_dynamic_plugins.c,
file-process/file_resume_block.c, file-process/file_service.c,
output-plugins/spo_alert_fast.c, output-plugins/spo_unified2.c,
preprocessors/spp_bo.c, preprocessors/spp_frag3.c,
preprocessors/Stream5/snort_stream5_ip.c,
preprocessors/Stream5/snort_stream5_tcp.c,
preprocessors/Stream5/snort_stream5_udp.c:
alerts get wdrop when active is suspended; code for cdrop is ready
but disabled
* src/: file-process/file_api.h, file-process/file_resume_block.c,
file-process/file_service.c, file-process/libs/file_lib.h,
dynamic-preprocessors/file/file_agent.c:
Add file id to file API callbacks to support multiple file contexts.
* preproc_rules/decoder.rules, src/decode.c, src/generators.h:
Validate authentication headers. New decoder rules (116:465 and 116:466).
* doc/snort_manual.pdf, doc/snort_manual.tex,
src/detection-plugins/sp_icmp_code_check.c:
Added data validation checks to the icode rule option. The parser
phase will now throw fatal errors for illegal values.
Update manual to reflect the additional data validation.
* src/preprocessors/Stream5/: snort_stream5_ip.c,
snort_stream5_udp.c:
Force block for block rule in inline test mode.
* src/: dynamic-preprocessors/imap/snort_imap.c,
dynamic-preprocessors/pop/snort_pop.c,
dynamic-preprocessors/smtp/snort_smtp.c,
preprocessors/stream_api.h,
preprocessors/Stream5/snort_stream5_tcp.c:
Don't put gaps in reassembled packets
* src/: preprocessors/Stream5/snort_stream5_session.c,
side-channel/sidechannel.c:
The global list in the session cache is ordered from MRU (head) to
LRU (tail), so correctly walk backward rather than forward from the
LRU looking for sessions to time out. Clean up compiler warning in
Side Channel.
* src/file-process/: libs/file_lib.c, file_api.h, file_capture.c,
file_service.c, file_service.h:
Add multiple file contexts support for file API.
* src/: dynamic-preprocessors/ftptelnet/ftpp_si.c,
dynamic-preprocessors/ftptelnet/ftpp_si.h,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.h,
preprocessors/Stream5/snort_stream5_tcp.c:
Add EndOfFile stream event callback. Remove EOF logic from
FTP/Preprocessor in lieu of new callback.
* src/: file-process/file_service.c,
file-process/file_service_config.c,
file-process/file_service_config.h, snort.c:
make sure file configuration is initialized during reload.
2013-10-18 Hui Cao <hcao@sourcefire.com>
Snort 2.9.6.0.beta
* doc/: Makefile.am, README.file, README.file_ips:
Add readme for experimental file type ips rule keywords.
* src/detection-plugins/sp_icmp_code_check.c:
Allow a negative value in the ICMP icode x<>y range check. This
permits the rule to include a check for zero
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Disable detection when the TCP connection was already closed.
* src/: dynamic-preprocessors/ftptelnet/ftpp_si.h,
dynamic-preprocessors/ftptelnet/pp_ftp.c,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
file-process/file_api.h:
Fix FTP-Data file processing.
* src/snort_bounds.h:
Avoid assertion for zero size memory copy
* src/: dynamic-plugins/sf_dynamic_plugins.c,
detection-plugins/sp_react.c:
Only inject response page when session is established.
* src/dynamic-preprocessors/smtp/smtp_log.h,
src/dynamic-preprocessors/smtp/snort_smtp.c,
src/dynamic-preprocessors/smtp/snort_smtp.h,
preproc_rules/preprocessor.rules, etc/gen-msg.map:
Add a new preprocessor alert to detect Cyrus SASL authentication
attack.
* src/dynamic-preprocessors/ssh/spp_ssh.c:
Set_reassembly to ABSOLUTE only if the traffic is SSH.
Statefully process ssh version/ssh key exchange
init/key exchange and/or encrypted data within a single
reassembled packet. Thanks to Florian Westphal for reporting this.
* src/file-process/file_mime_process.c:
For IMAP, the MIME and message will be inside fetch
body, which will be end at ")".
* src/: dynamic-preprocessors/dns/spp_dns.c,
dynamic-preprocessors/ssh/spp_ssh.c,
Change preprocessor reassembly policy; Changed SSH preprocessor state
transition based on the dir rather than both.
* src/: preprocessors/Stream5/snort_stream5_tcp.c:
Ignore the gap when turning on reassembly dynamically on the very
first packet of the session.
* src/dynamic-preprocessors/dnp3/spp_dnp3.c:
Fix the incorrect mempool warnings. Thanks to Bram for reporting this
* doc/snort_manual.pdf, doc/snort_manual.tex, configure.in,
src/snort.c, src/util.c:
Trim freed memory before and after configuration reload.
* src/: dynamic-preprocessors/imap/snort_imap.c,
dynamic-preprocessors/pop/snort_pop.c,
dynamic-preprocessors/smtp/snort_smtp.c,
file-process/file_mime_process.c,
sfutil/sf_email_attach_decode.c:
Allow 7bit decoding of binary file attachments.
* src/dynamic-preprocessors/sdf/: spp_sdf.c, spp_sdf.h:
Avoid partial rule tree match during reload.
* src/tag.c:
Fix boundary check error so that the global tagged packet limit
doesn't allow an extra tag.
* src/: file-process/file_mime_process.h, file-process/file_api.h,
file-process/file_mime_process.c, file-process/file_service.c,
dynamic-preprocessors/imap/snort_imap.c,
dynamic-preprocessors/imap/spp_imap.c,
dynamic-preprocessors/smtp/snort_smtp.c,
dynamic-preprocessors/pop/snort_pop.c,
dynamic-preprocessors/pop/spp_pop.c:
Add simple PAF support for POP and IMAP.
* src/: util.c, util.h, sfutil/sf_ip.c, sfutil/sf_ip.h: Bugs
Add sfip_convert_ip_text_to_binary() to enforce platform agnostic
IPv4 syntax. Make sure xatou(), xatol(), and xatoup() return values
within specified range
* doc/snort_manual.tex:
Update the document to include the '<=' and '>=' operators to
the byte_test command
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Make sure INTERNAL_EVENT_SESSION_ADD event only in the
ESTABLISHED state.
* src/sfutil/sf_email_attach_decode.c:
Check the QP encoding string is valid to avoid decoding end of line
incorrectly.
* src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:
Tweak config output to correspond to config input.
Thanks to Reinoud Koornstra for the suggestion.
* src/preprocessors/Stream5/: snort_stream5_icmp.c,
snort_stream5_ip.c, snort_stream5_tcp.c, snort_stream5_udp.c:
dynamic-preprocessors/pop/snort_pop.c,
dynamic-preprocessors/smtp/snort_smtp.c,
dynamic-preprocessors/ssl/spp_ssl.c,
encode.c, dynamic-preprocessors/dcerpc2/dce2_cl.c,
dynamic-preprocessors/dcerpc2/dce2_session.h,
dynamic-preprocessors/dcerpc2/snort_dce2.c,
dynamic-preprocessors/dns/spp_dns.c,
dynamic-preprocessors/imap/snort_imap.c:
preprocessors/spp_rpc_decode.c, preprocessors/spp_stream5.c,
preprocessors/stream_api.h, preprocessors/stream_expect.c:
Handle out of order SSL handshake in SMTP.
Thanks to Bram for the reporting this.
* src/preprocessors/perf-base.c:
Update the header printed at top of now file.
* src/preprocessors/perf-base.c:
Change name of stat from Blocked Packets to Block Verdicts.
* src/preprocessors/Stream5/snort_stream5_session.c:
Timeout a session when session timeout reaches instead of waiting for
session nominal timeout.
* configure.in, src/plugbase.c, src/rule_option_types.h,
src/snort.c, src/detection-plugins/Makefile.am,
src/detection-plugins/: sp_file_type.c, sp_file_type.h,
src/detection-plugins/detection_options.c,
src/dynamic-preprocessors/Makefile.am,
src/file-process/Makefile.am, src/file-process/file_api.h,
src/file-process/file_service.c,
src/file-process/file_service_config.c,
src/file-process/file_service_config.h,
src/file-process/libs/Makefile.am,
src/file-process/libs/file_config.c,
src/file-process/libs/file_config.h,
src/file-process/libs/file_lib.c,
src/file-process/libs/file_lib.h,
src/preprocessors/spp_stream5.c, tools/Makefile.am,
doc/: README.file, README.file_ips, Makefile.am:
File inspection keywords for IPS rules.
* src/dynamic-preprocessors/sdf/: sdf_pattern_match.c,
sdf_pattern_match.h, spp_sdf.c, spp_sdf.h:
Add stateful pattern match of sdf patterns across packets.
* mkinstalldirs, doc/snort_manual.tex, src/detect.c,
src/detection_util.h, src/fpdetect.c, src/parser.c, src/tag.c,
src/tag.h, src/target-based/sf_attribute_table.y,
tools/u2spewfoo/u2spewfoo.c:
Support single session capture via tag rule option.
Log all packets to the same place as original alert.
Enable tagging on pass rules.
* src/: dynamic-preprocessors/imap/snort_imap.c,
dynamic-preprocessors/imap/snort_imap.h,
dynamic-preprocessors/pop/snort_pop.c,
dynamic-preprocessors/pop/snort_pop.h,
dynamic-preprocessors/smtp/snort_smtp.c,
dynamic-preprocessors/smtp/snort_smtp.h, file-process/file_api.h,
file-process/file_mime_process.c, preprocessors/str_search.c,
preprocessors/str_search.h, sfutil/bnfa_search.c:
Add Stateful mime boundary search when split between packets.
* src/preprocessors/HttpInspect/client/hi_client.c:
Change the uri search to start from method end instead of the start
of payload.
* configure.in, doc/README.file, doc/snort_manual.pdf,
src/parser.c, src/preprocids.h, src/snort.c, src/util.c,
src/detection-plugins/.cvsignore,
src/dynamic-examples/Makefile.am,
src/dynamic-plugins/sf_engine/.cvsignore,
src/dynamic-preprocessors/Makefile.am,
src/dynamic-preprocessors/file/Makefile.am,
src/dynamic-preprocessors/file/file_agent.c,
src/dynamic-preprocessors/file/file_agent.h,
src/dynamic-preprocessors/file/file_event_log.c,
src/dynamic-preprocessors/file/file_event_log.h,
src/dynamic-preprocessors/file/file_inspect_config.c,
src/dynamic-preprocessors/file/file_inspect_config.h,
src/dynamic-preprocessors/file/file_sha.c,
src/dynamic-preprocessors/file/file_sha.h,
src/dynamic-preprocessors/file/sf_file.dsp,
src/dynamic-preprocessors/file/spp_file.c,
src/dynamic-preprocessors/file/spp_file.h,
src/dynamic-preprocessors/sf_dynamic_initialize/sf_dynamic_initialize.dsp,
src/file-process/Makefile.am, src/file-process/circular_buffer.c,
src/file-process/circular_buffer.h, src/file-process/file_api.h,
src/file-process/file_capture.c, src/file-process/file_capture.h,
src/file-process/file_mempool.c, src/file-process/file_mempool.h,
src/file-process/file_resume_block.c,
src/file-process/file_service.c, src/file-process/file_service.h,
src/file-process/file_service_config.c,
src/file-process/file_service_config.h,
src/file-process/file_stats.c, src/file-process/file_stats.h,
src/file-process/libs/file_config.c,
src/file-process/libs/file_config.h,
src/file-process/libs/file_identifier.c,
src/file-process/libs/file_identifier.h,
src/file-process/libs/file_lib.c,
src/file-process/libs/file_lib.h,
src/file-process/libs/file_sha256.h, tools/Makefile.am,
tools/file_server/Makefile.am,
tools/file_server/README.file_server,
tools/file_server/file_server.c:
Add file capture feature and introduce file inspect preprocessor
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Parse error if there are missing direction specifiers.
Thanks to Bram Fabeg for the report.
* src/ipv6_port.h:
Remove duplicate macro for GET_ORIG_IPH_PROTO.
* doc/: README.decode, README.gre, README.mpls, snort_manual.pdf,
snort_manual.tex:
Update manual and other docs related to tunneling.
Thanks to Jason Poley for noting it.
* src/parser.c:
Not so silently skip duplicate service metadata.
* src/: log.c, mempool.c, parser.c, snort.c, util.c,
detection-plugins/sp_ip_tos_check.c,
detection-plugins/sp_pattern_match.c,
detection-plugins/sp_replace.c, detection-plugins/sp_session.c,
detection-plugins/sp_tcp_win_check.c,
dynamic-preprocessors/dns/spp_dns.c,
dynamic-preprocessors/ftptelnet/pp_ftp.c,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
dynamic-preprocessors/sdf/sdf_pattern_match.c,
output-plugins/spo_log_ascii.c, output-plugins/spo_log_tcpdump.c,
preprocessors/HttpInspect/utils/hi_paf.c,
preprocessors/Stream5/snort_stream5_tcp.c:
Replace obsolete bzero and index calls. Credits to Bill Parker
* src/dynamic-preprocessors/: smtp/snort_smtp.c, ssl/spp_ssl.c,
libs/ssl.c, libs/ssl.h:
Check for SSL type only when the SSL handshake is not complete.
Don't check for type in SSL data.
Thanks to Bram Fabeg for reporting this.
* src/preprocessors/: HttpInspect/server/hi_server.c,
HttpInspect/server/hi_server_norm.c, Stream5/snort_stream5_tcp.c:
Only check charset bom once per response body;
Only set charset once per charset=
* src/profiler.c:
Fix issue when reading pcaps from command line and using multiple
policies and --pcap-reset.
* src/detection-plugins/detection_options.c:
Don't count RTN perf time in OTN perf time.
Credits to Reinoud for reporting this.
* doc/README.flowbits:
Fix typo in flowbits isnotset examples
* src/snort.c, src/snort.h, src/util.c, snort.8,
doc/snort_manual.pdf, doc/snort_manual.tex:
Add a command line switch --no-interface-pidfile to snort.
* src/preprocessors/: spp_stream5.c, Stream5/stream5_common.h:
Updated Stream's exit stats to use 'filtered' instead of dropped.
* src/: detection_util.h, dynamic-preprocessors/sip/spp_sip.c:
Don't set sip/http buffers to null
* src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c:
Return mismatch if requested http buffer was not set
* src/snort.c: Bugs Fixed:
Capture packet data for sigabrt and sigbus
* doc/README.dcerpc2, doc/snort_manual.pdf, doc/snort_manual.tex,
etc/gen-msg.map, preproc_rules/preprocessor.rules, src/active.c,
src/active.h, src/encode.c, src/encode.h, src/generators.h,
src/dynamic-plugins/sf_dynamic_plugins.c,
src/dynamic-plugins/sf_dynamic_preprocessor.h,
src/dynamic-preprocessors/dcerpc2/dce2_co.c,
src/dynamic-preprocessors/dcerpc2/dce2_config.c,
src/dynamic-preprocessors/dcerpc2/dce2_config.h,
src/dynamic-preprocessors/dcerpc2/dce2_event.c,
src/dynamic-preprocessors/dcerpc2/dce2_event.h,
src/dynamic-preprocessors/dcerpc2/dce2_memory.c,
src/dynamic-preprocessors/dcerpc2/dce2_memory.h,
src/dynamic-preprocessors/dcerpc2/dce2_smb.c,
src/dynamic-preprocessors/dcerpc2/dce2_smb.h,
src/dynamic-preprocessors/dcerpc2/dce2_stats.h,
src/dynamic-preprocessors/dcerpc2/snort_dce2.c,
src/dynamic-preprocessors/dcerpc2/snort_dce2.h,
src/dynamic-preprocessors/dcerpc2/spp_dce2.c,
src/dynamic-preprocessors/dcerpc2/spp_dce2.h,
src/dynamic-preprocessors/dcerpc2/includes/smb.h,
src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
src/dynamic-preprocessors/imap/snort_imap.c,
src/dynamic-preprocessors/pop/snort_pop.c,
src/dynamic-preprocessors/smtp/snort_smtp.c,
src/file-process/file_api.h,
src/file-process/file_mime_process.c,
src/file-process/file_service.c,
src/file-process/libs/file_identifier.c,
src/file-process/libs/file_identifier.h,
src/file-process/libs/file_lib.c,
src/file-process/libs/file_lib.h,
src/preprocessors/snort_httpinspect.c,
src/preprocessors/Stream5/snort_stream5_tcp.c:
Add SMB file support
2013-10-18 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.5.6
* src/build.h:
updating build number to 208
* src/preprocessors/Stream5/snort_stream5_tcp.c:
add NULL check for preprocessors that check for PAF before
they check for any actual tcp session
* src/detection-plugins/: sp_byte_check.c, sp_byte_jump.c,
sp_isdataat.c, sp_pattern_match.c:
Test if the byte extracted distance and/or offset is within
bounds of the search buffer. Thanks to Nathan Fowler for
noting the issue.
* src/preprocessors/HttpInspect/client/hi_client.c:
clear cookie normalization buffer to avoid accidental null
dereference in pipelined request. Thanks to Michael Galapchuk
for reporting the problem.
2013-09-02 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.5.5
* src/preprocessors/Stream5/snort_stream5_tcp.c:
disable all detection (not just content-base) for packets on previously
blocked sessions
* src/preprocessors/perf.c:
Write perfmon entry when both packet count and time conditions are met,
rather than waiting for a multiple of the packet count after the time is
reached.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Stop inspection of the entire session when TLS data is present with
ignore_tls_data enabled in SMTP - Check for midstream pickups and
gaps when we miss server hello, and stop inspection as soon as we get
client hello when ignore_tls_data is turned on
* src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c:
changed pcre relative match with HTTP buffers to be not allowed in .so
rules (same as in text rules)
2013-07-03 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.5.3
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fixed handling of partial segment purging. Thanks to Lode Mertens
for reporting the issue.
* configure.in, src/active.c, src/decode.c, src/decode.h,
src/detect.c, src/detection_util.c, src/detection_util.h,
src/encode.c, src/encode.h, src/fpcreate.c, src/fpdetect.c,
src/log_text.c, src/parser.c, src/plugbase.c, src/ppm.c,
src/ppm.h, src/profiler.c, src/snort.c, src/util.c, src/util.h,
src/detection-plugins/detection_options.c,
src/detection-plugins/sp_byte_check.c,
src/detection-plugins/sp_ftpbounce.c,
src/detection-plugins/sp_pattern_match.c,
src/detection-plugins/sp_pattern_match.h,
src/detection-plugins/sp_pcre.c, src/detection-plugins/sp_pcre.h,
src/detection-plugins/sp_replace.c,
src/detection-plugins/sp_rpc_check.c,
src/detection-plugins/sp_urilen_check.c,
src/dynamic-examples/dynamic-preprocessor/spp_example.c,
src/dynamic-plugins/sf_convert_dynamic.c,
src/dynamic-plugins/sf_dynamic_common.h,
src/dynamic-plugins/sf_dynamic_define.h,
src/dynamic-plugins/sf_dynamic_engine.h,
src/dynamic-plugins/sf_dynamic_meta.h,
src/dynamic-plugins/sf_dynamic_plugins.c,
src/dynamic-plugins/sf_dynamic_preprocessor.h,
src/dynamic-plugins/sp_dynamic.c,
src/dynamic-plugins/sf_engine/Makefile.am,
src/dynamic-plugins/sf_engine/sf_snort_detection_engine.c,
src/dynamic-plugins/sf_engine/sf_snort_packet.h,
src/dynamic-plugins/sf_engine/sf_snort_plugin_api.c,
src/dynamic-plugins/sf_engine/sf_snort_plugin_api.h,
src/dynamic-plugins/sf_engine/sf_snort_plugin_content.c,
src/dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c,
src/dynamic-plugins/sf_engine/examples/bug26266.c,
src/dynamic-plugins/sf_engine/examples/detection_lib_meta.h,
src/dynamic-plugins/sf_engine/examples/fake_snort.c,
src/dynamic-plugins/sf_preproc_example/spp_nfs_setup.c,
src/dynamic-preprocessors/dcerpc2/dce2_http.h,
src/dynamic-preprocessors/dcerpc2/spp_dce2.c,
src/dynamic-preprocessors/dnp3/spp_dnp3.c,
src/dynamic-preprocessors/dns/spp_dns.c,
src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.h,
src/dynamic-preprocessors/ftptelnet/spp_ftptelnet.c,
src/dynamic-preprocessors/gtp/spp_gtp.c,
src/dynamic-preprocessors/imap/snort_imap.c,
src/dynamic-preprocessors/imap/spp_imap.c,
src/dynamic-preprocessors/isakmp/spp_isakmp.c,
src/dynamic-preprocessors/modbus/spp_modbus.c,
src/dynamic-preprocessors/pop/snort_pop.c,
src/dynamic-preprocessors/pop/spp_pop.c,
src/dynamic-preprocessors/reputation/reputation_config.h,
src/dynamic-preprocessors/reputation/spp_reputation.c,
src/dynamic-preprocessors/rzb_saac/spp_rzb-saac.c,
src/dynamic-preprocessors/sdf/spp_sdf.c,
src/dynamic-preprocessors/sip/sip_dialog.c,
src/dynamic-preprocessors/sip/sip_parser.c,
src/dynamic-preprocessors/sip/spp_sip.c,
src/dynamic-preprocessors/smtp/spp_smtp.c,
src/dynamic-preprocessors/ssh/spp_ssh.c,
src/dynamic-preprocessors/ssl/spp_ssl.c,
src/file-process/file_service.c,
src/file-process/libs/file_config.c,
src/output-plugins/spo_unified2.c, src/preprocessors/portscan.c,
src/preprocessors/snort_httpinspect.c,
src/preprocessors/spp_arpspoof.c, src/preprocessors/spp_bo.c,
src/preprocessors/spp_frag3.c,
src/preprocessors/spp_httpinspect.c,
src/preprocessors/spp_perfmonitor.c,
src/preprocessors/spp_rpc_decode.c,
src/preprocessors/spp_sfportscan.c,
src/preprocessors/spp_stream5.c, src/preprocessors/stream_api.h,
src/preprocessors/HttpInspect/client/hi_client.c,
src/preprocessors/HttpInspect/normalization/hi_norm.c,
src/preprocessors/Stream5/snort_stream5_tcp.c,
src/preprocessors/Stream5/snort_stream5_udp.c,
src/preprocessors/Stream5/stream5_common.h, src/sfutil/sf_iph.c,
src/sfutil/sf_iph.h, src/sfutil/test/unit_hacks.c:
Performance improvements and other refactorings. Notable changes
include: improved HTTP buffer implementation and replaced run-time
packet checks with assertions.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Ensure proper counting of sessions initializing.
* doc/Makefile.am, doc/faq.pdf, doc/faq.tex:
Remove Snort FAQ from source package since its now live on the web.
* src/preprocessors/: spp_stream5.c, stream_expect.c,
stream_expect.h:
Add a memcap to expected session tracking.
* src/sfutil/sfrt_flat.c:
Check for memory allocation failure in both IPV4 and IPV6 tables.
* src/control/sfcontrol.c:
Do not timeout during shutdown and fix stop processing code in the
control socket thread. Add the thread to the list before creation
of the thread to prevent a race condition.
2013-06-04 Steven Sturges <ssturges@sourcefire.com>
Snort 2.9.5
* src/: snort.c, preprocessors/spp_stream5.c:
when block rules fire during shutdown, log them as alert instead
of drop
* src/: active.c, active.h,
preprocessors/Stream5/snort_stream5_session.c:
don't allow blocks or actions from pruned sessions (unrelated to
current packet)
* src/preprocessors/Stream5/snort_stream5_tcp.c:
don't generate 129:1 in syn-sent
* src/preprocessors/Stream5/: snort_stream5_tcp.c,
snort_stream5_udp.c, stream5_common.h:
don't apply window or mss on midstream pickups
remove unused flags
eliminate read-mode check when determining window
* src/preprocessors/Stream5/snort_stream5_tcp.c:
don't reassemble on the tracked whitelisted flows
fix sequence number validation on ack to zero window syn+ack
fix timestamp tracking to use window base instead of next expected
* src/preprocessors/spp_stream5.c:
when stream5 disables inspection, ensure non-content rules are not run
* src/dynamic-preprocessors/dcerpc2/dce2_smb.c:
When removing a pipe tracker, NULL out static request tracker's
pipe tracker for pipe tracker that was dynamically allocated.
* src/file-process/libs/file_identifier.c:
Update some comments and avoid adding the same file magic
* src/preprocessors/: spp_stream5.c, stream_api.h,
Stream5/snort_stream5_tcp.c:
swap client/server on midstream pickup if we identify server by service
using client port
* src/file-process/libs/file_identifier.c:
Remove the code that parent file type might overwrite child file type.
* preproc_rules/preprocessor.rules, src/generators.h,
src/preprocessors/HttpInspect/event_output/hi_eo_log.c,
src/preprocessors/HttpInspect/include/hi_eo_events.h,
src/preprocessors/HttpInspect/utils/hi_paf.c,
src/preprocessors/Stream5/snort_stream5_tcp.c:
HTTP PAF abort improvements
* doc/: README.frag3, snort_manual.pdf, snort_manual.tex:
Added config event_trace description to Snort manual. Removed
commas from Frag3 example configurations, thanks to Nicholas
Horton for mentioning this.
* src/: dynamic-preprocessors/reputation/reputation_config.c,
sfutil/sfrt_flat.c, sfutil/sfrt_flat.h, sfutil/sfrt_flat_dir.c:
Copy reputation info from another list when a duplicate address is
inserted.
* src/dynamic-preprocessors/smtp/snort_smtp.c:
Fix issue when SMTP BDAT command specifies 0 length.
* src/dynamic-preprocessors/reputation/shmem/shmem_datamgmt.c:
Don't sort the manifest file.
* src/: snort.h, util.c:
Fix FatalError to actually exit when initializing in the failopen
thread.
* src/dynamic-preprocessors/reputation/reputation_config.c:
Update to use more accurate ip list file parsing and validation.
* src/: active.h, snort.c, dynamic-plugins/sf_dynamic_plugins.c,
preprocessors/spp_stream5.c, preprocessors/stream_api.h,
preprocessors/Stream5/snort_stream5_tcp.c:
ensure that force blocks persist
* src/dynamic-preprocessors/reputation/shmem/: shmem_config.c,
shmem_config.h, shmem_datamgmt.c, shmem_datamgmt.h, shmem_mgmt.c:
Refactor/cleanup of shared memory, data management logic.
* src/: dynamic-examples/dynamic-rule/detection_lib_meta.h,
dynamic-plugins/sf_dynamic_meta.h,
dynamic-plugins/sf_engine/sf_snort_detection_engine.c,
preprocessors/spp_stream5.c, preprocessors/stream_api.h:
Add a stream API function to populate a session key given a packet.
Also, export REQ_ENGINE_LIB_MAJOR and REQ_ENGINE_LIB_MINOR from snort
* src/preprocessors/Stream5/snort_stream5_tcp.c:
allow stream5 to track whitelisted sessions
* src/: snort.c, dynamic-preprocessors/dnp3/spp_dnp3.c,
preprocessors/Stream5/snort_stream5_tcp.c,
preprocessors/Stream5/stream5_paf.c, sfutil/sfPolicy.c,
sfutil/sfPolicy.h:
disable config by vlan or net selection if -DPOLICY_BY_ID_ONLY
* src/: snort.c, snort.h, dynamic-preprocessors/smtp/spp_smtp.c,
preprocessors/Stream5/stream5_ha.c,
preprocessors/Stream5/stream5_ha.h, win32/WIN32-Code/misc.c,
win32/WIN32-Includes/config.h, win32/WIN32-Prj/snort.dsp:
don't compile pcap reload for Win, add function for ffs() which
is not defined in windows.
* src/preprocessors/snort_httpinspect.c:
Support large file processing in post raw data (not in MIME format)
* src/: decode.c, decode.h, fpcreate.c, fpdetect.c, parser.c,
parser.h, plugbase.c, plugbase.h, rate_filter.c, rate_filter.h,
sfthreshold.c, sfthreshold.h, snort.c, snort.h, spo_plugbase.h,
util.c, util.h, control/sfcontrol.c, control/sfcontrol.h,
detection-plugins/detection_options.c,
detection-plugins/detection_options.h,
detection-plugins/sp_asn1.c, detection-plugins/sp_base64_data.c,
detection-plugins/sp_base64_decode.c,
detection-plugins/sp_byte_check.c,
detection-plugins/sp_byte_extract.c,
detection-plugins/sp_byte_jump.c,
detection-plugins/sp_clientserver.c, detection-plugins/sp_cvs.c,
detection-plugins/sp_dsize_check.c,
detection-plugins/sp_file_data.c,
detection-plugins/sp_flowbits.c,
detection-plugins/sp_ftpbounce.c,
detection-plugins/sp_icmp_code_check.c,
detection-plugins/sp_icmp_id_check.c,
detection-plugins/sp_icmp_seq_check.c,
detection-plugins/sp_icmp_type_check.c,
detection-plugins/sp_ip_fragbits.c,
detection-plugins/sp_ip_id_check.c,
detection-plugins/sp_ip_proto.c,
detection-plugins/sp_ip_same_check.c,
detection-plugins/sp_ip_tos_check.c,
detection-plugins/sp_ipoption_check.c,
detection-plugins/sp_isdataat.c,
detection-plugins/sp_pattern_match.c,
detection-plugins/sp_pattern_match.h,
detection-plugins/sp_pcre.c, detection-plugins/sp_pcre.h,
detection-plugins/sp_pkt_data.c, detection-plugins/sp_react.c,
detection-plugins/sp_replace.c, detection-plugins/sp_replace.h,
detection-plugins/sp_respond3.c,
detection-plugins/sp_rpc_check.c, detection-plugins/sp_session.c,
detection-plugins/sp_tcp_ack_check.c,
detection-plugins/sp_tcp_flag_check.c,
detection-plugins/sp_tcp_seq_check.c,
detection-plugins/sp_tcp_win_check.c,
detection-plugins/sp_ttl_check.c,
detection-plugins/sp_urilen_check.c,
dynamic-examples/dynamic-preprocessor/sf_preproc_info.h,
dynamic-examples/dynamic-preprocessor/spp_example.c,
dynamic-examples/dynamic-rule/detection_lib_meta.h,
dynamic-output/libs/output_lib.c,
dynamic-output/plugins/output_api.h,
dynamic-output/plugins/output_common.h,
dynamic-output/plugins/output_lib.h,
dynamic-output/plugins/output_plugin.c,
dynamic-plugins/sf_convert_dynamic.c,
dynamic-plugins/sf_convert_dynamic.h,
dynamic-plugins/sf_dynamic_detection.h,
dynamic-plugins/sf_dynamic_engine.h,
dynamic-plugins/sf_dynamic_plugins.c,
dynamic-plugins/sf_dynamic_preprocessor.h,
dynamic-plugins/sp_dynamic.c, dynamic-plugins/sp_dynamic.h,
dynamic-plugins/sp_preprocopt.c, dynamic-plugins/sp_preprocopt.h,
dynamic-plugins/sf_engine/sf_snort_detection_engine.c,
dynamic-plugins/sf_engine/sf_snort_detection_engine.h,
dynamic-plugins/sf_engine/sf_snort_plugin_api.h,
dynamic-plugins/sf_engine/sf_snort_plugin_loop.c,
dynamic-plugins/sf_engine/sf_snort_plugin_pcre.c,
dynamic-plugins/sf_engine/examples/sfsnort_dynamic_detection_lib.c,
dynamic-plugins/sf_preproc_example/sf_preproc_info.h,
dynamic-preprocessors/dcerpc2/dce2_config.c,
dynamic-preprocessors/dcerpc2/dce2_config.h,
dynamic-preprocessors/dcerpc2/dce2_paf.c,
dynamic-preprocessors/dcerpc2/dce2_paf.h,
dynamic-preprocessors/dcerpc2/dce2_roptions.c,
dynamic-preprocessors/dcerpc2/dce2_roptions.h,
dynamic-preprocessors/dcerpc2/snort_dce2.c,
dynamic-preprocessors/dcerpc2/spp_dce2.c,
dynamic-preprocessors/dnp3/dnp3_paf.c,
dynamic-preprocessors/dnp3/dnp3_paf.h,
dynamic-preprocessors/dnp3/dnp3_roptions.c,
dynamic-preprocessors/dnp3/dnp3_roptions.h,
dynamic-preprocessors/dnp3/spp_dnp3.c,
dynamic-preprocessors/dns/spp_dns.c,
dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.c,
dynamic-preprocessors/ftptelnet/ftpp_ui_server_lookup.h,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.h,
dynamic-preprocessors/ftptelnet/spp_ftptelnet.c,
dynamic-preprocessors/gtp/gtp_roptions.c,
dynamic-preprocessors/gtp/gtp_roptions.h,
dynamic-preprocessors/gtp/spp_gtp.c,
dynamic-preprocessors/imap/imap_config.h,
dynamic-preprocessors/imap/snort_imap.c,
dynamic-preprocessors/imap/spp_imap.c,
dynamic-preprocessors/modbus/modbus_paf.c,
dynamic-preprocessors/modbus/modbus_paf.h,
dynamic-preprocessors/modbus/modbus_roptions.c,
dynamic-preprocessors/modbus/modbus_roptions.h,
dynamic-preprocessors/modbus/spp_modbus.c,
dynamic-preprocessors/pop/snort_pop.c,
dynamic-preprocessors/pop/spp_pop.c,
dynamic-preprocessors/reputation/reputation_config.c,
dynamic-preprocessors/reputation/reputation_config.h,
dynamic-preprocessors/reputation/spp_reputation.c,
dynamic-preprocessors/reputation/shmem/shmem_common.h,
dynamic-preprocessors/reputation/shmem/shmem_datamgmt.c,
dynamic-preprocessors/reputation/shmem/shmem_datamgmt.h,
dynamic-preprocessors/sdf/sdf_detection_option.c,
dynamic-preprocessors/sdf/sdf_detection_option.h,
dynamic-preprocessors/sdf/spp_sdf.c,
dynamic-preprocessors/sdf/spp_sdf.h,
dynamic-preprocessors/sip/sip_roptions.c,
dynamic-preprocessors/sip/sip_roptions.h,
dynamic-preprocessors/sip/spp_sip.c,
dynamic-preprocessors/sip/spp_sip.h,
dynamic-preprocessors/smtp/smtp_config.c,
dynamic-preprocessors/smtp/snort_smtp.c,
dynamic-preprocessors/smtp/spp_smtp.c,
dynamic-preprocessors/ssh/spp_ssh.c,
dynamic-preprocessors/ssl/spp_ssl.c, file-process/file_service.c,
output-plugins/spo_alert_fast.c, output-plugins/spo_alert_full.c,
output-plugins/spo_alert_sf_socket.c,
output-plugins/spo_alert_syslog.c,
output-plugins/spo_alert_test.c,
output-plugins/spo_alert_unixsock.c, output-plugins/spo_csv.c,
output-plugins/spo_log_ascii.c, output-plugins/spo_log_null.c,
output-plugins/spo_log_tcpdump.c, output-plugins/spo_unified2.c,
parser/IpAddrSet.c, parser/IpAddrSet.h, preprocessors/portscan.c,
preprocessors/portscan.h, preprocessors/spp_arpspoof.c,
preprocessors/spp_bo.c, preprocessors/spp_frag3.c,
preprocessors/spp_httpinspect.c, preprocessors/spp_normalize.c,
preprocessors/spp_perfmonitor.c, preprocessors/spp_rpc_decode.c,
preprocessors/spp_sfportscan.c, preprocessors/spp_stream5.c,
preprocessors/stream_api.h,
preprocessors/HttpInspect/include/hi_paf.h,
preprocessors/HttpInspect/include/hi_ui_server_lookup.h,
preprocessors/HttpInspect/user_interface/hi_ui_server_lookup.c,
preprocessors/HttpInspect/utils/hi_paf.c,
preprocessors/Stream5/snort_stream5_session.h,
preprocessors/Stream5/snort_stream5_tcp.c,
preprocessors/Stream5/snort_stream5_tcp.h,
preprocessors/Stream5/snort_stream5_udp.c,
preprocessors/Stream5/snort_stream5_udp.h,
preprocessors/Stream5/stream5_common.c,
preprocessors/Stream5/stream5_common.h,
preprocessors/Stream5/stream5_ha.c,
preprocessors/Stream5/stream5_ha.h,
preprocessors/Stream5/stream5_paf.c,
preprocessors/Stream5/stream5_paf.h, sfutil/Makefile.am,
sfutil/acsmx.c, sfutil/acsmx.h, sfutil/acsmx2.c, sfutil/acsmx2.h,
sfutil/bnfa_search.c, sfutil/bnfa_search.h,
sfutil/intel-soft-cpm.c, sfutil/intel-soft-cpm.h, sfutil/mpse.c,
sfutil/mpse.h, sfutil/sfPolicy.c, sfutil/sfPolicy.h,
sfutil/sfPolicyData.h, sfutil/sfPolicyUserData.c,
sfutil/sfPolicyUserData.h, sfutil/sfksearch.c,
sfutil/sfksearch.h, sfutil/sfrf.c, sfutil/sfrf.h, sfutil/sfrt.c,
sfutil/sfrt.h, sfutil/sfthd.c, sfutil/sfthd.h,
sfutil/test/sfrf_test.c, sfutil/test/sfthd_test.c,
sfutil/test/unit_hacks.c, sfutil/test/unit_hacks.h,
target-based/sftarget_reader.c, target-based/sftarget_reader.h:
Add a control channel command that reloads the snort configuration. If
a restart is needed, the command will return an error and the new
configuration will be freed. Using this can replace the HUP signal,
which does not have a means of feedback to the user.
* preproc_rules/preprocessor.rules, src/generators.h,
src/dynamic-preprocessors/imap/imap_log.c,
src/dynamic-preprocessors/imap/imap_log.h,
src/dynamic-preprocessors/pop/pop_log.c,
src/dynamic-preprocessors/pop/pop_log.h,
src/dynamic-preprocessors/smtp/smtp_log.c,
src/dynamic-preprocessors/smtp/smtp_log.h,
doc/README.imap, doc/README.pop:
Removed the decoding failure alert for bitencoded/non-encoded
attachments since it was invalid as we don't decoded these attachments.
* src/preprocessors/spp_frag3.c:
Continue to track fragments if rebuilt packet caused a drop.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Fixed POST_SESSION_CLEANUP() macro to not log messages when Stream5
is configured with "prune_log_max 0". Thanks to Gregory S Thomas
for pointing out the issue.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
Skip MAC address verification on packets being routed by a DAQ Module.
* src/: decode.c, parser.c:
Disallow rule-type decode rules with a sid that exceed
DECODE_INDEX_MAX.
* src/decode.c:
Fixed MPLS header length check. Credits to Jacob Baines for the
find.
* src/fpdetect.c:
When decoding Teredo and the inner IPv6 doesn't have any payload,
reset do_detect_content to ensure content matches are checked when
evaluating rules against the outer IPv4 'payload'. Thanks to Yun
Zheng Hu & L0rd Ch0de1m0rt for reporting the issue & crafting
traffic to reproduce.
* doc/snort_manual.tex:
Add reference 'msb' to the list of valid ones in the Snort manual.
* src/preprocessors/Stream5/snort_stream5_tcp.c:
flush and free application data on receipt of TCP RST in the
close-wait state
* src/: snort.c, preprocessors/spp_stream5.c,
preprocessors/stream_api.h, preprocessors/stream_expect.c,
preprocessors/Stream5/snort_stream5_icmp.c,
preprocessors/Stream5/snort_stream5_ip.c,
preprocessors/Stream5/snort_stream5_session.c,
preprocessors/Stream5/snort_stream5_tcp.c,
preprocessors/Stream5/snort_stream5_tcp.h,
preprocessors/Stream5/snort_stream5_udp.c,
preprocessors/Stream5/snort_stream5_udp.h,
preprocessors/Stream5/stream5_common.c,
preprocessors/Stream5/stream5_common.h,
preprocessors/Stream5/stream5_ha.c,
preprocessors/Stream5/stream5_ha.h, side-channel/Makefile.am,
side-channel/dmq.c, side-channel/dmq.h, side-channel/rbmq.c,
side-channel/rbmq.h, side-channel/sidechannel.c,
side-channel/sidechannel_define.h,
configure.in:
Add the ability to share basic session state for Stream via a
side channel
* src/: fpdetect.c, parser.c, snort.c, snort.h, util.c,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.c,
dynamic-preprocessors/ftptelnet/snort_ftptelnet.h,
dynamic-preprocessors/ftptelnet/spp_ftptelnet.c,
preprocessors/Stream5/snort_stream5_tcp.c,
preprocessors/Stream5/stream5_paf.c:
Improve some processing performance for small packets