From owner-freebsd-ports Mon Aug 5 8: 0:25 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E60637B401; Mon, 5 Aug 2002 08:00:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AE8143E6A; Mon, 5 Aug 2002 08:00:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g75F0LJU002640; Mon, 5 Aug 2002 08:00:21 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g75F0Lfl002639; Mon, 5 Aug 2002 08:00:21 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67EFB37B47F for ; Mon, 5 Aug 2002 07:54:17 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1309443E42 for ; Mon, 5 Aug 2002 07:54:10 -0700 (PDT) (envelope-from kivvy@whale.sunbay.crimea.ua) Received: (from kivvy@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g75EruL19501; Mon, 5 Aug 2002 17:53:56 +0300 (EEST) (envelope-from kivvy) Message-Id: <200208051453.g75EruL19501@whale.sunbay.crimea.ua> Date: Mon, 5 Aug 2002 17:53:56 +0300 (EEST) From: Igor Kucherenko Reply-To: Igor Kucherenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: ru Subject: ports/41342: gnatsd reveals passwords to syslog Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41342 >Category: ports >Synopsis: gnatsd reveals passwords to syslog >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Aug 05 08:00:08 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Igor Kucherenko >Release: FreeBSD 4.5-STABLE i386 >Organization: Sunbay Software Ltd >Environment: System: FreeBSD whale.sunbay.crimea.ua 4.5-STABLE FreeBSD 4.5-STABLE #1: Mon Mar 4 21:02:08 EET 2002 kivvy@whale.sunbay.crimea.ua:/usr/src/sys/compile/WHALE i386 >Description: Gnatsd from ports/databases/gnats, when user authentication has failed gnatsd write "user/password" in cleartext form to syslog. This is unsecure behaviour. >How-To-Repeat: >Fix: Index: files/patch-gnats::cmds.c =================================================================== RCS file: files/patch-gnats::cmds.c diff -N files/patch-gnats::cmds.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-gnats::cmds.c 5 Aug 2002 14:26:56 -0000 @@ -0,0 +1,15 @@ +--- gnats/cmds.c.orig Sun Feb 4 22:56:10 2001 ++++ gnats/cmds.c Mon Aug 5 17:25:48 2002 +@@ -476,9 +476,9 @@ + + if (user_access <= ACCESS_NONE) + { +- syslog (LOG_ERR, "user not allowed access: %s/%s", av[0], av[1]); +- printf ("%d You are not on the user access list: %s/%s.\r\n", +- CODE_NO_ACCESS, av[0], av[1]); ++ syslog (LOG_ERR, "user %s not allowed access", av[0]); ++ printf ("%d You are not on the user access list.\r\n", ++ CODE_NO_ACCESS, av[0]); + exit (1); + } + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message