Closed Bug 1703334 Opened 3 years ago Closed 3 years ago

Crash in [@ mozilla::dom::Element::SetAttr] called from L10nOverlays::OverlayAttributes

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox-esr78 90+ fixed
firefox89 - wontfix
firefox90 + fixed
firefox91 + fixed

People

(Reporter: smaug, Assigned: mccr8)

Details

(4 keywords, Whiteboard: [sec-survey][adv-main90+r][adv-esr78.12+r])

Attachments

(1 file)

This is to fix Andrew's findings in https://bugzilla.mozilla.org/show_bug.cgi?id=1696575#c4 .

Assignee: nobody → continuation
Severity: -- → S2
Status: NEW → ASSIGNED
Priority: -- → P2

Comment on attachment 9222659 [details]
Bug 1703334 - nsCOMPtr elem in DOMLocalization::ApplyTranslations().

Security Approval Request

  • How easily could an exploit be constructed based on the patch?: I'm not sure, but it is pretty obvious from the patch where you'd start looking.
  • Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem?: No
  • Which older supported branches are affected by this flaw?: all
  • If not all supported branches, which bug introduced the flaw?: None
  • Do you have backports for the affected branches?: No
  • If not, how different, hard to create, and risky will they be?: The patch is trivial, so backports should not be an issue.
  • How likely is this patch to cause regressions; how much testing does it need?: Very low. It just roots a DOM object on the stack.
Attachment #9222659 - Flags: sec-approval?

We're in RC week so we're going to hold this until after we release and put it in 90. I'd rather not land it until midway through 90's cycle.

Comment on attachment 9222659 [details]
Bug 1703334 - nsCOMPtr elem in DOMLocalization::ApplyTranslations().

Approved to land and uplift if desired

Attachment #9222659 - Flags: sec-approval? → sec-approval+

Comment on attachment 9222659 [details]
Bug 1703334 - nsCOMPtr elem in DOMLocalization::ApplyTranslations().

Beta/Release Uplift Approval Request

  • User impact if declined: possible sec issues
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It only roots a variable on the stack.
  • String changes made/needed: none

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration:
  • User impact if declined:
  • Fix Landed on Version: 91
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky):
  • String or UUID changes made by this patch:
Attachment #9222659 - Flags: approval-mozilla-esr78?
Attachment #9222659 - Flags: approval-mozilla-beta?
Group: dom-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

Comment on attachment 9222659 [details]
Bug 1703334 - nsCOMPtr elem in DOMLocalization::ApplyTranslations().

approved for 90.0b9 and 78.12esr

Attachment #9222659 - Flags: approval-mozilla-esr78?
Attachment #9222659 - Flags: approval-mozilla-esr78+
Attachment #9222659 - Flags: approval-mozilla-beta?
Attachment #9222659 - Flags: approval-mozilla-beta+

As part of a security bug pattern analysis, we are requesting your help with a high level analysis of this bug. It is our hope to develop static analysis (or potentially runtime/dynamic analysis) in the future to identify classes of bugs.

Please visit this google form to reply.

Flags: needinfo?(continuation)
Whiteboard: [sec-survey]
Flags: needinfo?(continuation)
QA Whiteboard: [post-critsmash-triage]
Flags: qe-verify-
Whiteboard: [sec-survey] → [sec-survey][adv-main90+r]
Whiteboard: [sec-survey][adv-main90+r] → [sec-survey][adv-main90+r][adv-esr78.12+r]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: