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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct 16 05:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     yu@nic.fujitsu.com
>Release:        1.3.22
>Organization:
apache
>Environment:
Tested on: 
  - SunOS agip 5.7 Generic_106541-08 sun4u sparc
  - NetBSD 1.5.2 i386
>Description:
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.
>How-To-Repeat:
% 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

222
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>406 Not Acceptable</TITLE>
</HEAD><BODY>
<H1>Not Acceptable</H1>
An appropriate representation of the requested resource /index could not be found on this
server.<P>
Available variants:
<ul>
<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
</ul>
<HR>
<ADDRESS>Apache/1.3.22 Server at yuppy Port 80</ADDRESS>
</BODY></HTML>
>Fix:
adding validation checks for "Accept" or "Accept-*" headers 
in  parse_accept_headers() in mod_negotiate.c will improve this problem...
>Release-Note:
>Audit-Trail:
>Unformatted:
 [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!     ]
 
 


Mime
View raw message