Skip to content
Access control Disclosed report CVE-2012-4210

Arbitrary code execution from Style Inspector

Mariusz Mlynski Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 30 days
  • Paid in 10 months
  • Disclosed after 30 days
Text
Created attachment 666916
An exploit for Windows, opens C:\Windows\System32\calc.exe

It is possible to execute arbitrary code when a user inspects computed styles on a malicious website containing a specially crafted style sheet.

The problem lies in the function PropertyView_refresh in CssHtmlTree.jsm, which writes user-controlled CSS values to innerHTML without sanitizing the input. This paves the way for an HTML markup injection in the privileged context of chrome://browser/content/devtools/csshtmltree.xul

The original report as published on Mozilla's Bugzilla, by Mariusz Mlynski. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A critical-severity access control bug in Inspector. Mozilla made it public on 1 November 2012 as CVE-2012-4210.

About Access control

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Mariusz Mlynski

View all

26 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.