Closed Bug 1611993 Opened 5 years ago Closed 5 years ago

nsImageBoxFrame runs script at unsafe times

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox-esr68 --- wontfix
firefox72 --- wontfix
firefox73 --- wontfix
firefox74 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

(Keywords: sec-other, Whiteboard: [post-critsmash-triage][adv-main74-])

Attachments

(1 file)

nsImageBoxFrame::UpdateImage calls nsContentUtils::LoadImage which ends up doing the newChannel; call, getting the protocol handler etc. The protocol handler in this case is PageIconProtocolHandler which is implemented in script, so we run that script while in an unsafe state (in the middle of an attribute mutation).

I wonder whether we can put the LoadImage call on a scriptrunner here.

Note: security impact is likely none.

Keywords: sec-other
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Group: core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Flags: qe-verify-
Whiteboard: [post-critsmash-triage]
Whiteboard: [post-critsmash-triage] → [post-critsmash-triage][adv-main74-]
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: