Skip to content

Bug 2009746 - #2693

Merged
dklawren merged 1 commit into
mozilla-bteam:masterfrom
dklawren:2009746
Aug 5, 2026
Merged

Bug 2009746#2693
dklawren merged 1 commit into
mozilla-bteam:masterfrom
dklawren:2009746

Conversation

@dklawren

@dklawren dklawren commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Carried r+ over from private pull request
https://bugzilla.mozilla.org/show_bug.cgi?id=2009746

Copilot AI balanced review requested due to automatic review settings August 5, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Bug 2009746 by preventing email-header injection through whine subjects.

Changes:

  • Sanitizes subjects before storage and delivery.
  • Builds headers through Email::MIME->create.
  • Adds regression coverage for malicious subjects.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
whine.pl Safely constructs whine email headers.
editwhines.cgi Sanitizes submitted subjects.
template/en/default/whine/subject.txt.tmpl Renders subject values separately.
template/en/default/whine/multipart-mime.txt.tmpl Removes raw MIME-header rendering.
t/whine-subject-header-injection.t Tests header-injection defenses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dklawren
dklawren merged commit 464400c into mozilla-bteam:master Aug 5, 2026
8 checks passed
@dklawren
dklawren deleted the 2009746 branch August 5, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants