Project

General

Profile

Actions

Optimization #7430

open
JI JI

dns: parse more than 255 name segments to find end of name

Optimization #7430: dns: parse more than 255 name segments to find end of name

Added by Jason Ish over 1 year ago. Updated about 2 months ago.

Status:
Assigned
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Currently if the DNS parser hits the 255 label limit with no pointer reached, and not end of name indicator, parsing will fail, as we don't yet know the end of the data. Per @Philippe Antoine we should just keep on parsing if not loop condition is hit - this will get us to the end of data.


Related issues 1 (0 open1 closed)

Blocked by Suricata - Security #7280: dns: quadratic complexity in logging and invalid json as outputClosedJason IshActions

JI Updated by Jason Ish over 1 year ago Actions #1

  • Blocked by Security #7280: dns: quadratic complexity in logging and invalid json as output added

JI Updated by Jason Ish over 1 year ago Actions #2

  • Subject changed from dns: keep parsing pass current iteration limit if not pointer has been reached to dns: parse more than 255 name segments to find end of name

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

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Jason Ish

VJ Updated by Victor Julien 12 months ago Actions #4

  • Target version changed from 8.0.0-beta1 to 9.0.0-beta1

PA Updated by Philippe Antoine about 2 months ago Actions #5

Hmm

dig 0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.com

'....com' is not a legal name (ran out of space)

Actions

Also available in: PDF Atom