uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Chrome App+Ext Permissions overly broad?

Open felixgr opened this issue 12 years ago • 6 comments

target: source release

In security the principle of least privileges says that you should only request permission you also need. Thereby you're minimizing the capabilities of a vulnerability.

I've just began to read the code but the permissions in the app and the extension's manifest.json seem overly broad.

For example:

  • access to *.appspot.com is not needed
  • webview is requested but not used
  • access to facebook is not used (currently not implemented)
  • video/audio is not used (currently not implemented)
  • oauth scopes are requested by extension, but app does oauth requests?
  • requesting accounts.google.com access can lead to a lot of havoc. I don't think this is the Chrome-intended way to do oauth?
  • etc.

This might be a good time to document (for dev + curious users) why you're requesting which permission.

felixgr avatar Jun 26 '14 15:06 felixgr

New auth flow is needed for this... @salomegeo : how do you feel about prioritizing implementing the new auth flow (this week)? :)

iislucas avatar Jul 28 '14 19:07 iislucas

Perfect. I wanted some small non-firefox task anyway.

On Mon, Jul 28, 2014 at 3:11 PM, Lucas Dixon [email protected] wrote:

Assigned #256 https://github.com/uProxy/uproxy/issues/256 to @salomegeo https://github.com/salomegeo.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/256#event-146396815.

salomegeo avatar Jul 28 '14 22:07 salomegeo

yay! :)

On Mon, Jul 28, 2014 at 6:04 PM, salomegeo [email protected] wrote:

Perfect. I wanted some small non-firefox task anyway.

On Mon, Jul 28, 2014 at 3:11 PM, Lucas Dixon [email protected] wrote:

Assigned #256 https://github.com/uProxy/uproxy/issues/256 to @salomegeo https://github.com/salomegeo.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/256#event-146396815.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/256#issuecomment-50408770.

Lucas Dixon | Google Ideas

iislucas avatar Jul 28 '14 22:07 iislucas

The new tab auth flow is completed in Chrome (https://github.com/uProxy/uproxy/pull/320), so we should be able to update the website permissions now

dborkan avatar Aug 08 '14 17:08 dborkan

Fixed in: https://github.com/uProxy/uproxy/pull/362

iislucas avatar Aug 28 '14 17:08 iislucas

LGTM

felixgr avatar Sep 02 '14 16:09 felixgr