Project

General

Profile

Actions

Task #6048

closed

smtp: investigate if the stream depth is set correctly post the line boundaries in place

Added by Shivani Bhardwaj over 1 year ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Low
Target version:
Effort:
Difficulty:
Label:

Description

min stream depth for reassembly seems to be calculated with line since forever. It was probably fine until the line was not truncated and followed just the stream but since the line limits in place, line len and delim len are changed in certain cases. This should probably not affect the min stream depth for reassembly

Actions #1

Updated by OISF Ticketbot over 1 year ago

  • Subtask #6049 added
Actions #2

Updated by OISF Ticketbot over 1 year ago

  • Label deleted (Needs backport to 6.0)
Actions #3

Updated by Juliana Fajardini Reichow over 1 year ago

  • Tracker changed from Bug to Task
  • Subject changed from smtp: figure out if the stream depth is set correctly post the line boundaries in place to smtp: investigate if the stream depth is set correctly post the line boundaries in place
Actions #4

Updated by Juliana Fajardini Reichow over 1 year ago

  • Subtask deleted (#6049)
Actions #6

Updated by Juliana Fajardini Reichow over 1 year ago

  • Priority changed from Normal to Low
Actions #7

Updated by Juliana Fajardini Reichow over 1 year ago

  • Status changed from New to Assigned
Actions #8

Updated by Juliana Fajardini Reichow over 1 year ago

  • Target version changed from 7.0.0-rc2 to 7.0.0
Actions #9

Updated by Shivani Bhardwaj over 1 year ago

While researching about this issue, I noticed that the depth for the stream and raw trigger reassembly happens iff we are dealing with a file attachment.
For file attachments, we anyway bypass the limit logic and have the entire file processed as-is.
Hence, I believe the stream depth is correctly set even with newer boundaries and logic in place. So, this ticket should be rejected.

Refs:
Setting min depth in stream:
https://github.com/OISF/suricata/blob/master/src/app-layer-smtp.c#L526
https://github.com/OISF/suricata/blob/master/src/app-layer-smtp.c#L560
https://github.com/OISF/suricata/blob/master/src/app-layer-smtp.c#L580
https://github.com/OISF/suricata/blob/master/src/app-layer-smtp.c#L602

Actions #10

Updated by Shivani Bhardwaj over 1 year ago

  • Status changed from Assigned to Rejected
Actions #11

Updated by Victor Julien about 1 year ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF