From 533c31b78550603017f895180f301b760471c762 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 15 Jan 2013 22:35:48 +0100 Subject: FTP: reject illegal port numbers in EPSV 229 responses --- tests/data/test238 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'tests/data/test238') diff --git a/tests/data/test238 b/tests/data/test238 index 56f21ebf8..ea54509a1 100644 --- a/tests/data/test238 +++ b/tests/data/test238 @@ -9,7 +9,6 @@ FTP REPLY EPSV 229 Entering Passiv Mode (|||1000000|) -REPLY PASV 227 Entering Passiv Mode (1216,256,2,127,127,127) @@ -19,7 +18,7 @@ REPLY PASV 227 Entering Passiv Mode (1216,256,2,127,127,127) ftp -FTP getting bad port in response to EPSV and in response to PASV +FTP getting bad port in response to EPSV ftp://%HOSTIP:%FTPPORT/238 @@ -28,20 +27,16 @@ ftp://%HOSTIP:%FTPPORT/238 # Verify data after the test has been "shot" -# curl: (15) Can't resolve new host 1216.256.2.127:32639 -# 15 => CURLE_FTP_CANT_GET_HOST -# some systems just don't fail on the illegal host name/address but instead -# moves on and attempt to connect to... yes, to what? -# 7= CURLE_COULDNT_CONNECT +# 13 = CURLE_FTP_WEIRD_PASV_REPLY -7, 15 +13 USER anonymous PASS ftp@example.com PWD EPSV -PASV +QUIT -- cgit v1.2.3