Arbitrary code execution from Style Inspector
Originally disclosed on Mozilla
- Fixed in 30 days
- Paid in 10 months
- Disclosed after 30 days
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
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.