Project

General

Profile

Actions

Bug #7467

closed
HV JL

detect: checksum detection broken by stream.checksum-validation

Bug #7467: detect: checksum detection broken by stream.checksum-validation

Added by Hans Vermeer over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Taken from https://forum.suricata.io/t/custom-content-detection/4784/5

As mentioned in the issue, when stream.checksum-validation is set to false, a packet will get the PKT_IGNORE_CHECKSUM flag, bypassing all checksum related rules in detect-csum.c.

We've come across routers stripping TCP options from SYN packets without them properly updating the checksum afterwards. We would like to detect this behavior, while still having these incorrect packets progress to the tcp-reassembler. It doesn't seem like this is currently possible.


Files

detect-chksum.tar.gz (2.04 KB) detect-chksum.tar.gz Hans Vermeer, 12/18/2024 12:35 PM

Subtasks 1 (0 open1 closed)

Bug #7468: detect: checksum detection broken by stream.checksum-validation (7.0.x backport)ClosedJeff LucovskyActions

VJ Updated by Victor Julien over 1 year ago Actions #1

  • Subject changed from Checksum detection to detect: checksum detection broken by stream.checksum-validation
  • Target version changed from TBD to 8.0.0-beta1
  • Label Needs backport to 7.0 added

I agree that this shouldn't happen.

Are you able to craft a SV test for this issue?

OT Updated by OISF Ticketbot over 1 year ago Actions #2

  • Subtask #7468 added

OT Updated by OISF Ticketbot over 1 year ago Actions #3

  • Label deleted (Needs backport to 7.0)

HV Updated by Hans Vermeer over 1 year ago Actions #4

I've attached a test I created with stream.checksum-validation=yes then switching to stream.checksum-validation=no fails the test as attached, is this enough to confirm the bug?

JL Updated by Jeff Lucovsky about 1 year ago Actions #5

  • Assignee changed from OISF Dev to Jeff Lucovsky

JL Updated by Jeff Lucovsky about 1 year ago Actions #6

  • Status changed from New to In Review

JL Updated by Jeff Lucovsky about 1 year ago Actions #7

  • Status changed from In Review to Resolved

JI Updated by Jason Ish about 1 year ago Actions #8

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom