>Number: 4767 >Category: mod_cgi >Synopsis: HEAD request to nph-cgi's return script's entire output >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Jul 26 03:20:00 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.6 >Environment: Redhat 6.0, Linux 2.2.5-22, i586 apache 1.3.6 compiled with gcc egcs-2.91.66 >Description: If you send a HEAD request to an nph-cgi, you will get the the entire output of the script, both the HEAD and the rest of the script. Normally a HEAD would just return everything up to the first blank line. >How-To-Repeat: Send a HEAD request (lynx -dump -head) for http://lucy.jbic.com/cgi-bin/nph-test-cgi. nph-test-cgi is just the stock test-cgi renamed and with the necessary HTTP header added. >Fix: Stop sending data or kill the cgi once you get a blank line. >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database 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! ]