From owner-freebsd-security@FreeBSD.ORG Wed Oct 23 11:54:12 2013 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AFA8F6D5 for ; Wed, 23 Oct 2013 11:54:12 +0000 (UTC) (envelope-from az@azsupport.com) Received: from as1.azsupport.com (azsupport.com [74.52.186.194]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 947672851 for ; Wed, 23 Oct 2013 11:54:12 +0000 (UTC) Received: from localhost (unknown [109.75.144.107]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by as1.azsupport.com (Postfix) with ESMTPSA id F05F7AE0 for ; Wed, 23 Oct 2013 13:54:10 +0200 (CEST) Date: Wed, 23 Oct 2013 13:54:08 +0200 From: Andrei To: freebsd-security@freebsd.org Subject: OpenPAM/SSHD privacy hole (FreeBSD 9.2+ affected) Message-ID: <20131023135408.38752099@azsupport.com> Organization: azsupport.com X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Oct 2013 11:54:12 -0000 Hello, I found that in the new FreeBSD 9.2 (probably in 10 also) updated OpenPAM sources. The big embarrassment was in pam_get_authtok.c. The problem is that even without a valid SSH login it's possible to know the server's hostname. az@az:/home/az % ssh 1.2.3.4 Password for az@real.hostname.com: Changes made by "des": http://www.openpam.org/changeset/510/openpam/trunk/lib I really do not think that this behavior must be present! I ask the community to pay attention to it and remove these harmful changes. Kind regards, Andrei.