Re: [secdir] secdir review of draft-nottingham-http-new-status-03

Stephen Hanna <shanna@juniper.net> Mon, 30 January 2012 15:07 UTC

Return-Path: <shanna@juniper.net>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6ED4D21F84B4; Mon, 30 Jan 2012 07:07:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level:
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TxgN45vQng+P; Mon, 30 Jan 2012 07:07:16 -0800 (PST)
Received: from exprod7og118.obsmtp.com (exprod7og118.obsmtp.com [64.18.2.8]) by ietfa.amsl.com (Postfix) with ESMTP id B17C621F8656; Mon, 30 Jan 2012 07:07:03 -0800 (PST)
Received: from P-EMHUB01-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob118.postini.com ([64.18.6.12]) with SMTP ID DSNKTyayF1mWRGpM48dvFicRe1F4qA/LCRJV@postini.com; Mon, 30 Jan 2012 07:07:15 PST
Received: from p-emfe01-wf.jnpr.net (172.28.145.24) by P-EMHUB01-HQ.jnpr.net (172.24.192.35) with Microsoft SMTP Server (TLS) id 8.3.213.0; Mon, 30 Jan 2012 07:05:35 -0800
Received: from EMBX01-WF.jnpr.net ([fe80::1914:3299:33d9:e43b]) by p-emfe01-wf.jnpr.net ([fe80::d0d1:653d:5b91:a123%11]) with mapi; Mon, 30 Jan 2012 10:05:34 -0500
From: Stephen Hanna <shanna@juniper.net>
To: Mark Nottingham <mnot@mnot.net>
Date: Mon, 30 Jan 2012 10:05:32 -0500
Thread-Topic: secdir review of draft-nottingham-http-new-status-03
Thread-Index: Acze4L0XIuPltSeBT2qfJxuKVa0I5AAfSypQ
Message-ID: <AC6674AB7BC78549BB231821ABF7A9AEB829FBD878@EMBX01-WF.jnpr.net>
References: <AC6674AB7BC78549BB231821ABF7A9AEB82253AD14@EMBX01-WF.jnpr.net> <4F109383.1090505@gmx.de> <AC6674AB7BC78549BB231821ABF7A9AEB82253AE7B@EMBX01-WF.jnpr.net> <ED1DC359-2B17-4DA8-82C6-34E6DCDE918E@mnot.net> <0EEB0CDF-6D05-4EA7-9244-CA80C03BD11D@mnot.net>
In-Reply-To: <0EEB0CDF-6D05-4EA7-9244-CA80C03BD11D@mnot.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-EXCLAIMER-MD-CONFIG: e4081efb-6d29-443c-8708-750833aec629
Cc: Julian Reschke <julian.reschke@gmx.de>, "draft-nottingham-http-new-status@tools.ietf.org" <draft-nottingham-http-new-status@tools.ietf.org>, "ietf@ietf.org" <ietf@ietf.org>, "secdir@ietf.org" <secdir@ietf.org>
Subject: Re: [secdir] secdir review of draft-nottingham-http-new-status-03
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/secdir>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jan 2012 15:07:17 -0000

Mark,

I don't want to rehash the discussion that we've already had.
Clearly, you prefer brevity while I would prefer education in
this instance.

I can live with your text for status codes 428, 429, and 431. For
511, I don't think it's adequate to just say that big security
issues already exist. You should at least give some suggestions
for how to deal with them. For example, you could point out that
most user agents include some indication of whether the server
has been authenticated. For captive portals, this indication will
generally not be displayed so the user receives some warning
that the response did not come from the requested URL.

Thanks,

Steve

> -----Original Message-----
> From: Mark Nottingham [mailto:mnot@mnot.net]
> Sent: Sunday, January 29, 2012 6:50 PM
> To: Stephen Hanna
> Cc: Julian Reschke; draft-nottingham-http-new-status@tools.ietf.org;
> secdir@ietf.org; ietf@ietf.org
> Subject: Re: secdir review of draft-nottingham-http-new-status-03
> 
> I haven't heard any further response. After a reminder from a Security
> AD, I took another look at the spec.
> 
> E.g., the current Security Considerations for 428:
> 
> > The 428 status code is optional; clients cannot rely upon its use to
> prevent "lost update" conflicts.
> 
> Like many of the status codes, that's already a risk inherent in using
> HTTP today; we're effectively just noting that we can't force
> implementations to use the new status code retroactively, so they can't
> use the publication of this document as a magical flag day.
> 
> As such, not much more can be said; the only way that people can
> further mitigate the risks of lost updates is to have a private, out-
> of-band agreement to use 429, and I *don't* think that's something we
> should be encouraging.
> 
> For 429, I've changed to:
> 
> > When a server is under attack or just receiving a very large number
> of requests from a single party, responding to each with a 429 status
> code will consume resources.
> >
> > Therefore, servers are not required to use the 429 status code; when
> limiting resource usage, it may be more appropriate to just drop
> connections, or take other steps.
> 
> 
> 431 says:
> 
> > Servers are not required to use the 431 status code; when under
> attack, it may be more appropriate to just drop connections, or take
> other steps.
> 
> 
> What else should be said here? This specification is not a treatise on
> dealing with denial-of-service attacks; all that it notes is that
> servers aren't required to use the status code.
> 
> Finally, 511 says:
> 
> > In common use, a response carrying the 511 status code will not come
> from the origin server indicated in the request's URL. This presents
> many security issues; e.g., an attacking intermediary may be inserting
> cookies into the original domain's name space, may be observing cookies
> or HTTP authentication credentials sent from the user agent, and so on.
> However, these risks are not unique to the 511 status code; in other
> words, a captive portal that is not using this status code introduces
> the same issues.
> 
> Are there other specific threats you're aware of here?
> 
> Regards,
> 
> 
> 
> On 25/01/2012, at 10:36 AM, Mark Nottingham wrote:
> 
> > Sorry for the delay in responding; just back from holiday.
> >
> >
> > On 14/01/2012, at 8:26 AM, Stephen Hanna wrote:
> >
> >> Julian,
> >>
> >> I'm sure that in your view one sentence is adequate to explain
> >> all the security implications of each status code. However,
> >> you may want to consider that some readers may not have quite
> >> the same deep grasp of the matter that you do. Therefore,
> >> I think it would be wise to provide more explanation. Here's an
> >> example for section 7.2 on status code 429 (Too Many Requests):
> >>
> >> Section 7.2  429 Too Many Requests
> >>
> >>  While status code 429 can be helpful in figuring out why a
> >>  server is not responding to requests, it can also be harmful.
> >>  When a server is under attack or simply receiving a very
> >>  large number of requests from a single party, responding
> >>  to each of these requests with a 429 status code will consume
> >>  resources that could be better used in other ways. Therefore,
> >>  a server in such circumstances may choose to send a 429 status
> >>  code only the first time a client exceeds its limit and
> >>  ignore subsequent requests from this client until its limit
> >>  is no longer exceeded. Other approaches may also be employed.
> >>
> >> As you can see, I described security problems that could occur
> >> with this status code and explained how those problems can be
> >> avoided or mitigated. While it's true that these problems
> >> could occur when a more generic status code is used to handle
> >> the case of "too many requests", that does not mean that they
> >> are not relevant to this document. On the contrary, the fact
> >> that this document is providing more detailed status codes
> >> gives us the opportunity and one can argue the obligation to
> >> provide more detailed security analysis relevant to these more
> >> detailed status codes.
> >
> > I'm really not sure I agree; the original text is:
> >
> >   Servers are not required to use the 429 status code; when
> >   limiting resource usage, it may be more appropriate to just drop
> >   connections, or take other steps.
> >
> > If someone implementing a server doesn't understand that, I don't
> know that using more words really helps; it does, however, make it
> harder to find the words in the spec that *will* help.
> >
> >
> > --
> > Mark Nottingham   http://www.mnot.net/
> >
> >
> >
> 
> --
> Mark Nottingham   http://www.mnot.net/
> 
>