ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #12089
Re: webapps and script injection
-
To:
ubuntu-phone@xxxxxxxxxxxxxxxxxxx
-
From:
Ted Gould <ted@xxxxxxxxxx>
-
Date:
Mon, 13 Apr 2015 16:00:52 -0500
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAA3NCSVQICAjb4U/gAAAQqElEQVRYw5VYaZBcV3U+59779t6XmWlpRjMaeUarLdkWVlBYbAwCmyKxK9gVQjDgBJOqJJgUUEkqrgqhKiyhSDkmVYYEsCoBnARSxIBtJY4TFhtLMpa1WLs0izRr9/Teb3/3nvxoYSyZaDnVv7pP9fneWb7vnIfJ0q2NVlwq6AiXMyKYWwzvf+C44WW+/PnPaJxHvguIXDeFaQIAKWCcE6mw3QjdDsUxqMROZZRM4jDsNWpeFJ9dqP7Ft/ZEQWAJhgDvekfhK49uwIsDM8bg0cfmu73ksnjg9JT37vceOnbc/6Pfuw9lHIcBco3rppHK6HbacDJWtmCkskYq6wwOZ1atTVXWMKGHXk8ppZQERKHi8YLzjo0jgoGfqAU3+t5/1s/NBpcEYkCwZaOjicsnCPb8d6O+GP/WrrdOjFRIETCOnBmpjG6nuBBc01FwruvCtI10TnfSRjqnp7JJEidRKOMIEZMkkUkcEeiMaQwqju5F8pF/mCOiiwARQbUWM3YFQK1WbNvWh97zdgAkRGRMM22u6UQABACIBCqOkDGu6ZqVYpqmp3MATCYxAAACYwyI7nvzVk0wSQBEBZM/8d1ao5VcnCGEwQHd9SRcwfDeO9+RtS1CZFxjQmNcIOMABIwjMkAARJXEiMh1gwmdmxZqmpIJMgYAXAgAsDRezqYVgS8pVlA0ec+9KDTzfTU963N2BTjV5ehNWzcoQMY40wRjHBlDRERkXAAiKQLoZwuYEMg449xwMsg4KYWMXXAjGKkMuLHSGKY01ospCNVFgFxPjq2xbFtcHlDTlZV8GhC5bgABcoaMI2fAeL9cQAoAALH/YZwTEZECUkopZJwxzhg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WybngIEDgXH7/vvfWVlQNHTxyZnq23OwLBMrS1lYGn95223ZGCnWGCW7YVQfLi/IH1mbV5OyuEYIxFUeS7Xv+ZLxJX15P3/f7MhPp1SmRMZBgGEfme13/b9apfI2xtLk9QJH3f78XujrXDBISAiFgql3e9tQS3vllJqZQ8fGr6C195siJHcmlDaELT9XbUPbx4Yvvg9aZhcM6JyO31wiC8JMQFQB/6wzOrvO2CmJ+EjDEuRBSGMpGXuOaMbNWtDxh5BGzHvQ1jI68nsJdPTT/1o5enjnQmUusRURe6JsR8Z+lsdWbHqq2GbiBiHMdez5VSviq9lwKi0xttO+W5LhEJTZNShkH4eteM7iz4tUGzCACNqL15fA3CL316fvDgX+2emVuJZGww/VxjwY08XwZ5O1exym9YvU0IDgCe64ZB2Ofo/086/w8ui/QHSH/HJAAAAABJRU5ErkJggg==
-
In-reply-to:
<552C0D6E.4000701@curiouslegends.com.au>
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 listing when I use this (and telling users not to
> install the app if they want to view said content in their browser),
> there's currently no requirement to do this. Sure, users can simply
> uninstall an app if it's giving them problems, but it seems that it
> would also be easy to create a malicious app that 'redirects' lots of
> urls, and potentially injects scripts into them from there. Even without
> script injection this could be annoying...
>
> Are there any processes in place to stop this from happening?
You can uninstall the app :-)
While we don't have it spec'd yet, I'd expect that when we allow
multiple people to register for a URL and we have to choose between them
we'll also allow for a default handler. So probably the first time on a
webapp you'd get the webapp and the browser, then you could choose to
default to the webapp. Currently this is decided by the "most specific"
entry, but we're going to have to give more configuration to the user
there eventually.
Ted
References