oss-sec mailing list archives

Re: [oCERT-2010-001] multiple http client unexpected download filename vulnerability


From: Ludwig Nussel <ludwig.nussel () suse de>
Date: Tue, 18 May 2010 09:50:27 +0200

Florian Weimer wrote:
* Daniele Bianco:

Additionally, unsafe behaviours have been found in wget and lwp-download in
the case of HTTP 3xx redirections during file downloading. The two
applications automatically use the URL's filename portion specified in the
Location header.

Thanks.  In another venue, I wrote:

The difficult thing is that most likely, there are setups out there
which expect this particular behavior.  If we change the default
behavior, we need an option in wgetrc to turn back on the old one. 8-(

wget doesn't overwrite existing files by default anyways. Instead it appends a
suffix .1, .2 etc to the newly downloaded file. wget also prints the file name
it used. So IMO it's perfectly fine and useful for wget to take the server
provided file name by default.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   
 V_/_  http://www.suse.de/
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)


Current thread: