X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D5E5ED1B90A for ; Tue, 19 Aug 2003 13:03:55 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 87690-05 for ; Tue, 19 Aug 2003 13:03:45 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 1169BD1B8E6 for ; Tue, 19 Aug 2003 13:03:44 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h7JG0gwT015433; Tue, 19 Aug 2003 10:00:42 -0600 (MDT) Date: Tue, 19 Aug 2003 10:00:47 -0600 (MDT) From: "scott.marlowe" To: Cody Phanekham Cc: Subject: Re: Securing PHP scripts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/82 X-Sequence-Number: 2259 On Tue, 19 Aug 2003, Cody Phanekham wrote: > I should of mentioned that the server is a dedicated PHP / PostgreSQL > server, therefore no other user would have access to it. > > My only concern is *if* the server gets compromised, then the attacker > would have access to the DB without too much effort. If the server gets compromised, you've lost. If they just get to execute arbitrary code as the httpd user, you've lost, if they can execute arbitrary code as root you've doubly lost. Unless youre system is designed for anonymous database access to be secure, you can't really protect it from a rogue web server.