Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Apr 2001 21:13:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Apr 2001 21:13:30 -0400 Received: from p3EE3C9F7.dip.t-dialin.net ([62.227.201.247]:44807 "HELO emma1.emma.line.org") by vger.kernel.org with SMTP id ; Tue, 17 Apr 2001 21:13:20 -0400 Date: Wed, 18 Apr 2001 03:13:12 +0200 From: Matthias Andree To: Linux-Kernel mailing list Cc: Alan Cox Subject: ip_masq_ftp in 2.2.19 Message-ID: <20010418031312.A31160@emma1.emma.line.org> Mail-Followup-To: Linux-Kernel mailing list , Alan Cox Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org ip_masq_ftp does case sensitive comparisons of FTP commands when snooping the control connection, and may thus miss legitimate PORT/PASV negotiation. The culprit is the use of safe_mem_eq2 to match on the commands, it catches them in either all-caps or all-lower-case (PASV, pasv), but not in mixed case (PaSv) or with trailing whitespace ("PaSv "), while RFC-959 (FTP) demands case insensitive handling of FTP commands. I don't currently have time to fix this myself and submit a patch, sorry. -- Matthias Andree - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/