W3C home > Mailing lists > Public > public-webappsec@w3.org > August 2014

Re: Proposal: Prefer secure origins for powerful new web platform features

From: Mark Watson <watsonm@netflix.com>
Date: Wed, 20 Aug 2014 08:17:48 -0700
Message-ID: <CAEnTvdA39FV6QCEgErZCvPODGOzd8zLOFdzo8sxnBEhWchSVCA@mail.gmail.com>
To: Jim Manico <jim.manico@owasp.org>
Cc: "public-webappsec@w3.org" <public-webappsec@w3.org>
Well, there is the world as it is today and the world as we would like it
to be. The question is how to get there from here.

I'm not saying sites should not address user security and privacy, but only
that making HTTPS a price-of-admission to parts of the web platform may not
be the best tactic to get us there. At least it should be used very
judiciously. In addition to the points below, the admission price needs to
be proportionate. Considering my own industry (video streaming), which
might represent 50%+ of US peak internet traffic, migrating that traffic to
a secure transport would be a huge win. But the cost at that scale is
pretty high in the short term (in the long term, by which I mean one
hardware refresh cycle for serving infrastructure once a migration decision
is made, the incremental cost is much lower). There is also work to
mitigate UX impacts that stem from longer connection setup times and
increased operational complexity. And then you have to convince people that
HTTPS will really get them the security that they want - non-trivial with
things like [1][2] popping up all the time.

As to "enforce, by standard, HTTPS everywhere", I see that this was in part
in jest, but still, simply expecting people to invest large sums of money
just because you declare they should by fiat is also not a great strategy
for success.

...Mark

[1]
https://www.blackhat.com/us-14/briefings.html#the-beast-wins-again-why-tls-keeps-failing-to-protect-http
[2] http://antoine.delignat-lavaud.fr/doc/oakland14_slides.pdf

PS: disabled-by-default, with a settings switch to enable it, is in
practice equivalent to just disabled from a web developer's point of view.
The drop-off if you had to ask customers to change browser settings would
be prohibitive.


On Tue, Aug 19, 2014 at 9:04 PM, Jim Manico <jim.manico@owasp.org> wrote:

> The thought that people caring about secure web applications in 2014 and
> NOT using HTTPS is something I'm struggling with. HTTPS is one of the most
> fundamental aspects to web security that requiring it for certain
> security-centric standards seems wise and prudent.
>
> If a website is NOT using HTTPS today then any remote hope for a secure
> web app is lost.
>
> How about we deprecate all of HTTP and enforce, by standard, HTTPS
> everywhere? ;)
>
> PS: The proposal states HTTPS by default implying it can be removed; this
> kind of "default" security in standards is key...
>
> Aloha,
> --
> Jim Manico
> @Manicode
> (808) 652-3805
>
> On Aug 19, 2014, at 5:24 PM, Mark Watson <watsonm@netflix.com> wrote:
>
> Chris, all,
>
> I think we should be highly selective about applying any blanket prohibition on access to features from http sites.
>
>
> It is of course quite appropriate for UAs to require user consent, provide warnings etc., including differentiating between use of a feature by a secure origin and a non-secure one, as they see fit. However, the danger of prohibiting things is that web developers may feel a new feature is being "held hostage" in support of an unrelated, albeit noble, goal of encouraging https use.
>
>
> Developers need to be convinced that https makes business sense for them because of the user privacy and security benefits, and be given time to migrate their services. It should not be, instead, a price-of-admission for some new feature. Indeed, there is a danger that people do the minimum necessary to get the new feature, rather than properly considering the security aspects. That's not a good thing if you want to actually achieve the security benefits in practice.
>
> ...Mark
>
>
>
> On Fri, Jun 27, 2014 at 3:55 PM, Chris Palmer <palmer@google.com <palmer@google.com?Subject=Re%3A%20Proposal%3A%20Prefer%20secure%20origins%20for%20powerful%20new%20web%20platform%20features&In-Reply-To=%3CCALx_OUBdUKR6Ko%3DBZEhQtdFbpdjEY-76h0-P-DbqLCyVnh3nVQ%40mail.gmail.com%3E&References=%3CCALx_OUBdUKR6Ko%3DBZEhQtdFbpdjEY-76h0-P-DbqLCyVnh3nVQ%40mail.gmail.com%3E>> wrote:
> > Hi everyone,
> >
> > Apologies in advance to those of you who will get this more than once,
> > due to the cross-posting. I wanted to get this to a wide audience, to
> > gather feedback and have a discussion involving as many interested
> > parties as possible (browser vendors, web developers, security
> > engineers, privacy advocates, et al.).
> >
> > * Proposal
> >
> > The Chrome Security team and I propose that, for new and particularly
> > powerful web platform features, browser vendors tend to prefer to make
> > the the feature available only to secure origins by default.
> >
> > * Definitions
> >
> > "Particularly powerful" would mean things like: features that handle
> > personally-identifiable information, features that handle high-value
> > information like credentials or payment instruments, features that
> > provide the origin with control over the UA's trustworthy/native UI,
> > access to sensors on the user's device, or generally any feature that
> > we would provide a user-settable permission or privilege to. Please
> > discuss!
> >
> > "Particularly powerful" would NOT mean things like: new rendering and
> > layout features, CSS selectors, innocuous JavaScript APIs like
> > showModalDialog, or the like. I expect that the majority of new work
> > in HTML5 fits in this category. Please discuss!
> >
> > "Secure origins" are origins that match at least one of the following
> > (scheme, host, port) patterns:
> >
> >     * (https, *, *)
> >     * (wss, *, *)
> >     * (*, localhost, *)
> >     * (*, 127/8, *)
> >     * (*, ::1/128, *)
> >     * (file, *, —)
> >     * (chrome-extension, *, —)
> >
> > This list may be incomplete, and may need to be changed. Please discuss!
> >
> > A bug to define “secure transport” in Blink/Chromium:
> > https://code.google.com/p/chromium/issues/detail?id=362214
> >
> > * For Example
> >
> > For example, Chrome is going to make Service Workers available only to
> > secure origins, because it provides the origin with a new, higher
> > degree of control over a user's interactions with the origin over an
> > extended period of time, and because it gives the origin some control
> > over the user's device as a background task.
> >
> > Consider the damage that could occur if a user downloaded a service
> > worker script that had been tampered with because they got it over a
> > MITM'd or spoofed cafe wifi connection. What should have been a nice
> > offline document editor could be turned into a long-lived spambot, or
> > maybe even a surveillance bot. If the script can only run when
> > delivered via authenticated, integrity-protected transport like HTTPS,
> > that particular risk is significantly mitigated.
> >
> > * Background
> >
> > Legacy platforms/operating systems have a 1-part principal: the user.
> > When a user logs in, they run programs that run with the full
> > privilege of the user: all of a user’s programs can do anything the
> > user can do on all their data and with all their resources. This has
> > become a source of trouble since the rise of mobile code from many
> > different origins. It has become less and less acceptable for a user’s
> > (e.g.) word processor to (e.g.) read the user’s private SSH keys.
> >
> > Modern platforms have a 2-part security principal: the user, and the
> > origin of the code. Examples of such modern platforms include (to
> > varying degrees) the web, Android, and iOS. In these systems, code
> > from one origin has (or, should have) access only to the resources it
> > creates and which are explicitly given to it.
> >
> > For example, the Gmail app on Android has access only to the user’s
> > Gmail and the system capabilities necessary to read and write that
> > email. Without an explicit grant, it does not have access to resources
> > that other apps (e.g. Twitter) create. It also does not have access to
> > system capabilities unrelated to email. Nor does it have access to the
> > email of another user on the same computer.
> >
> > In systems with 2-part principals, it is crucial to strongly
> > authenticate both parts of the principal, not just one part.
> > (Otherwise, the system essentially degrades into a 1-part principal
> > system.) This is why, for example, both Android and iOS require that
> > every vendor (i.e. origin) cryptographically sign its code. That way,
> > when a user chooses to install Twitter and to give Twitter powerful
> > permissions (such as access to the device’s camera), they can be sure
> > that they are granting such capability only to the Twitter code, and
> > not to just any code.
> >
> > By contrast, the web has historically made origin authentication
> > optional. On the web, origins are defined as having 3 parts: (scheme,
> > host, port), e.g. (HTTP, example.com, 80) or (HTTPS, mail.google.com,
> > 443). Many origins use unauthenticated schemes like HTTP, WS, or even
> > FTP.
> >
> > Granting permissions to unauthenticated origins is, in the presence of
> > a network attacker, equivalent to granting the permissions to any
> > origin. The state of the internet is such that we must indeed assume
> > that a network attacker is present.
> >
> > * Thank You For Reading This Far!
> >
> > We welcome discussion, critique, and cool new features!
> >
>
>
Received on Wednesday, 20 August 2014 15:18:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:06 UTC