Unable to connect via ftpes:// on 3.40.0
|Reported by:||Disassembler||Owned by:|
|Keywords:||gnutls, ftpes, pureftpd||Cc:|
|Component version:||3.40.0||Operating system type:||Windows|
|Operating system version:||10|
After update to 3.40.0, I'm unable to connect from a Windows machine to several servers via ftpes:// protocol (FTP over Explicit TLS) on port 21. The connections work on 3.39.0 and in other software (WinSCP).
The server to which I'm trying to connect uses Pure-FTPd 1.0.46 linked against GnuTLS 3.5.18 (stock configuration on Ubuntu 18.04) and username+password authentication. TLS certificate is valid.
Messages from 3.39.0:
Status: Resolving address of ftp.example.com Status: Connecting to 220.127.116.11:21... Status: Connection established, waiting for welcome message... Status: Initializing TLS... Status: Verifying certificate... Status: TLS connection established. Status: Logged in Status: Retrieving directory listing... Status: Directory listing of "/" successful
Messages from 3.40.0:
Status: Resolving address of ftp.example.com Status: Connecting to 18.104.22.168:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- Response: 220-You are user number 1 of 50 allowed. Response: 220-Local time is now 15:44. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220-IPv6 connections are also welcome on this server. Response: 220 You will be disconnected after 15 minutes of inactivity. Command: AUTH TLS Response: 234 AUTH TLS OK. Status: Initializing TLS... Status: Verifying certificate... Status: TLS connection established. Command: USER username Error: Could not connect to server
On subsequent try, this message is additionally reported
Error: GnuTLS error -110: The TLS connection was non-properly terminated. Status: Server did not properly shut down TLS connection
My wild guess is that it has something to do with recent GnuTLS libs upgrade in 3.40.0.