Skip to content

Malformed-input DoS and out-of-bounds reads in IPFIX and NetFlow v9 decoders #45

Open

Description

@britram

Pre-existing 0.9 decoder vulnerabilities (fixed in #34):

  • setlen < 4 (e.g., setlen == 0) caused infinite loops in MessageBuffer._scan_setlist(), StreamPduBuffer.next_set(), and SinglePduBuffer.next_set().
  • Zero-length IE fields (length == 0) and templates with minlength == 0 caused infinite loops in record_iterator().
  • MessageBuffer.read_message() did not check self.length > len(self.mbuf) before slicing/reading into the buffer.
  • Missing bounds checks on truncated set/template/IE/enterprise-number headers and variable-length prefixes/payloads extending past setend allowed decoding to read stale bytes remaining in mbuf across sets or messages instead of raising IpfixDecodeError.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions