]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
4 years agoconfigure: require libhtp 0.5.36 5626/head
Victor Julien [Thu, 3 Dec 2020 11:10:22 +0000 (12:10 +0100)] 
configure: require libhtp 0.5.36

4 years agodoc: explicit header normalization further
Philippe Antoine [Mon, 13 Jul 2020 09:06:58 +0000 (11:06 +0200)] 
doc: explicit header normalization further

And their concatenation as described in RFC 2616

4 years agogithub-ci: CentOS 6 is EOL
Victor Julien [Wed, 2 Dec 2020 12:31:52 +0000 (13:31 +0100)] 
github-ci: CentOS 6 is EOL

4 years agodoc: http.uri.raw has no spaces 5624/head
Philippe Antoine [Wed, 25 Nov 2020 14:20:02 +0000 (15:20 +0100)] 
doc: http.uri.raw has no spaces

as they are in the protocol

cf bug #2881

4 years agorust: handle windows naming change from .lib to .a 5618/head
Jason Ish [Mon, 30 Nov 2020 21:11:57 +0000 (15:11 -0600)] 
rust: handle windows naming change from .lib to .a

Prior to Rust 1.44, Cargo would name static libs with the .lib
extension. 1.44 changes this extension to .a when running under
a GNU environment on Windows like msys to make it more similar
to other unix environments.

Now assume static library name to be the same on Windows and
unix, but rename the .lib if found to still support older
versions of Rust on Windows.

4 years agoconfigure/mingw: move libs in LDFLAGS to LDADD
Jason Ish [Mon, 30 Nov 2020 21:37:02 +0000 (15:37 -0600)] 
configure/mingw: move libs in LDFLAGS to LDADD

Moving the libs specified in LDFLAGS to LDADD put them into the
correct placement on in the link command.

4 years agorust: do not rebuild stdlib when coverage is enabled
Philippe Antoine [Mon, 16 Nov 2020 09:12:55 +0000 (10:12 +0100)] 
rust: do not rebuild stdlib when coverage is enabled

Because both seem incompatible for now

4 years agofuzz: check PacketCopyData return value before processing packet
Philippe Antoine [Thu, 19 Nov 2020 13:10:08 +0000 (14:10 +0100)] 
fuzz: check PacketCopyData return value before processing packet

4 years agofuzz: limit memcap for datasets when fuzzing
Philippe Antoine [Tue, 3 Nov 2020 10:21:06 +0000 (11:21 +0100)] 
fuzz: limit memcap for datasets when fuzzing

4 years agodnp3: better limit for tests when fuzzing
Philippe Antoine [Sat, 31 Oct 2020 15:51:09 +0000 (16:51 +0100)] 
dnp3: better limit for tests when fuzzing

4 years agofuzz: improves detect proto target
Philippe Antoine [Thu, 15 Oct 2020 20:50:42 +0000 (22:50 +0200)] 
fuzz: improves detect proto target

By mimicking assert message so as to clusterfuzz differentiates
between failures

4 years agodetect: fix inspection order with stateful rules 5610/head
Victor Julien [Mon, 30 Nov 2020 06:44:54 +0000 (07:44 +0100)] 
detect: fix inspection order with stateful rules

When stateful detection rules, for which detection has already started
for a previous packet, are added to the candidates array, the array
is sorted to mantain the correct inspection order. However, due to a
trivial error in the sort helper the array was sorted in descending
instead of ascending order.

4 years agodcerpc/udp: fix transaction handling and logging 5601/head
Victor Julien [Thu, 26 Nov 2020 10:03:21 +0000 (11:03 +0100)] 
dcerpc/udp: fix transaction handling and logging

Implement missing transaction handling.

Fix logging wrongly casting 'state' to DCERPCState instead of
DCERPCUDPState leading to crashes and malformed output.

Remove unused fields from DCERPCUDPState.

4 years agodetect/mpm: remove usused cleanup function 5600/head
Victor Julien [Wed, 25 Nov 2020 08:49:54 +0000 (09:49 +0100)] 
detect/mpm: remove usused cleanup function

4 years agodetect: optimize prefilter result handling
Victor Julien [Wed, 25 Nov 2020 08:22:44 +0000 (09:22 +0100)] 
detect: optimize prefilter result handling

4 years agodetect/prefilter: small cleanup
Victor Julien [Wed, 25 Nov 2020 08:22:21 +0000 (09:22 +0100)] 
detect/prefilter: small cleanup

4 years agogithub-ci: check for duplicate SIDs in rules/
Jason Ish [Fri, 20 Nov 2020 15:15:37 +0000 (09:15 -0600)] 
github-ci: check for duplicate SIDs in rules/

4 years agorules/mqtt: renumber mqtt events to avoid conflict with ssh
Jason Ish [Wed, 18 Nov 2020 22:44:38 +0000 (16:44 -0600)] 
rules/mqtt: renumber mqtt events to avoid conflict with ssh

Both SSH and MQTT events were in the 2228000 range. As SSH was
added first, renumber MQTT events into the 2229000 range which is
free.

4 years agorust: fix warnings found by nightly compiler
Philippe Antoine [Thu, 19 Nov 2020 14:50:54 +0000 (15:50 +0100)] 
rust: fix warnings found by nightly compiler

warning: getting the inner pointer of a temporary `CString`
this `CString` is deallocated at the end of the statement,
bind it to a variable to extend its lifetime

4 years agodecode/null: fix type parsing
Victor Julien [Mon, 23 Nov 2020 20:59:18 +0000 (21:59 +0100)] 
decode/null: fix type parsing

4 years agoatomics: fix compilation on ppc64
Victor Julien [Mon, 23 Nov 2020 20:57:36 +0000 (21:57 +0100)] 
atomics: fix compilation on ppc64

4 years agodnp3: set byte order when logging dnp3 src and dst 5594/head
Jason Ish [Mon, 23 Nov 2020 18:11:42 +0000 (12:11 -0600)] 
dnp3: set byte order when logging dnp3 src and dst

DNP3 uses little endian on the wire, for the most part this
is handled as the messages are deserialize. However, the link
header is a cast over raw data, so swap these bytes as they
are being logged.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4173

4 years agogithub-ci: windows in builds 5584/head
Victor Julien [Thu, 19 Nov 2020 21:01:40 +0000 (22:01 +0100)] 
github-ci: windows in builds

4 years agodoc/userguide: update http keywords 5581/head
Victor Julien [Thu, 5 Nov 2020 14:31:58 +0000 (15:31 +0100)] 
doc/userguide: update http keywords

4 years agodoc/userguide: explain --strict-rule-keywords
Victor Julien [Wed, 4 Nov 2020 20:00:41 +0000 (21:00 +0100)] 
doc/userguide: explain --strict-rule-keywords

4 years agoapp-layer: do not try to parse gaps during protocol change 5580/head
Philippe Antoine [Tue, 17 Nov 2020 09:16:42 +0000 (10:16 +0100)] 
app-layer: do not try to parse gaps during protocol change

As this will leak the flow alstate because AppLayerParserParse
relies on FlowChangeProto to know if it should allocate a new
alstate

4 years agodetect: apply transforms to http body 5575/head
Philippe Antoine [Tue, 12 Nov 2019 20:57:28 +0000 (21:57 +0100)] 
detect: apply transforms to http body

4 years agoci: updates github ci add-path mechanism
Philippe Antoine [Tue, 17 Nov 2020 08:48:29 +0000 (09:48 +0100)] 
ci: updates github ci add-path mechanism

4 years agotools: bash from env
Danny Browning [Tue, 27 Oct 2020 15:47:21 +0000 (09:47 -0600)] 
tools: bash from env

Use of hardcoded bash prevents users from using an upgraded bash which may
live in a different location. This behavior is often seen on OSX systems.

Utilize env to find the preferred bash to call for scripts.

4 years agorust/log: clarify comment in non-debug mode SCLogDebug
Jason Ish [Mon, 16 Nov 2020 17:43:17 +0000 (11:43 -0600)] 
rust/log: clarify comment in non-debug mode SCLogDebug

4 years agorust/log: order log macros in descending order
Jason Ish [Mon, 16 Nov 2020 17:40:05 +0000 (11:40 -0600)] 
rust/log: order log macros in descending order

Readability cleanup.
- error, notice, ... debug

4 years agorust/log: expand macros after checking log level
Jason Ish [Mon, 16 Nov 2020 17:36:39 +0000 (11:36 -0600)] 
rust/log: expand macros after checking log level

Expand macros in the do_log macro after checking the log level
instead of each log macro (ie: SCLogDebug) expanding the macros
then passing off to do_log to have the log level check.

Will eliminate any expense of expanding macros if this log level
does not permit the given message to be logged.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4114

4 years agodcerpc/log: Log fields particular to an RPC version 5570/head
Shivani Bhardwaj [Thu, 12 Nov 2020 11:06:39 +0000 (16:36 +0530)] 
dcerpc/log: Log fields particular to an RPC version

Log fields that only are meant to be in a PDU for a particular RPC
version. Since DCERPC/UDP works on RPC version 4 and DCERPC/TCP works on
RPC version 5, there are certain fields that are particular to each
version.
Remove call_id from the logger for UDP.
Add activityuuid and seqnum fields to the logger for UDP.
call_id and (activityuuid + seqnum) fields are used to uniquely pair a
request with response for RPC versions 5 and 4 respectively.

4 years agorust/dcerpc: Remove redundant fields
Ilya Bakhtin [Tue, 10 Nov 2020 10:27:43 +0000 (15:57 +0530)] 
rust/dcerpc: Remove redundant fields

4 years agorust/dcerpc: Make tx_id u64
Ilya Bakhtin [Tue, 10 Nov 2020 10:20:21 +0000 (15:50 +0530)] 
rust/dcerpc: Make tx_id u64

4 years agodcerpc/udp: Fix pairing of request response
Ilya Bakhtin [Tue, 10 Nov 2020 10:05:18 +0000 (15:35 +0530)] 
dcerpc/udp: Fix pairing of request response

So far, request and response were paired with serial number fields in
the header. This is incorrect. According to
https://pubs.opengroup.org/onlinepubs/9629399/chap12.htm,
"Together, the activity UUID and the sequence number uniquely identify
a remote procedure call."

Hence, add activity uuid and sequence number to the transaction and pair
the request accordingly. Remove incorrect handling of this and fix
tests.

4 years agorust/dcerpc: Add UDP flag definitions
Ilya Bakhtin [Tue, 10 Nov 2020 08:11:29 +0000 (13:41 +0530)] 
rust/dcerpc: Add UDP flag definitions

4 years agoapp-layer: lower limit for protocol detection on protocol change
Philippe Antoine [Tue, 6 Oct 2020 13:22:59 +0000 (15:22 +0200)] 
app-layer: lower limit for protocol detection on protocol change

So that protocol detection does not run for too long because
TCPProtoDetectCheckBailConditions somehow relies on its TCP stream
to start from zero, which is not the case on protocol change

Adds also debug validation checks, such as
both sides are known on protocol change

And only sets once alproto_orig

4 years agodoc: New sticky buffer icmpv4.hdr
Jeff Lucovsky [Wed, 4 Nov 2020 13:44:39 +0000 (08:44 -0500)] 
doc: New sticky buffer icmpv4.hdr

4 years agodetect: Register icmpv4 header
Jeff Lucovsky [Thu, 5 Nov 2020 13:11:17 +0000 (08:11 -0500)] 
detect: Register icmpv4 header

4 years agodetect: Add icmpv4.hdr sticky buffer
Jeff Lucovsky [Wed, 4 Nov 2020 13:31:00 +0000 (08:31 -0500)] 
detect: Add icmpv4.hdr sticky buffer

This commit adds a new sticky buffer to access the ICMPv4 header.

4 years agodetect: New enum for icmpv4 header keyword
Jeff Lucovsky [Thu, 5 Nov 2020 13:10:41 +0000 (08:10 -0500)] 
detect: New enum for icmpv4 header keyword

4 years agodecode: Improved handling of ICMPv4 messages
Jeff Lucovsky [Wed, 4 Nov 2020 13:34:51 +0000 (08:34 -0500)] 
decode: Improved handling of ICMPv4 messages

This commit improves handling of ICMPv4 messages, especially those with
variable sized headers.

This commit also adds a header length variable for use by the new
sticky buffer for the header.

4 years agogithub-ci: fix debian 10 test using rustup 5567/head
Victor Julien [Sun, 15 Nov 2020 07:06:17 +0000 (08:06 +0100)] 
github-ci: fix debian 10 test using rustup

4 years agodetect: Treat offset as a signed value
Jeff Lucovsky [Sat, 7 Nov 2020 14:53:20 +0000 (09:53 -0500)] 
detect: Treat offset as a signed value

This commit updates the detector to treat 'offset' as a signed value to
be compatible with Snort.

4 years agonapatech: Added comment indicating that hba will be deprecated
Phil Young [Fri, 13 Nov 2020 16:38:36 +0000 (11:38 -0500)] 
napatech: Added comment indicating that hba will be deprecated

HBA will be deprecated in Suricata 7

4 years agonapatech: Add Deprecation Warning Message for HBA
Phil Young [Fri, 13 Nov 2020 16:32:32 +0000 (11:32 -0500)] 
napatech: Add Deprecation Warning Message for HBA

Added a message that HBA will be deprecated in the future and removed
hba from default conf file.

4 years agodoc: provide eve 1 deprecation date
Jason Ish [Fri, 13 Nov 2020 19:15:40 +0000 (13:15 -0600)] 
doc: provide eve 1 deprecation date

4 years agodns: eve 1 deprecation warning
Jason Ish [Fri, 13 Nov 2020 19:15:14 +0000 (13:15 -0600)] 
dns: eve 1 deprecation warning

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4137

4 years agodns: fix leak in dns v1 logging
Jason Ish [Fri, 13 Nov 2020 19:05:48 +0000 (13:05 -0600)] 
dns: fix leak in dns v1 logging

Intermediate JsonBuilder object was not being freed.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4086

4 years agonapatech: Removed restriction on use of inline mode 5560/head
Phil Young [Thu, 12 Nov 2020 18:19:12 +0000 (13:19 -0500)] 
napatech: Removed restriction on use of inline mode

Removed the unnecessary restriction on the use of inline mode only when
bypass is enabled.  Now, Inline can be used independent of bypass
functionality.

4 years agonapatech: Fix potential double release of packet
Phil Young [Wed, 11 Nov 2020 19:21:39 +0000 (14:21 -0500)] 
napatech: Fix potential double release of packet

This addresses readmine issue #4018.  There was the potential for a packet
buffer to be released twice in response to an error condition.  This
addresses this by only calling NT_NetRxRelease() when the p->ReleasePacket
is called.

4 years agofuzz: better packet recycling in sigpcap target 5557/head
Philippe Antoine [Fri, 6 Nov 2020 14:56:24 +0000 (15:56 +0100)] 
fuzz: better packet recycling in sigpcap target

need especially to set datalink for every packet

4 years agofuzz: applayer target uses yaml config
Philippe Antoine [Thu, 5 Nov 2020 14:46:54 +0000 (15:46 +0100)] 
fuzz: applayer target uses yaml config

so that every app-layer protocol is enabled

4 years agoci: adds cifuzz workflow
Philippe Antoine [Thu, 5 Nov 2020 13:50:13 +0000 (14:50 +0100)] 
ci: adds cifuzz workflow

4 years agofuzz: adds fuzzing status badge in README
Philippe Antoine [Thu, 5 Nov 2020 10:05:13 +0000 (11:05 +0100)] 
fuzz: adds fuzzing status badge in README

4 years agoeve: do not access flow storage in packet context 5555/head
Sascha Steinbiss [Sun, 8 Nov 2020 12:08:28 +0000 (13:08 +0100)] 
eve: do not access flow storage in packet context

We must make sure not to access the flow storage (e.g. keeping a
MacSet) before making sure we have a flow to begin with, We can,
for example, run into an alert without a flow with `ip` rules,
in which case the flow might be NULL. See Redmine issue #4109.

4 years agogithub-ci: Improve body parsing 5550/head
Jeff Lucovsky [Sat, 7 Nov 2020 12:55:19 +0000 (07:55 -0500)] 
github-ci: Improve body parsing

This commit improves handling of the PR body parsing to eliminate
unneeded characters.

4 years agodetect/file-data: Improved support for share bufs
Jeff Lucovsky [Sun, 8 Nov 2020 15:06:19 +0000 (10:06 -0500)] 
detect/file-data: Improved support for share bufs

This commit improves support for shared buffer usage, i.e., when
multiple rules share the file data (http) buffer and apply different
combinations of transforms and fast_patterns (or none).

4 years agogithub-ci: remove deprecated set-env and add-path 5533/head
Jason Ish [Tue, 13 Oct 2020 21:42:05 +0000 (15:42 -0600)] 
github-ci: remove deprecated set-env and add-path

Use the new methods for setting an environment variable and
updating the PATH.

4 years agomingw: fix format string warnings
Victor Julien [Sat, 31 Oct 2020 19:57:38 +0000 (20:57 +0100)] 
mingw: fix format string warnings

4 years agogithub-ci: add windows build with suricata-verify
Victor Julien [Thu, 29 Oct 2020 07:02:50 +0000 (08:02 +0100)] 
github-ci: add windows build with suricata-verify

Initial attempt with a few hacks:
- npcap dlls are extracted from the installer and placed in cwd
- cbindgen is installed system wide desipte a preinstalled copy

This does not yet hook into the "prep" build from build.yaml or
support using custom support PRs/branches (SV, SU).

4 years agoappveyor: remove in favor of github-ci
Victor Julien [Wed, 28 Oct 2020 17:00:37 +0000 (18:00 +0100)] 
appveyor: remove in favor of github-ci

4 years agodetect/mpm: fix id confusion in mpm_ctx sharing
Victor Julien [Tue, 27 Oct 2020 07:16:25 +0000 (08:16 +0100)] 
detect/mpm: fix id confusion in mpm_ctx sharing

Mixing of dynamic id's and hardcoded config values could possibly
lead to the settings not getting applied properly.

4 years agodetect/mpm: improve transforms handling
Victor Julien [Mon, 26 Oct 2020 20:14:43 +0000 (21:14 +0100)] 
detect/mpm: improve transforms handling

Make sure keywords with transforms get their own mpm ctx, instead of
sharing it with the 'pure' version of the keyword.

4 years agodetect/mpm: rename variable to ease code review
Victor Julien [Mon, 26 Oct 2020 13:27:13 +0000 (14:27 +0100)] 
detect/mpm: rename variable to ease code review

4 years agodcerpc/udp: add missing tx free logic
Victor Julien [Fri, 23 Oct 2020 09:11:03 +0000 (11:11 +0200)] 
dcerpc/udp: add missing tx free logic

4 years agodcerpc: fix stream flag handling
Victor Julien [Fri, 23 Oct 2020 08:26:42 +0000 (10:26 +0200)] 
dcerpc: fix stream flag handling

Only hardcoded direction flags were passed to the parser, not the
full range.

Handle receiving an EOF flag w/o data.

Bug: #3856

4 years agodcerpc/tcp: fix compile warning
Victor Julien [Fri, 23 Oct 2020 05:45:50 +0000 (07:45 +0200)] 
dcerpc/tcp: fix compile warning

warning: variable does not need to be mutable
    --> src/dcerpc/dcerpc.rs:1036:42
     |
1036 |                     let tx = if let Some(mut tx) = self.get_tx_by_call_id(current_call_id, core::STREAM_TOCLIENT) {
     |                                          ----^^
     |                                          |
     |                                          help: remove this `mut`
     |
     = note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
    --> src/dcerpc/dcerpc.rs:1061:30
     |
1061 |                         Some(mut tx) => {
     |                              ----^^
     |                              |
     |                              help: remove this `mut`

4 years agodcerpc/tcp: add missing detect state cleanup
Victor Julien [Fri, 23 Oct 2020 05:44:28 +0000 (07:44 +0200)] 
dcerpc/tcp: add missing detect state cleanup

4 years agodetect/magic: fix crash on rule reloading
Angelo Mirabella [Tue, 26 May 2020 17:00:06 +0000 (18:00 +0100)] 
detect/magic: fix crash on rule reloading

This changseset fixes a bug causing a segmentation fault.
When rules are reloaded and a rule using libmagic matches, suricata
crashes due to an improper reinitialization of the thread contexts.

Bug: #3726

4 years agounix-socket: fix alert metadata logging
Angelo Mirabella [Wed, 11 Mar 2020 15:11:19 +0000 (15:11 +0000)] 
unix-socket: fix alert metadata logging

This changeset fixes a bug that was preventing suricata to dump
alert metadata info when running in unix-socket mode.
When running in unix-socket mode, suricata was skipping the
initialization of the output modules and, as a consequence,
the metadata output module was never invoked.

4 years agoalert/syslog: fix minor compile warning
Victor Julien [Thu, 22 Oct 2020 14:10:14 +0000 (16:10 +0200)] 
alert/syslog: fix minor compile warning

4 years agostream: harden data size handling
Victor Julien [Wed, 21 Oct 2020 18:22:50 +0000 (20:22 +0200)] 
stream: harden data size handling

Handle edge cases around ACKs and last_ack getting below
'app_progress', which can happen during shutdown of a flow
with multiple GAPs.

4 years agostream: bail early if no data after a gap
Victor Julien [Wed, 21 Oct 2020 18:27:18 +0000 (20:27 +0200)] 
stream: bail early if no data after a gap

4 years agostream: harden data size handling
Victor Julien [Wed, 21 Oct 2020 18:22:50 +0000 (20:22 +0200)] 
stream: harden data size handling

4 years agostream: don't send STREAM_START multiple times
Victor Julien [Wed, 21 Oct 2020 17:58:23 +0000 (19:58 +0200)] 
stream: don't send STREAM_START multiple times

4 years agodetect/content: add more negation tests
Victor Julien [Wed, 21 Oct 2020 13:46:58 +0000 (15:46 +0200)] 
detect/content: add more negation tests

4 years agodnp3: reword warning message
Victor Julien [Tue, 20 Oct 2020 09:58:14 +0000 (11:58 +0200)] 
dnp3: reword warning message

4 years agodefrag: fix pthread warning on OpenBSD
Victor Julien [Tue, 20 Oct 2020 09:57:56 +0000 (11:57 +0200)] 
defrag: fix pthread warning on OpenBSD

4 years agoconfigure: remove left over reference to unified2 5479/head
Victor Julien [Fri, 9 Oct 2020 12:48:40 +0000 (14:48 +0200)] 
configure: remove left over reference to unified2

4 years agodoc/rules: document config rule option
Victor Julien [Thu, 24 Sep 2020 09:33:07 +0000 (11:33 +0200)] 
doc/rules: document config rule option

4 years agoversion: start development towards 6.0.1
Victor Julien [Fri, 9 Oct 2020 11:30:15 +0000 (13:30 +0200)] 
version: start development towards 6.0.1

4 years agoversion: update to 6.0.0, require libhtp 0.5.35 suricata-6.0.0
Victor Julien [Wed, 7 Oct 2020 11:30:16 +0000 (13:30 +0200)] 
version: update to 6.0.0, require libhtp 0.5.35

4 years agochangelog: update for 6.0.0 final
Victor Julien [Wed, 7 Oct 2020 11:29:37 +0000 (13:29 +0200)] 
changelog: update for 6.0.0 final

4 years agologrotate: reindent to 4 spaces
Jason Ish [Wed, 23 Sep 2020 16:51:58 +0000 (10:51 -0600)] 
logrotate: reindent to 4 spaces

4 spaces seems to be the norm on Linux, so reindent from a mix
of 8 spaces and tabs to 4 spaces.

4 years agosignature: checks protocol for file.name keyword
Philippe Antoine [Thu, 17 Sep 2020 13:22:49 +0000 (15:22 +0200)] 
signature: checks protocol for file.name keyword

By setting the flags as for the filename keyword (not sticky version)

4 years agodnp3: more precise probing for banners
Philippe Antoine [Wed, 30 Sep 2020 20:04:32 +0000 (22:04 +0200)] 
dnp3: more precise probing for banners

4 years agodnp3: fix probing test not using final null in string
Philippe Antoine [Tue, 6 Oct 2020 11:46:47 +0000 (13:46 +0200)] 
dnp3: fix probing test not using final null in string

4 years agohttp2: asymetric sizes for headers tables
Philippe Antoine [Tue, 6 Oct 2020 07:46:14 +0000 (09:46 +0200)] 
http2: asymetric sizes for headers tables

The headers table from client to server
and the one from server to client
may have different maximum sizes
(even if both endpoints have to keep both tables)

4 years agossl: do not reuse struct session_id_length
Philippe Antoine [Fri, 31 Jul 2020 11:33:01 +0000 (13:33 +0200)] 
ssl: do not reuse struct session_id_length

As it can be confused between SSLv2 and TLSv13
In SSLv2, this variable is not used after the function scope, so
we can use a temporary variable.

4 years agosmb: resistance against padding evasions
Philippe Antoine [Tue, 14 Apr 2020 12:24:22 +0000 (14:24 +0200)] 
smb: resistance against padding evasions

Scenario is use of dummy padding in write AndX request
or other similar commands using a data offset.

Parsing skips now these dummy bytes, and generates one event

4 years agosmb: adds file overlap event against evasions
Philippe Antoine [Tue, 14 Apr 2020 08:30:33 +0000 (10:30 +0200)] 
smb: adds file overlap event against evasions

Evasion scenario is
- a first dummy write of one byte at offset 0 is done
- the second full write of EICAR at offset 0 is then done
and does not trigger detection

The last write had the final value, and as we cannot "cancel"
the previous write, we set an event which is then transformed into
an app-layer decoder alert

4 years agordp: fix incomplete result
Philippe Antoine [Thu, 1 Oct 2020 07:54:13 +0000 (09:54 +0200)] 
rdp: fix incomplete result

Aggregating the consumed bytes

4 years agodetect: fix use of uninit memory in DetectDatarepParse
Philippe Antoine [Thu, 1 Oct 2020 13:21:47 +0000 (15:21 +0200)] 
detect: fix use of uninit memory in DetectDatarepParse

By initializing to empty string

4 years agoutil: fix warning about format string for integer
Philippe Antoine [Thu, 24 Sep 2020 13:28:58 +0000 (15:28 +0200)] 
util: fix warning about format string for integer

4 years agoutil: THashInitConfig limits hash size when fuzzing
Philippe Antoine [Thu, 17 Sep 2020 08:51:29 +0000 (10:51 +0200)] 
util: THashInitConfig limits hash size when fuzzing

4 years agoutil: THashInitConfig does not exit but return error
Philippe Antoine [Thu, 17 Sep 2020 08:18:39 +0000 (10:18 +0200)] 
util: THashInitConfig does not exit but return error

4 years agoenip: set unidirection transaction flag
Jason Ish [Mon, 5 Oct 2020 21:05:41 +0000 (15:05 -0600)] 
enip: set unidirection transaction flag

4 years agodhcp: set unidirection transaction flag
Jason Ish [Mon, 14 Sep 2020 19:47:17 +0000 (13:47 -0600)] 
dhcp: set unidirection transaction flag