Commit Graph

10834 Commits (suricata-5.0.6)
 

Author SHA1 Message Date
Victor Julien b46125a64b release: 5.0.6; update changelog; require htp 0.5.37 4 years ago
Victor Julien 16d00160b9 app-layer: fix transaction cleanup
Fix a 'skipped' transaction early in the list leading to all further
transactions getting skipped, even if they were fully processed and
ready to be cleaned up.

(cherry picked from commit 8baef60d60)
4 years ago
Victor Julien 9f87caf756 detect/prefilter: fix handling of prefilter as fast_pattern alias
(cherry picked from commit 0dd5921bc9)
4 years ago
Victor Julien 2bbfe8ba3a classification: sync and update
Sync to latest ET open and introduce inappropriate as a classification
to replace something some find inappropriate.

(cherry picked from commit f037f6f4ff)
4 years ago
Philippe Antoine 03749d9bcc smb: relax probing parser to handle first NBSS message
cf dcerpc-udp S-V test :
First message is Message Type: Session request (0x81)
Second message is SMB

(cherry picked from commit 8307010255)
4 years ago
Philippe Antoine 24ef92c080 detect: fix overflows in SetupU8Hash
For instance ">255" resulted in overflow

(cherry picked from commit 2d765d6c68)
4 years ago
Philippe Antoine 013117bc63 modbus: stop allocating transactions when flooded
cf #4224

(cherry picked from commit 89030d3e59)
4 years ago
Philippe Antoine ebd94211ad ssl: reset state when breaking out of SSLV3_HANDSHAKE_PROTOCOL
So that we cannot resumt it with corrupted values

(cherry picked from commit eb460cf78d)
4 years ago
Philippe Antoine b71227aa34 detect: forbids unsupported prefilters
(cherry picked from commit b7fd01c86e)
4 years ago
Philippe Antoine 273a06f1e1 decode: limits the number of decoded layers
so as to avoid overrecursion leading to stack exhaustion

(cherry picked from commit 7500c29300)
4 years ago
Jason Ish 0cdbdd597a filestore: fix global counter init in unix socket mode
Move initialization of filestore global counter to PreRunInit,
so they get registered during program initialization, or as
required in unix-socket mode, initialized for each file run.

Fixes Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4216

(cherry picked from commit 0aed5e188b)
4 years ago
Jason Ish e56fa815ad github-ci: use suricata-update master-1.1.x branch
Suricata 5.0.x tracks the Suricata-Update 1.1.x branch.
4 years ago
Ilya Bakhtin 176ba4451a stream/tcp: fix stream side after direction change
(cherry picked from commit 1ecea0f44c)
5 years ago
Philippe Antoine 6b8a0a8ef3 http: makes decompression time limit configurable
(cherry picked from commit a04b5566a6)
5 years ago
Ilya Bakhtin 24eeabfbf9 protodetect: improve midstream handling
Set "done flag" only if parsers for both directions are not found in a
case of midstream parsers from other direction are tried if nothing is found
for the initial one. "done flag" must be set if nothing is found in both
directions. Otherwise processing of incomplete data is terminated at the very
first try.

(cherry picked from commit 5285163d8f)
5 years ago
Philippe Antoine f0beb239fe tcp: remove debug asserts about large windows
Completes 00d7c9034b

(cherry picked from commit 7264f58f2c)
5 years ago
Jeff Lucovsky b0746091b5 detct/pcre: Correct capture group count check
This commit corrects the validation check between the number of
variables used and the number of specified capture groups.

(cherry picked from commit 469d5bb214)
5 years ago
Victor Julien 78a64a0580 alert/syslog: fix minor compile warning
(cherry picked from commit 62cc0c7acf)
5 years ago
Victor Julien d29c40ffaf proto/names: add SCTP if not defined in system
If SCTP is missing from /etc/protocols, add it manually.

(cherry picked from commit bf00285d0a)
5 years ago
Victor Julien 0cb70651aa host: improve compare logic
The old compare macro would compare all bytes of an address, even
when for IPv4 addresses the additional bytes were not in use. This
made the logic vulnerable to mistakes like in issue #4280.

(cherry picked from commit 6bfc5afa23)
5 years ago
Victor Julien efe7a65ead detect/iprep: fix loading of mixed ipv4/ipv6 lists
Improper reuse of the address data structure between loading
different lines in the iprep file would lead to the host using
a malformed address.

(cherry picked from commit 7b03e6837e)
5 years ago
Eric Leblond e573433ed7 suricata: avoid at exit crash in nfq mode
When Suricata was build with ebpf support and when it was started
in NFQ mode, it was crashing at exit because it was trying to free
the device extension.

This patch fixes the issue by only trigger the eBPF related code
when Suricata is running in AFP_PACKET mode.

(cherry picked from commit 85327890f5)
5 years ago
Eric Leblond 404d74df0d dataset: fix dataset string lookup
The data was unlocked but the use_cnt was not decreased resulting
in the data entry not being removable.

(cherry picked from commit 64f994f753)
5 years ago
Gianni Tedesco 38ad4527e2 detect-fast-pattern: Mark as OPTIONAL_OPT, instead of NOOPT
Also update the erroneous comment about it.

(cherry picked from commit cebe15c23b)
5 years ago
Gianni Tedesco a2363bbd09 detect: Validate that NOOPT options don't have optvals
Without this, a simple typo between : and ; is able to hide actual bugs
in rules.

I discovered 2 bugs in ET open ruleset this way.

(cherry picked from commit 10ea60a237)
5 years ago
Jason Ish 36ad45e13d dns: initialize log flags as an unsigned long long
On 64 bit all 64 bits were being initialized, but on 32 bit
only 32 bits were as it was being initialized as a long.

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

(cherry picked from commit f2ab5803fb)
5 years ago
Jason Ish fecbd59d62 github-ci: use python3 in debian builds
(cherry picked from commit 18a1fd22c2)
5 years ago
Jason Ish f4c5a61e1c github-ci/macos: use brew to install Python 3
The default Python on MacOS is Python 2. Suricata-Verify now
depends on Python 3, so install it with Brew.

(cherry picked from commit 7904ef82d0)
5 years ago
Jeff Lucovsky 8519a9af33 rust/json: Rework scope for short-lived vars
This commit corrects scope issues identified during CI with
FC32/strict-rust:
"this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
"
5 years ago
Victor Julien f50ac5d7c8 rust: lock major versions of crates 5 years ago
Victor Julien 41694363a9 rust: lock to byteorder ~1.3.4 to avoid MSRV bump 5 years ago
Philippe Antoine 3390655996 signature: Fix leak in urilen parsing
cf #4254

(cherry picked from commit 47dd9a5ebc)
5 years ago
Victor Julien 0b8b8aa46a detect/file.name: register inspect engine for ftp-data
(cherry picked from commit 45eddde573)
5 years ago
Jeff Lucovsky 9a9d5e80ea decode/tcp: Improved handling of TFO options
This commit improves handling of TCP fast open options
- Option length must be in [6, 18]
- Option length must be an even value

(cherry picked from commit f8fef0dd05)
5 years ago
Victor Julien b756729e4d stream/midstream: handle packet loss after SYN/ACK
(cherry picked from commit db2dbaaf40)
5 years ago
Victor Julien b9a119bac9 stream/tcp: fix invalid ack events in timewait state
(cherry picked from commit 895938080f)
5 years ago
Jason Ish 69bae47b82 mime: postpone md5 calculation to parse complete
Instead of calculating the MD5 at the end of every part, only
compute it when parsing is complete.

With libnss, the hash never updates after the first HASH_End, so
the md5 of only the first part of the body is logged, rather than
the md5 of all the parts.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4245
5 years ago
Victor Julien 317e045163 flow/timeout: fix TCP seq/ack for reversed flows
When a flow is swapped it also swaps the stream trackers, so it does
not make sense to reverse them during pseudo packet creation.

(cherry picked from commit 49bd1f85b9)
5 years ago
Victor Julien 024c03fa44 detect/stream: fix async stream inspection
Move raw progress forward only if detect uses stream data, indicated
by the PKT_DETECT_HAS_STREAMDATA flag.

(cherry picked from commit 3c7c361b60)
5 years ago
Victor Julien fafcb282d8 stream/tcp: fix async mode ACK validation
(cherry picked from commit 8aa02c6d15)
5 years ago
Victor Julien ac731ecec1 version: branch is going towards 5.0.6 5 years ago
Victor Julien fdb97d5deb ci: buildbot is decommissioned, so remove prscript refs
(cherry picked from commit 372fc26739)
5 years ago
Sascha Steinbiss 77f7373b09 doc: build all manpages 5 years ago
Jason Ish 0506eab3c7 github-ci: fix centos 8 build
The "PowerTools" repo that we need to enable has been renamed
to "powertools".
5 years ago
Jason Ish d770da7341 github-ci: use a unique id for the commit check cargo cache
All builds have been using the same cache id for ~/.cargo which
could lead us to conflict situations which is what I think we are
seeing with the commit-check job.

(cherry picked from commit 49ca070446)
5 years ago
Jason Ish 38d202645d github-ci: Master CI improvements re: Travis CI
This is a squashed commit of the following items:

github-ci: Fedora 32 builder with asan enabled

Also enables -Wshadow and rust-strict to cover those cases
from Travis.

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

(cherry picked from commit c91b43a3fd)

github-ci: ubuntu 20.04 build without nss/nspr

Adds a test that builds and tests Suricata without nss/nspr
to replace the similar test on Travis-CI.

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

(cherry picked from commit 7ea2187f91)

github-ci: Ubuntu 20.4 build with -NDEBUG

To cover Travis-CI test that builds with -NDEBUG.

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

(cherry picked from commit 0dc6434e61)

github-ci: enable debug on Fedora 32 build

(cherry picked from commit db0be04988)

github-ci: update debian 9 test to use known Rust version

Choose Rust 1.39.0 as a known version of Rust that we build against
to see in CI if we build with this version, but fail with latest.

This is to cover a similar test from Travis CI.

(cherry picked from commit 94ac702159)

github-ci: add test build without jansson

This is to cover a test from Travis CI where we make sure
that ./configure fails if libjansson is not available.

(cherry picked from commit a35756e140)

github-ci: apply default CFLAGS to all builds

(cherry picked from commit b3a55a4cd5)

github-ci: Fixups for parity with master

rust: add doc target to build rust docs

Uses "cargo doc --no-deps" to build the documentation just for
our Suricata package. Without --no-deps, documentation will be
build for all our dependencies as well.

The generated documentation will end up in target/doc as HTML.

(cherry picked from commit 7ca24041b6)

github-ci: CentOS 6 is EOL

(cherry picked from commit 3ea33f5e47)
5 years ago
Victor Julien b7140a48f4 release: 5.0.5; update changelog; require htp 0.5.36 5 years ago
Jeff Lucovsky b79799c2fd app-layer: Remove errant validation BUG
This commit removes an errant validation debug check brought into 5.0.x
mistakenly.
5 years ago
Jason Ish 3892f374f7 dnp3: regenerate dnp3 object decoders 5 years ago
Jason Ish da4f31dcf8 script/dnp3-gen: update generator to reflect in tree changes
Some changes were made to the generated files instead of the
generator script. Update the script to generate what is
in the current state of the in-tree generated files.

(cherry picked from commit 4976afd96a)
5 years ago