Victor Julien
479078d377
detect/content: add more negation tests
4 years ago
Victor Julien
c41e64d637
dnp3: reword warning message
4 years ago
Victor Julien
36a93380a5
defrag: fix pthread warning on OpenBSD
4 years ago
Victor Julien
95729e923f
configure: remove left over reference to unified2
4 years ago
Victor Julien
c95850c6ce
doc/rules: document config rule option
4 years ago
Victor Julien
8fdee4f685
version: start development towards 6.0.1
4 years ago
Victor Julien
5219691f45
version: update to 6.0.0, require libhtp 0.5.35
4 years ago
Victor Julien
df5f96c5f0
changelog: update for 6.0.0 final
4 years ago
Jason Ish
400b26ad68
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 ago
Philippe Antoine
61d0cd1399
signature: checks protocol for file.name keyword
...
By setting the flags as for the filename keyword (not sticky version)
4 years ago
Philippe Antoine
bde0c88984
dnp3: more precise probing for banners
4 years ago
Philippe Antoine
12dfc33e05
dnp3: fix probing test not using final null in string
4 years ago
Philippe Antoine
1fd6f5bc61
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 ago
Philippe Antoine
4706b38866
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 ago
Philippe Antoine
aaa69fe3c5
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 ago
Philippe Antoine
caa7946888
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 ago
Philippe Antoine
3e96f96153
rdp: fix incomplete result
...
Aggregating the consumed bytes
4 years ago
Philippe Antoine
f9c6b60edc
detect: fix use of uninit memory in DetectDatarepParse
...
By initializing to empty string
4 years ago
Philippe Antoine
6b735a2e57
util: fix warning about format string for integer
4 years ago
Philippe Antoine
dc7a9d2b46
util: THashInitConfig limits hash size when fuzzing
4 years ago
Philippe Antoine
dcd5e4dec9
util: THashInitConfig does not exit but return error
4 years ago
Jason Ish
2b215a45e0
enip: set unidirection transaction flag
4 years ago
Jason Ish
0529a00ffd
dhcp: set unidirection transaction flag
4 years ago
Jason Ish
3036ec4db0
ikev2: set unidirection transaction flag
4 years ago
Jason Ish
ff674d0cd0
mqtt: set unidirection transaction flag
4 years ago
Jason Ish
54d5f336d4
sip: set unidirection transaction flag
4 years ago
Jason Ish
1d40d0c5f9
rdp: set unidirection transaction flag
4 years ago
Jason Ish
f7dee602e9
krb5: set unidirection transaction flag
4 years ago
Jason Ish
984d3c7f20
ntp: set unidirection transaction flag
4 years ago
Jason Ish
fc7d59d92f
snmp: set unidirectional transaction flag
4 years ago
Jason Ish
60ebc27c4e
app-layer: handle unidirectional transactions
4 years ago
Philippe Antoine
2eacc6a9a8
ssl: adds safety checks
...
Ensure the client version is valid by checking hello flags
Ensure no integer underflow occurs in SSLv3ParseHandshakeType
4 years ago
Jeff Lucovsky
4624e66cdd
detect/transform: Validator for compress-ws
...
This commit adds a buffer validator for compress whitespace. Buffers
containing two or more consecutive whitespace characters are invalid
with this transform.
4 years ago
Jeff Lucovsky
30b1d7a9c1
detect: Correct typo
4 years ago
Jeff Lucovsky
7ab986250a
detect/file-data: Apply transforms on file_data
...
This commit cause transforms to be applied on the sticky buffer.
4 years ago
Victor Julien
e07a4393a9
http: error check htp_list_size
...
This avoids a potential casting to uint64_t of -1, leading to a very
high upper bound of the tx loop.
4 years ago
Jeff Lucovsky
6f9b7e052a
doc/eve: Update threaded filename examples
4 years ago
Jeff Lucovsky
8f009cf9b5
output/json: Update threaded filename example
4 years ago
Jeff Lucovsky
a75e9667ce
log/eve: Threaded filename change: eve.N.json
...
This commit changes the name of the file used with threaded eve logging
to better support log rotation
Instead of using "eve.json.N" and creating potential issues with log
rotation (which also uses a ".N" suffix), the eve logs will be named
"eve.N.json" when threaded.
4 years ago
Jeff Lucovsky
73567272cd
path: SCBasename - function to return basename
...
This commit returns the basename of a file, if it exists
in the same way that `basename(1)` works.
4 years ago
Jeff Lucovsky
db9776af64
detect/rules: Fix copy/paste error
...
This commit corrects a copy/paste error handling the `include-mpm-stats`
configuration setting.
4 years ago
Jeff Lucovsky
41967a53ec
detect: Apply clang-format updates
4 years ago
Jeff Lucovsky
d911fb87b8
detect/rules: Increase array size to remove SEGV
...
This commit changes the size of reporting variables to be dynamic based
on the buffer ids in use instead of a fixed value to address a SEGV when
the fixed value was less than the max buffer/type id in use.
4 years ago
Jason Ish
13049ae09d
scripts/setup-app-layer: fix rust generation
...
Fix Rust app-layer generation. Main parser file was being named
gopher.rs instead of the name of the protocol.
4 years ago
Philippe Antoine
64fcba228b
http2: complete parsing of priority frames
4 years ago
Philippe Antoine
c300a859a0
http2: keep track of dynamic headers table size
...
And evict entries accordingly to maximum size
4 years ago
Philippe Antoine
1a21eea0e9
http2: variable size integers decoded everywhere
4 years ago
Philippe Antoine
b21acfbf21
http2: StreamIdReuse frame types exceptions
...
Also handles better the state so as not to revert from
HTTP2StateHalfClosedClient to HTTP2StateDataServer and not
go to final HTTP2StateClosed
4 years ago
Philippe Antoine
89573060d9
http2: use variable integer for headers lengths
4 years ago
Philippe Antoine
d57275fa64
protodetect: rerun probing parser if pattern matched
...
If a pattern matches in the other direction, after
probing parser finished without finding a protocol,
we will rerun the probing parser, which will include
the newly protocol found by its pattern
4 years ago