www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomoaki IMAMURA ...@nic.fujitsu.com>
Subject mod_negotiation/8551: Illegal requests in "Accept:" header unveils files with 406 result page
Date Tue, 16 Oct 2001 12:08:26 GMT

>Number:         8551
>Category:       mod_negotiation
>Synopsis:       Illegal requests in "Accept:" header unveils files with 406 result page
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct 16 05:10:01 PDT 2001
>Originator:     yu@nic.fujitsu.com
>Release:        1.3.22
Tested on: 
  - SunOS agip 5.7 Generic_106541-08 sun4u sparc
  - NetBSD 1.5.2 i386
In any directory "MultiViews" options are allowed, users can get
"406 Not Acceptale" page by sending illegal "Accept:" line such as
"Accept: none".  This unveils some partial directory information
regardless of "Indexes" option setting.

When user requests "/foo", "foo.*" are listed by 406 page. This sometimes
contains user backup files or so.
% telnet yuppy 80
Connected to yuppy.
GET /index HTTP/1.1
Accept: none
Host: yuppy
Connection: close

HTTP/1.1 406 Not Acceptable
Date: Tue, 16 Oct 2001 11:37:48 GMT
Server: Apache/1.3.22 (Unix)
Alternates: {"index.html" 1 {type text/html} {length 80}}, {"index.html.bak" 1 {type text/plain}
{length 80}}, {"index.html~" 1 {type text/plain} {length 80}}
Vary: negotiate,accept
TCN: list
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

<TITLE>406 Not Acceptable</TITLE>
<H1>Not Acceptable</H1>
An appropriate representation of the requested resource /index could not be found on this
Available variants:
<li><a href="index.html">index.html</a> , type text/html
<li><a href="index.html.bak">index.html.bak</a> , type text/plain
<li><a href="index.html~">index.html~</a> , type text/plain
<ADDRESS>Apache/1.3.22 Server at yuppy Port 80</ADDRESS>
adding validation checks for "Accept" or "Accept-*" headers 
in  parse_accept_headers() in mod_negotiate.c will improve this problem...
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> 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!     ]

View raw message