Bug: committers can set arbitrary HTTP Headers on any file
From: Brian W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2007-08-10 20:24:17 CEST
Summary: by providing a multi-line value for the svn:mime-type
NOTE: This is *not* a security hole--remember, if someone has write
Reproduction recipe:
- Create a new repository
-----------
Commit that and then request the file and you'll see the headers. For
$ curl -I http://svn.red-bean.com/repos/test/foo.txt
I suggest that we do two things to fix this:
- Fix libsvn_subr/validate.c:svn_mime_type_validate to allow at most one newline
Thoughts?
-Fitz
PS Hi guys! Long time no see! :-)
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.