cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: bug in PASV ?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 10 Nov 2003 08:53:08 +0100 (CET)

On Sun, 9 Nov 2003, Sébastien WILLEMIJNS wrote:

> > EPSV
> < 229 Entering Extended Passive Mode (||80.65.226.236|50400|)
> * About to connect() to ftp.baoo.org:0
> * Failed to connect to ftp.baoo.org IP number 1: 10049
> curl: (7) Failed to connect to ftp.baoo.org IP number 1: 10049
> * Closing connection #0
>
> hum... i think CURL doesn't like the IP in the "229 header" it is a bug ?

Eeek!

It certainly is a bug. Looking at the 229-reply parser code, it is so stupid
it makes me scared! ;-)

But not only is this a bug in curl that makes this not bail out with a nice
error message, the response from the FTP server violates RFC2428 that defines
how the EPSV response is supposed to look like. It cannot contain an IP
address like that (although the EPRT response can). I would thus call this a
bug in the ftp server as well!

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
Received on 2003-11-10