W3C home > Mailing lists > Public > ietf-http-wg@w3.org > July to September 2010

Re: User confirmation and 307 redirects

From: Roy T. Fielding <fielding@gbiv.com>
Date: Thu, 19 Aug 2010 16:21:23 -0700
Cc: Mark Pauley <mpauley@apple.com>, Julian Reschke <julian.reschke@gmx.de>, httpbis <ietf-http-wg@w3.org>, Maciej Stachowiak <mjs@apple.com>
Message-Id: <1670F180-37A6-473C-AF92-055AC516B3D3@gbiv.com>
To: Adam Barth <ietf@adambarth.com>
On Aug 19, 2010, at 3:44 PM, Adam Barth wrote:

> On Thu, Aug 19, 2010 at 3:37 PM, Roy T. Fielding <fielding@gbiv.com> wrote:
>> On Aug 19, 2010, at 3:20 PM, Adam Barth wrote:
>>> If you think that 307 redirects are a security vulnerability, then
>>> should should remove them from the protocol.  Trying to atone for the
>>> security sins of the protocol by punting security to the user is
>>> security theater.
>> Using the Internet is a security vulnerability, yet there are sufficient
>> trade-offs to justify it.   The same goes for redirecting an unsafe
>> method if and only if the redirection has been preconfigured or
>> acknowledged by the user.  How that is arranged is not defined by
>> the protocol -- it is left up to the user agent developer to decide
>> on their own user interface *if* they want to autoredirect an unsafe
>> method.
> The draft says:
> [[
>  Otherwise, the user agent MUST NOT automatically
>  redirect the request unless it can be confirmed by the user
> ]]
> If the user agent developer can choose whether or not to autoredirect
> an unsafe method, in what sense is this requirement a MUST NOT?

The user interface for obtaining confirmation is designed by the
user agent developer.  The user agent developer can choose to never
automatically redirect, provide some form of whitelist or zone
functionality that preapproves such an automated redirect, or
obtain a confirmation directly from the user upon receipt of
the redirect -- any one of those satisfies the HTTP requirement.

And, yes, an automobile navigation system that stupidly depends
on redirects (as opposed to DNS or IP redirection that doesn't
require the body of the message to be sent twice) can easily be
preconfigured to allow automatic redirects to known safe sites.
The "user" is the person that causes the request to be initiated,
which in your scenario is the navigation system's programmer,
not the driver.

Received on Thursday, 19 August 2010 23:21:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:54 UTC