Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 24165 invoked by uid 6000); 19 Dec 1998 13:40:09 -0000 Received: (qmail 23877 invoked by uid 2001); 19 Dec 1998 13:40:01 -0000 Received: (qmail 23489 invoked by uid 2012); 19 Dec 1998 13:31:33 -0000 Message-Id: <19981219133133.23488.qmail@hyperreal.org> Date: 19 Dec 1998 13:31:33 -0000 From: john c robinson Reply-To: jcr@e-orchard.com To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: protocol/3562: Bug in Netscape cookies breaks 1.3.3 (very rare but absolutely crippling) Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 3562 >Category: protocol >Synopsis: Bug in Netscape cookies breaks 1.3.3 (very rare but absolutely crippling) >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Dec 19 05:40:00 PST 1998 >Last-Modified: >Originator: jcr@e-orchard.com >Organization: apache >Release: 1.3.3 >Environment: All versions >Description: In version 1.2.6 (and prior) bad headers from the client were probably ignored. In at least 1.3.3, http_protocol.c now returns a 'Bad Request ... missing colon' error. In Netscape, 3.0 and prior, when it tries to send a cookie with no value, it instead sends a cookie with the value of a CR. This will of course terminate the line. The remainder of the cookie data is found in the next line Apache gets. Apache gets it, and pukes on the bad cookie. This would otherwise be just a Netscape bug... BUT, up until (1.3?) the latest version of the server the line was (probably) ignored, this new behaivor is devestating to a web site that gave visitors empty cookies. Simply fixing the CGI script is not enough as the browser still has the bad cookie. (Ever get 50,000 people to delete their cookies.txt file?? NOO!) >How-To-Repeat: Set Cookie: XXX=a; YYY=; ZZZ=c Have Wintel Netscape 3.0 (I used Netscape 3.0.4 Gold) take the cookie. Now restart the web browser, and select any page (even html) within the site. >Fix: Ignore garbled headers instead of returning an error document! >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]