Re:Angular 1.x Banned from Firefox Addons
by secmax on Thursday October 20, 2016 @02:12PM
(#12754729)
So a vulnerability of this kind would not only affect Firefox but also Chrome and others?
[ Parent
| on HN ]
Re:Angular 1.x Banned from Firefox Addons
by nathancahill on Thursday October 20, 2016 @02:15PM
(#12754751)
Every browsers addon runtime is different. Firefox is working on standardizing things with it's Web Extensions API (modeled after Chromium's API). But potentially, yes.
Re:Angular 1.x Banned from Firefox Addons
by AgentME on Thursday October 20, 2016 @03:30PM
(#12755346)
Most likely. Angular evals stuff from the DOM. Chrome extensions share the DOM with the webpage like Firefox extensions.
Re:Angular 1.x Banned from Firefox Addons
by codedokode on Thursday October 20, 2016 @03:54PM
(#12755552)
In Chrome content scripts (the ones that are injected into a page from an extension) run in some kind of isolated mode: https://developer.chrome.com/extensions/content_scripts
Yet they have some privileges a normal script doesn't have, for example the ability to post messages to parent extension which can be exploited.
Re:Angular 1.x Banned from Firefox Addons
by AgentME on Thursday October 20, 2016 @04:06PM
(#12755647)
They still see the same content in the DOM. The extension just has a separate javascript-wrapper around the DOM. This means that an extension will not be affected if a webpage monkey-patches a DOM method to do something else. But if a webpage places some specific text content inside an HTML element, then the extension will see that same text content! (And Angular running in the extension can still choose to recognize that content as a template and eval it.)