Live data from Hacker News

Angular 1.x Banned from Firefox Addons

github.com

81–90 of 222 posts

Re: Angular 1.x Banned from Firefox Addons

#81
post #9
post #6

So someone found some sort of vulnerability in Angular 1, told Mozilla about it, but told them not to tell the Angular team? What is going on here?

It is possible that the researcher also secretly shared the results with Google, but then nothing happened?

> nothing happened

On the contrary - they reacted removing sandbox completely giving up handling sandbox bypassing snippets, the problem is in the design of the framework and it can't be just fixed.

Re: Angular 1.x Banned from Firefox Addons

#83

The banned version is the 1.5.8. Could the following announce be related? Angular 1.6 - Expression Sandbox Removal: https://angularjs.blogspot.mx/2016/09/angular-16-expression-...

Some examples of issues with the old sandbox can be found here: http://www.slideshare.net/x00mario/an-abusive-relationship-w...

The expression sandbox was not secure (and would be extremely difficult and heavily bloat the size of Angular to secure) and was not intended to be secure. It only blacklisted specific known attacks. As your link says, they removed it because people kept thinking it was a security feature they could rely on.

Angular runs eval on the page DOM. This isn't secure when the page DOM is controlled by an attacker (such as a webpage trying to elevate into an extension's privileges). Angular 1.x is the wrong tool to use within page extensions.

Re: Angular 1.x Banned from Firefox Addons

#84
post #64

Earlier quoted context omitted.

If you're the engineer in question (since your comment history suggests you work at Bitwarden), you should explicitly state that and explain that ignoring any vulnerability was not the intent of your comment.

Thanks. I updated the comment.

It's good you updated the Github comment, but you should also consider explicitly stating your affiliation when relevant when commenting on Hacker News in the future.

If you had done in this case, it would have immediately cleared up encoderer's questions about your Github comment.

Re: Angular 1.x Banned from Firefox Addons

#85
post #63

Ugh, this kind of thing gets my blood boiling. It was clearly said that _a security researcher_ disallowed Mozilla from reporting the vulnerability forward. It's the individual to blame, not Mozilla. In any case Personally I wouldn't want to run a large priviledged application as a browser extension when it's interacting with random webpages AND handling my security credentials. Too much attack surface.

Curious, do you use a password wallet/manager application, and if so how do you get passwords out of it and into the browser? I'd like to know if there's a better solution. (I use a browser extension.)

copy/paste. you can't trust password manager browser extensions.

Don't just take my word for it: https://twitter.com/taviso/status/769378052254015488

There were a few high profile ones recently reported by Tavis, but there have been many in the past, and it looks like no brand of password manager has consistently written safe browser extensions. They're written to be slick-looking and convenient, the actual security isn't visible enough to be a sales/popularity boost so it suffers. This very story/issue is another example in the making.

Re: Angular 1.x Banned from Firefox Addons

#86
post #27

Earlier quoted context omitted.

I think encoderer was referring to https://github.com/mozilla/addons-linter/issues/1000#issueco... , where the engineer asks, "Is there any possible way for us to get around this ban?"

Followed up immediately with "Are all parts of Angular affected?" The charitable interpretation is that he is asking "is there a safe subset of Angular that we can use instead of a blanket ban?".

Yeah that's a fair (and more charitable) way to read that. But it's also not that clear. He spends a lot of time worrying about how much time they've spent on their extension.

Why no "woah, our other angular apps could be affected, is there any safe subset of angular 1?"

There aren't many products where security matters THAT much. I'd hope that the people working on password managers have a total security first mindset.

Re: Angular 1.x Banned from Firefox Addons

#87
post #39

Earlier quoted context omitted.

Angular runs eval-like functions on HTML in the DOM. The DOM can be controlled by the webpage. When Angular runs in an extension (which has more permissions than the page) using the DOM controlled by the webpage, then the webpage can write code into the DOM that Angular executes from within the extension's security context. It's not the browser's fault that Angular trusts the webpage's DOM like that; Angular just isn…

But Angular only reads HTML that it's told to read, specified by the "ng-app" attribute/directive.

And the webpage can place the ng-app directive into itself.

Re: Angular 1.x Banned from Firefox Addons

#88
post #78

The banned version is the 1.5.8. Could the following announce be related? Angular 1.6 - Expression Sandbox Removal: https://angularjs.blogspot.mx/2016/09/angular-16-expression-...

removing the sandbox just removes the illusion of being protected.

Correct, now it should be clear for all that Angular v1 is dangerous thing by design and it should not be used at all. Most likely a lot of not very experienced developers do for example $watch on value provided by the user input and that's a 100% XSS vulnerability since $watch does evaluate value if that was a string. And $watch is just a one example, there is a list of methods that do expressions evaluation.

Re: Angular 1.x Banned from Firefox Addons

#89

Angular 1.x is still quite being actively developed and it will be many years before it will become unsupported. I'm sure if they report the vulnerability it would be fixed instantly seeing the amount of activity on github.

The issue is a fundamental part of Angular 1.x's design. It runs eval on text within the page DOM. This isn't secure within extensions where the page DOM is controlled by the webpage, and Angular is running within a higher-privileged extension.

Re: Angular 1.x Banned from Firefox Addons

#90

Note that the Angular team is working with Mozilla and the researcher on this (see https://github.com/mozilla/addons-linter/issues/1000#issueco... ) and that NDAs are a real, if insane, thing still to this day, and there is literally no way to legally compel any party to admit to being under NDA except in a court of law. Should the researcher have told the Angular team? Yes. Should they have told the entire world? Pr…

Also, let's not inundate the page with extraneous comments unless we're already part of one of the projects involved. We all have strong opinions, and the HN post has been linked in the issue, so the devs can come here to see discussion if they want it.

Let's be good GH citizens. :-) Nobody benefits from the Issue ending up locked because the discussion got too off-topic.

Post reply on HN