Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Permissions to Google Search #12

Open
pableu opened this issue May 8, 2019 · 3 comments
Open

Reduce Permissions to Google Search #12

pableu opened this issue May 8, 2019 · 3 comments

Comments

@pableu
Copy link

pableu commented May 8, 2019

The extension currently has access to all subdomains of all Google Domains (*://*.google.com/* and so on in manifest.json). This includes rather sensitive stuff such as drive.google.com, pay.google.com and myaccount.google.com.

It would be more trustworthy if it only requests access to *://www.google.com/* (and so on). This would more or less restrict it to the search itself, I think.

@GMaiolo
Copy link
Owner

GMaiolo commented May 8, 2019

Hi @pableu
I remember I added *://*.google.com/* specifically for some edge case (some countries/ways of searching that were using subdomains I've never seen before and therefore the extension wasn't working).

As you can see in here I'm directly avoiding execution in any site that is not a search Google site.

Regarding trustworthiness, you can read the code, there should be no security issues as there's nothing obscure being done.
Do you think it'd be better to specifically exclude certain Google sites?

@darthwalsh
Copy link

+1, I was thinking the same thing.

The difference is that the current implementation is using JS to stop more JS execution, so I think scripts are still running on i.e. pay.google.com?

The code is secure right now, but it is possible to guarantee more security on updates. If the extension was updated to something malicious, there wouldn't be any notification for users when they update.

If instead the manifest declared less permission, then an update wouldn't be able to get more permissions without asking the user: https://developer.chrome.com/extensions/permission_warnings#update_permissions

@GMaiolo
Copy link
Owner

GMaiolo commented Jun 7, 2019

I agree.
We'd need to validate a lot of use-cases though and I don't have much free time to do this right now.

Added the help wanted label to see if anybody else could send a PR with tested and reduced accesses, otherwise I'd tackle this myself when I'm available.

Thanks for the suggestions and for bringing this to my attention @pableu @darthwalsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants