I have tried to find out from the article or the original report[1] how the extensions could execute the payload from remote servers. I could find no details about this -- I consider this one of the key point.
I could download and unzip one of the extension hosted on the owner's server, "SaveFrom.net Helper".
As expected, the manifest.json contained an entry which allows the extension to execute code not part of the package, in the context of the extension (i.e. can access extensions API):
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
I have often pointed out that one of the key issue with the Chrome store is that it allows extensions with ability to execute remote code in extension context[2], this makes it impossible to code review such extension, as it can at any time download and execute code not part of the package.If privacy and security were a genuine concern, all extensions which ask for `unsafe-eval` should be removed from the Chrome store -- they are essentially un-reviewable.
Firefox's AMO does not allow extensions with such ability.[3]
* * *
[1] https://securitywithsam.com/2019/07/dataspii-leak-via-browse...