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 408A653314 for ; Fri, 8 Apr 2005 04:00:35 +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 02748-04 for ; Fri, 8 Apr 2005 03:00:26 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 636B853A01 for ; Fri, 8 Apr 2005 04:00:25 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3830OKK024445 for ; Thu, 7 Apr 2005 23:00:24 -0400 (EDT) To: pgsql-odbc@postgreSQL.org Subject: Security of ODBC debug log file leaves something to be desired Date: Thu, 07 Apr 2005 23:00:24 -0400 Message-ID: <24444.1112929224@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/14 X-Sequence-Number: 5173 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. Also, since the name of the file is pretty predictable, there is an opportunity for a symlink redirection attack (though I doubt anything really interesting could be accomplished that way). 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. regards, tom lane