Project

General

Profile

Actions

Security #6306

closed
PA PA

mime: quadratic complexity in MimeDecAddEntity

Security #6306: mime: quadratic complexity in MimeDecAddEntity

Added by Philippe Antoine over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Label:
CVE:
Git IDs:
Severity:
CRITICAL
Disclosure Date:

Description

Found by quadfuzz

500 kilobytes pcap takes 40 seconds to process, just spending time adding to a linked list

The fuzz input to fuzz_mimedecparseline is

content-Type:;boundary=;

--

--

--

With the lines repeating many times

Solution to add to a linked list should be to keep the tail known


Files

lol.pcap (438 KB) lol.pcap Philippe Antoine, 09/11/2023 02:44 PM

Subtasks 1 (0 open1 closed)

Security #6363: mime: quadratic complexity in MimeDecAddEntity (6.0.x backport)ClosedPhilippe AntoineActions

PA Updated by Philippe Antoine over 2 years ago Actions #1

  • Status changed from New to In Review
  • Assignee changed from OISF Dev to Philippe Antoine

Gitlab MR

OT Updated by OISF Ticketbot over 2 years ago Actions #2

  • Subtask #6363 added

OT Updated by OISF Ticketbot over 2 years ago Actions #3

  • Label deleted (Needs backport to 6.0)

VJ Updated by Victor Julien over 2 years ago Actions #4

  • Severity changed from MODERATE to CRITICAL

PA Updated by Philippe Antoine over 2 years ago Actions #5

I wonder if there is the same issue with AddDataValue

PA Updated by Philippe Antoine over 2 years ago Actions #6

Philippe Antoine wrote in #note-5:

I wonder if there is the same issue with AddDataValue

No, because it is bound by mdcfg->header_value_depth

SB Updated by Shivani Bhardwaj over 2 years ago Actions #7

  • Status changed from In Review to Resolved

VJ Updated by Victor Julien over 2 years ago Actions #9

  • Private changed from Yes to No
Actions

Also available in: PDF Atom