Opened 11 years ago

Last modified 11 years ago

#3655 closed Bug report

FTPES fails to retrieve directory

Reported by: doctor99 Owned by: Alexander Schuch
Priority: normal Component: Other
Keywords: Cc: doctor99, Alexander Schuch
Component version: Operating system type:
Operating system version:

Description

FTPES fails to retrieve directory - worked in 3.0.11.1

Log:
12:06:12 Status: Resolving address of alumweb.mit.edu
12:06:12 Status: Connecting to 18.92.1.96:21...
12:06:12 Status: Connection established, waiting for welcome message...
12:06:12 Trace: CFtpControlSocket::OnReceive()
12:06:12 Response: 220 18.92.1.96 FTP server ready
12:06:12 Trace: CFtpControlSocket::SendNextCommand()
12:06:12 Command: AUTH TLS
12:06:13 Trace: CFtpControlSocket::OnReceive()
12:06:13 Response: 234 AUTH TLS successful
12:06:13 Status: Initializing TLS...
12:06:13 Trace: CTlsSocket::Handshake()
12:06:13 Trace: CTlsSocket::Handshake()
12:06:13 Trace: CTlsSocket::Handshake()
12:06:14 Trace: CTlsSocket::Handshake()
12:06:14 Trace: Handshake successful
12:06:14 Trace: Cipher: AES-128-CBC, MAC: SHA1
12:06:14 Status: Verifying certificate...
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Command: USER capecod
12:06:14 Status: TLS/SSL connection established.
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 331 Password required for capecod.
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Command: PASS *
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 230 User * logged in.
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Command: SYST
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 215 UNIX Type: L8
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Command: FEAT
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 211-Features:
12:06:14 Response: MDTM
12:06:14 Response: REST STREAM
12:06:14 Response: SIZE
12:06:14 Response: AUTH TLS
12:06:14 Response: PBSZ
12:06:14 Response: PROT
12:06:14 Response: 211 End
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Command: PBSZ 0
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 200 PBSZ 0 successful
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Command: PROT P
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 200 Protection set to Private
12:06:14 Status: Connected
12:06:14 Trace: CFtpControlSocket::ResetOperation(0)
12:06:14 Trace: CControlSocket::ResetOperation(0)
12:06:14 Status: Retrieving directory listing...
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Trace: CFtpControlSocket::ChangeDirSend()
12:06:14 Command: PWD
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 257 "/" is current directory.
12:06:14 Trace: CFtpControlSocket::ResetOperation(0)
12:06:14 Trace: CControlSocket::ResetOperation(0)
12:06:14 Trace: CFtpControlSocket::ParseSubcommandResult(0)
12:06:14 Trace: CFtpControlSocket::ListSubcommandResult()
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Trace: CFtpControlSocket::TransferSend()
12:06:14 Command: TYPE I
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 200 Type set to I
12:06:14 Trace: CFtpControlSocket::TransferParseResponse()
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Trace: CFtpControlSocket::TransferSend()
12:06:14 Command: PASV
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 227 Entering Passive Mode (18,92,1,96,143,55).
12:06:14 Trace: CFtpControlSocket::TransferParseResponse()
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Trace: CFtpControlSocket::TransferSend()
12:06:14 Command: LIST
12:06:14 Trace: CTransferSocket::OnConnect
12:06:14 Trace: CTlsSocket::Handshake()
12:06:14 Trace: CTlsSocket::Handshake()
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 150 Opening ASCII mode data connection for file list
12:06:14 Trace: CFtpControlSocket::TransferParseResponse()
12:06:14 Trace: CFtpControlSocket::SendNextCommand()
12:06:14 Trace: CFtpControlSocket::TransferSend()
12:06:14 Trace: CTlsSocket::Handshake()
12:06:14 Trace: CTlsSocket::Handshake()
12:06:14 Trace: Handshake successful
12:06:14 Trace: Cipher: AES-128-CBC, MAC: SHA1
12:06:14 Trace: CTransferSocket::OnConnect
12:06:14 Trace: GnuTLS error -9: A TLS packet with unexpected length was received.
12:06:14 Status: Server did not properly shut down TLS connection
12:06:14 Error: Could not read from transfer socket: ECONNABORTED - Connection aborted
12:06:14 Trace: CTransferSocket::TransferEnd(3)
12:06:14 Trace: CFtpControlSocket::TransferEnd()
12:06:14 Trace: CFtpControlSocket::OnReceive()
12:06:14 Response: 226 Transfer complete.
12:06:14 Trace: CFtpControlSocket::TransferParseResponse()
12:06:14 Trace: CFtpControlSocket::ResetOperation(2)
12:06:14 Trace: CControlSocket::ResetOperation(2)
12:06:14 Trace: CFtpControlSocket::ParseSubcommandResult(2)
12:06:14 Trace: CFtpControlSocket::ListSubcommandResult()
12:06:14 Trace: CFtpControlSocket::ResetOperation(2)
12:06:14 Trace: CControlSocket::ResetOperation(2)
12:06:14 Error: Failed to retrieve directory listing

Change History (1)

comment:1 Changed 11 years ago by Alexander Schuch

You have a broken server that does not send the SSL/TLS closure alerts as required by the specifications. You need to upgrade to a better server that does perform an orderly SSL/TLS shutdown.

Please see the "2008-07-24 - Security Advisory" at http://filezilla-project.org./ site.

Note: See TracTickets for help on using tickets.