X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 647665294D for ; Fri, 8 Apr 2005 06:24:55 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77774-10 for ; Fri, 8 Apr 2005 05:24:46 +0000 (GMT) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by svr1.postgresql.org (Postfix) with ESMTP id 3282F53482 for ; Fri, 8 Apr 2005 06:24:45 +0100 (BST) Received: from localhost ([199.185.220.240]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050408052445.IVJK10108.priv-edtnes51.telusplanet.net@localhost>; Thu, 7 Apr 2005 23:24:45 -0600 Received: from 209.17.183.249 ( [209.17.183.249]) as user a3a18850@192.168.200.1 by webmail.telus.net with HTTP; Thu, 7 Apr 2005 22:24:45 -0700 Message-ID: <1112937885.4256159d1fb18@webmail.telus.net> Date: Thu, 7 Apr 2005 22:24:45 -0700 From: Mischa Sandberg To: Tom Lane Cc: pgsql-odbc@postgresql.org Subject: Re: Security of ODBC debug log file leaves something to be desired References: <24444.1112929224@sss.pgh.pa.us> In-Reply-To: <24444.1112929224@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 209.17.183.249 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.082 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200504/15 X-Sequence-Number: 5174 Quoting Tom Lane : > I got a complaint here > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154126 > pointing out that when you set debug=1, the generated log file > is world-readable by default, which doesn't seem like a good > idea when it may contain your password. > Any thoughts about fixing this? It's hard to believe no one > has pointed it out before, so I was wondering if there was some > good reason for doing it like this. Read your comments in the bug report. No, it is not intentional. It is just YA case of ODBC paying only lip service to security. There are still many commercial drivers that send the password over TCP, in the clear. Gah. Both the driver manager and the driver write to the debug log. Each of them is responsible for not doing things like that! File permissions on the log itself are rather weak protection. When I worked for Simba (ODBC kit/SQL engine company, now owned by orbital.com) we patch iODBC so that the password string was overwritten with "*"s before it was logged; and our driver kit did the same. It is simple to fix. Can't guarantee I can make the time right now; having too much antifun with Postgres performance on Solaris. -- "Dreams come true, not free." -- S.Sondheim, ITW