Project

General

Profile

Actions

Optimization #2400

closed

Raise error when content length is longer than depth value

Added by Jack Mott over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

Can we receive an error when the length of a content is longer than the subsequent depth value, similar to how the "within" keyword behaves?

Example, which won't fire, but does not show error:

content:"Microsoft BITS/"; http_user_agent; depth:5;

When using the within keyword when the content length is longer than the value of "within" we receive this error:

<Error> - [ERRCODE: SC_ERR_WITHIN_INVALID(106)] - within argument "5" is less than the content length "15" which is invalid, since this will never match. Invalidating signature


Files

depth-example.pcap (1.72 KB) depth-example.pcap Jack Mott, 01/02/2018 02:46 PM

Related issues 1 (0 open1 closed)

Is duplicate of Suricata - Bug #2293: rules: depth < content rules not rejectedClosedVictor Julien11/28/2017Actions
Actions

Also available in: Atom PDF