pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Cody Phanekham <Cody.Phanekham@salmat.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: Securing PHP scripts
Date: Tue, 19 Aug 2003 10:00:47 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0308190958050.9234-100000@css120.ihs.com> (raw)
In-Reply-To: <D4E7ED5EA9163C4089B0D9FF73B1FC4B6450C6@sydmxs04.salmat.com.au>

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.




view thread (8+ messages)

Message-ID: <Pine.LNX.4.33.0308190958050.9234-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0308190958050.9234-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0308190958050.9234-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: scott.marlowe@ihs.com, Cody.Phanekham@salmat.com.au
  Subject: Re: Securing PHP scripts
  In-Reply-To: <Pine.LNX.4.33.0308190958050.9234-100000@css120.ihs.com>
  References: <D4E7ED5EA9163C4089B0D9FF73B1FC4B6450C6@sydmxs04.salmat.com.au> <Pine.LNX.4.33.0308190958050.9234-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox