Newsgroups header creates an unbounded DOM list during message display
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(thunderbird_esr153 wontfix, thunderbird161 wontfix)
People
(Reporter: tjddbdud1, Assigned: mkmelin)
Details
Attachments
(1 file, 1 external file)
|
75.07 KB,
application/x-zip-compressed
|
Details |
Summary
Thunderbird renders every comma-separated token in an attacker-controlled Newsgroups header as a separate list item without a count or aggregate-length limit. Opening a crafted message synchronously creates hundreds of thousands of DOM nodes on the main thread, producing a multi-second UI freeze and large transient memory pressure.
Suggested classification
- Severity: Moderate / CVSS 3.1 4.3 (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L)
- CWE-400: Uncontrolled Resource Consumption
- Suggested component: Thunderbird / Message Reader UI
Affected code and trigger
- mail/base/content/msgHdrView.js:1540-1545 splits the complete header on every comma and calls addNewsgroup() for every token.
- mail/base/content/widgets/header-fields.js:918-924 creates and appends one list item for every accumulated value.
- The Newsgroups header is part of the normal message-header view, so the work occurs when the victim selects or opens the message.
Validated at official main commit 2cd521b9ddeb39af29913d31faba90740256fd58 (2026-10-14T23:43:13Z) and Daily 160.0a1 build 20261014102410.
Reproduction and observed result
The attached generator creates standards-folded synthetic EML files. The PoC opens each in a real Thunderbird message window and counts rendered list items. The observation timer is scheduled for 1.5 seconds, so excess time is main-thread delay.
1 group / 371 bytes: 1,503.69 ms, 1 rendered list item
40k / 642,488 bytes: 1,503.61 ms, 40,000 rendered list items
80k / 1,284,624 bytes: 1,733.89 ms, 80,000 rendered list items
160k / 2,568,896 bytes: 4,253.63 ms, 160,000 rendered list items
240k / 3,853,168 bytes: 5,874.30 ms, 240,000 rendered list items
The parsed header lengths were preserved and the DOM contained exactly the attacker-selected number of elements.
Impact
A remote sender can cause a multi-second whole-UI stall when the victim opens or selects the message. Larger values increase both node allocation and memory pressure. The message body does not need script, active content, or network resources.
Suggested fix
Enforce a conservative aggregate Newsgroups header length and display-count limit. Render only a bounded prefix and summarize the remainder instead of materializing one DOM node per token.
Duplicate check
Public Bugzilla searches on 2026-10-15 found no report for this unbounded Newsgroups header DOM expansion path. Hidden security duplicates cannot be ruled out. The ZIP contains the generator, samples, PoC, runner, report, and captured runtime evidence; all data are synthetic.
Updated•27 days ago
|
| Assignee | ||
Comment 1•23 days ago
|
||
Not a sec issue. I'd say a very mild performance bug.
But we already have a mechanism for it, just not fully hooked up.
| Assignee | ||
Comment 2•23 days ago
|
||
The Newsgroups and Followup-To rows created a list item for every comma
separated newsgroup in the header, so a huge header created an unbounded number
of DOM nodes.
Move the logic limiting the References row to the first and last 10 ids, with
an ellipsis button showing the hidden ones in batches of 200, into a
ListHeaderRow base class, and use it for both rows. Limit the height of the
newsgroups list and let it scroll, like the ids list.
| Assignee | ||
Updated•14 days ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6b26aac8dc01
Limit the number of newsgroups shown in the Newsgroups header row. r=tobyp
Description
•