Closed Bug 2038669 Opened 6 months ago Closed 6 months ago

Don't apply event handlers from xulstore.json

Categories

(Core :: XUL, defect)

defect

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox-esr115 151+ fixed
firefox-esr140 151+ fixed
firefox150 + wontfix
firefox151 + fixed
firefox152 + fixed

People

(Reporter: tschuster, Assigned: tschuster)

References

Details

(Keywords: csectype-priv-escalation, sec-moderate, Whiteboard: [adv-main151+r][adv-esr115.36+r][adv-esr140.11+r])

Attachments

(4 external files, 1 obsolete file)

No description provided.
Attached file (secure) —
Assignee: nobody → tschuster
Status: NEW → ASSIGNED

[Tracking Requested - why for this release]: Part of the exploit chain in bug 2038573

Comment on attachment 9585136 [details]
(secure)

Security Approval Request

  • How easily could an exploit be constructed based on the patch?: Not very easily. Without another exploit to make us load the xulstore.json.
  • Do comments in the patch, the check-in comment, or tests included in the patch paint a bulls-eye on the security problem?: Yes
  • Which branches (beta, release, and/or ESR) are affected by this flaw, and do the release status flags reflect this affected/unaffected state correctly?: all
  • If not all supported branches, which bug introduced the flaw?: None
  • Do you have backports for the affected branches?: Yes
  • If not, how different, hard to create, and risky will they be?: This code doesn't seem to have meaningfully changed in years.
  • How likely is this patch to cause regressions; how much testing does it need?: Very low. We don't use event handler attributes in our own code and the persist code was only really meant for a handful of known properties.
  • Is the patch ready to land after security approval is given?: Yes
  • Is Android affected?: No
Attachment #9585136 - Flags: sec-approval?
Attachment #9585136 - Flags: sec-approval? → sec-approval+

Please add uplift requests to this bug for all branches when you get a chance.

Group: dom-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
Attached file (secure) —
Attachment #9585560 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: This is a hardening change to break part of an exploit chain.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: We should never be persisting event handlers in our xulstore during normal operation. Skipping them should always be safe.
  • String changes made/needed?: no
  • Is Android affected?: no

firefox-esr115 Uplift Approval Request

  • User impact if declined/Reason for urgency: This is a hardening change to break part of an exploit chain.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: We should never be persisting event handlers in our xulstore during normal operation. Skipping them should always be safe.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9585561 - Flags: approval-mozilla-esr115?
Attached file (secure) —

firefox-esr140 Uplift Approval Request

  • User impact if declined/Reason for urgency: This is a hardening change to break part of an exploit chain.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: We should never be persisting event handlers in our xulstore during normal operation. Skipping them should always be safe.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9585562 - Flags: approval-mozilla-esr140?
Attached file (secure) —

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: This is a hardening change to break part of an exploit chain.
  • Code covered by automated testing?: no
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: We should never be persisting event handlers in our xulstore during normal operation. Skipping them should always be safe.
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9585563 - Flags: approval-mozilla-release?
Attached file (secure) (obsolete) —
Flags: needinfo?(tschuster)
Attachment #9585560 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9585562 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+
Attachment #9585561 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
QA Whiteboard: [sec] [uplift] [qa-triage-done-c152/b151]
Attachment #9585563 - Attachment is obsolete: true
Attachment #9585563 - Flags: approval-mozilla-release?
Whiteboard: [adv-main151+][adv-main151+][adv-main151+][adv-esr115.36+][adv-esr115.36+][adv-esr115.36+][adv-esr140.11+][adv-esr140.11+][adv-esr140.11+]
Whiteboard: [adv-main151+][adv-main151+][adv-main151+][adv-esr115.36+][adv-esr115.36+][adv-esr115.36+][adv-esr140.11+][adv-esr140.11+][adv-esr140.11+] → [adv-main151+][adv-esr115.36+][adv-esr140.11+]
Whiteboard: [adv-main151+][adv-esr115.36+][adv-esr140.11+] → [adv-main151+r][adv-esr115.36+r][adv-esr140.11+r]

This patch fixes part of the exploit chain for the sandbox escape in bug 2038573. It meets the criteria for our exploit mitigation bounty category.

Flags: sec-bounty+
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: