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 12 months ago. Updated 7 months 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 12 months ago

  • Subtask #6049 added
Actions #2

Updated by OISF Ticketbot 12 months ago

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

Updated by Juliana Fajardini Reichow 12 months 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 12 months ago

  • Subtask deleted (#6049)
Actions #6

Updated by Juliana Fajardini Reichow 12 months ago

  • Priority changed from Normal to Low
Actions #7

Updated by Juliana Fajardini Reichow 12 months ago

  • Status changed from New to Assigned
Actions #8

Updated by Juliana Fajardini Reichow 12 months ago

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

Updated by Shivani Bhardwaj 11 months 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 11 months ago

  • Status changed from Assigned to Rejected
Actions #11

Updated by Victor Julien 7 months ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF