20

How does Chrome/Firefox make sure add-ons are safe? Do they have any protection against a malicious add-on?

How much access can add-ons have? Can they access internet history or maybe even cookies and such and send them to a server? Do I need to worry about this?

I do have Kaspersky and Kaspersky add-ons but I still wonder should I still worry about add-ons? Considering there is nothing I can do to make sure some add-ons are malicious or not even if they still have an OK reputation.

EDIT: bonus question, if an addon says it can read the data on websites you visit, does it mean it can know which websites I visit and technically can send them to a server and basically record my history this way ? (considering many adblockers and such addons have this permission)

2 Answers 2

27

Modern browser extensions use the WebExtensions API, which enforces a permission model; basically, addons can only have the access that you grant them (you can't reject individual permissions though; if you are uncomfortable with some, you can't install the addon).

Regarding your specific questions:

  • The browser history can only be requested if the history permission is granted.
  • The cookies permission only works along with a host permission which will define which cookies can be accessed. Host permissions are required for all of the sensitive actions (such as injecting JavaScript into a page, reading the contents of a page, etc).

Malicious extensions can of course execute arbitrary JavaScript in an isolated context, so something like a malicious cryptominer is certainly feasible.

For access which doesn't require explicit permissions, see my related question: Danger of browser extension without any permissions?.

9
  • Thanks for answer, so when you say if permission is granted, do you mean during installation I will be met with a "pop up" that asks me if I'm OK with granting that addon to my history? and if no such popup occurs then it means that addon has no access to history? (I'm asking this because I have never encountered with such popup during installation of my addons)
    – Mery Ted
    Mar 26, 2019 at 13:40
  • also a bonus question if you have time to answer: what about sending the visited site url/content to their server immediately after visiting without accessing the history, is this possible for them?
    – Mery Ted
    Mar 26, 2019 at 13:47
  • @MeryTed Exactly. It should ask during installation. Chrome eg uses a popup which says "Add [extension]? It can: [permissions; eg 'Read and change all your data on the websites you visit']", Firefox says "Add [extension]? It requires permission to: [...]". What browser are you using?
    – tim
    Mar 26, 2019 at 14:29
  • @MeryTed If the permission to history and/or "access/read data on websites you visit" or similar isn't granted, extensions should imho have no primary way to see which websites you visit (there may be side-channels which leak this, but this probably wouldn't leak this to just extensions, but any website, see eg here; extensions may have a bit more options, so the possibility of such an issue may be a bit more likely as compared to websites).
    – tim
    Mar 26, 2019 at 14:30
  • so if an addon says it can read data on websites I visit it means it knows which sites I visit and it could technically send it to their server and basically record my history this way? (for example Netcraft Extension addon) (I also use chrome mostly)
    – Mery Ted
    Mar 26, 2019 at 18:25
9

how does chrome/firefox make sure addons are safe?

They inspect them before publishing, and ban those found abusing its rights. But this ban can take from days to weeks.

how much access can addons have?

Addons can make anything you can, and more. They can access any server, read any cookie, alter any data, even encrypted by HTTPS, and send any data anywhere. They have to ask your permission when you install, but once you gave permission, for example, to read data on all websites, the addon can read data on all websites you visit.

should I still worry about addons?

Yes, you should. If you use an addon that was abandoned and the owner sold it to someone else, chances are pretty high that the new owner will do something nasty.

What you do? Don't install extensions unless they are from reputable sources, don't need lots and lots of permissions, and are really needed. Installing everything you think is cool will end up compromising your security.

9
  • 4
    You may want to add the caveat that extensions request specific permissions. They don't get full access unless they request that and the user approved it at install.
    – Daisetsu
    Mar 25, 2019 at 17:03
  • Good point, I added to my answer.
    – ThoriumBR
    Mar 25, 2019 at 18:52
  • 1
    "If you use an addon that was abandoned and the owner sold it to someone else, chances are pretty high that the new owner will do something nasty." That's a scandalous claim. Do you have any evidence for this? A study showing the proportion of resold addons that have turned "nasty"? The linked article is interesting but is not sufficient evidence that "the chances are pretty high". Mar 26, 2019 at 11:20
  • 1
    So basically if during installation I don't encounter any pop up about permissions of that addons then it means it don't have access to history and etc correct? (because I have never encountered such pop up during installation of my addons in chrome/firefox)
    – Mery Ted
    Mar 26, 2019 at 13:42
  • I do not know any sold addon, which did not add something nasty, as long as you let adding tracking and adding advertising count as nasty.
    – allo
    Mar 26, 2019 at 13:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .