Re: [Ubuntu-phone] webapps and script injection

2015-04-14 Thread Alan Bell
On 13/04/15 16:40, David Barth wrote: Yep, definitely a good idea. Thanks Alan! We have a set of checks for this script injection kit, from its desktop beginnings. However, that should mosty flag common attack vectors. Checking the identity of the author / published of an app still is a ke

Re: [Ubuntu-phone] webapps and script injection

2015-04-13 Thread Ted Gould
On Tue, 2015-04-14 at 04:39 +1000, Mitchell Reese wrote: > Another question re security for webapps - url-dispatcher. Whilst I'm > loving using this, it's also clear how easy it is to create a webapp > that redirects traffic from other places, such as scopes. While I'm > making a point of listi

Re: [Ubuntu-phone] webapps and script injection

2015-04-13 Thread Alexandre Abreu
On Mon, Apr 13, 2015 at 2:50 PM, Marc Deslauriers < marc.deslauri...@canonical.com> wrote: > On 2015-04-10 06:15 PM, Alan Bell wrote: > > Hi all, > > > > there is a somewhat sparsely documented feature of webapps that allow > you to > > specify --webappModelSearchPath=. as a parameter of webapp-co

Re: [Ubuntu-phone] webapps and script injection

2015-04-13 Thread Marc Deslauriers
On 2015-04-10 06:15 PM, Alan Bell wrote: > Hi all, > > there is a somewhat sparsely documented feature of webapps that allow you to > specify --webappModelSearchPath=. as a parameter of webapp-container in the > .desktop file and have a file called webapp-properties.json in the project. > This >

Re: [Ubuntu-phone] webapps and script injection

2015-04-13 Thread Mitchell Reese
I'm not sure user descriptions will be much use - for developers and/or tech saavy people, certainly - but for everyone else? Simply look at the android store to see how happily people are to install apps that ask for dodgy permissions. For what it's worth, I think this should be fixed develope

Re: [Ubuntu-phone] webapps and script injection

2015-04-13 Thread Alexandre Abreu
Hi Alan, as David just said, we indeed have short term plans to move in that directions. At the moment, any webapp is "shielded" by 3 layers of security measures: - the script are not injected in the same js as world as the webpage's (only share the DOM), - they are subject to the same CORS, etc.

Re: [Ubuntu-phone] webapps and script injection

2015-04-13 Thread David Barth
On Sat, Apr 11, 2015 at 12:15 AM, Alan Bell wrote: > Hi all, > > there is a somewhat sparsely documented feature of webapps that allow you > to specify --webappModelSearchPath=. as a parameter of webapp-container in > the .desktop file and have a file called webapp-properties.json in the > projec

[Ubuntu-phone] webapps and script injection

2015-04-10 Thread Alan Bell
Hi all, there is a somewhat sparsely documented feature of webapps that allow you to specify --webappModelSearchPath=. as a parameter of webapp-container in the .desktop file and have a file called webapp-properties.json in the project. This can specify a script to be loaded into the webapp,