mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/awelzel/smb2-state-handling'
* origin/topic/awelzel/smb2-state-handling: NEWS: Add entry about SMB::max_pending_messages and state discarding scripts/smb2-main: Reset script-level state upon smb2_discarded_messages_state() smb2: Limit per-connection read/ioctl/tree state
This commit is contained in:
commit
12252743b1
17 changed files with 183 additions and 2 deletions
10
NEWS
10
NEWS
|
@ -316,6 +316,16 @@ Changed Functionality
|
|||
instead, hello retry requests were logged like as a server hello (with the letter
|
||||
`s`). This oversight was fixed, and hello retry requests are now correctly logged.
|
||||
|
||||
- When per-connection SMB parser state (read offsets, tree ids, ...) exceeds
|
||||
``SMB::max_pending_messages`` (default 1000), Zeek discards such per-connection
|
||||
state and raises a new ``smb2_discarded_messages_state()`` event. This event is
|
||||
used to reset script-layer SMB state. This change provides protection against
|
||||
unbounded state growth due to partial or one-sided SMB connections.
|
||||
|
||||
Setting ``SMB::max_pending_messages`` to 0 can be used to switch back to the
|
||||
previous behavior of not discarding state. Setting ``SMB::enable_state_clear``
|
||||
to ``F`` skips the script-layer state clearing logic.
|
||||
|
||||
Removed Functionality
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue