pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew McMillan <andrew@catalyst.net.nz>
To: Ed Finkler <coj@cerias.purdue.edu>
Cc: Volkan YAZICI <volkan.yazici@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Effectiveness of pg_escape_string at blocking SQL
Date: Sat, 28 May 2005 17:01:20 +1200
Message-ID: <1117256480.30150.172.camel@lamb.mcmillan.net.nz> (raw)
In-Reply-To: <42974BDD.8040807@cerias.purdue.edu>
References: <4297435C.20605@cerias.purdue.edu>
	<7104a737050527092541f9889f@mail.gmail.com>
	<42974BDD.8040807@cerias.purdue.edu>

On Fri, 2005-05-27 at 11:33 -0500, Ed Finkler wrote:
> Volkan YAZICI wrote:
> 
> [snip]
> 
> > If you think, they're not enough for SQL-Injection attacks, I'd advice
> > you to patch libpq code, not PHP.
> 
> This is very helpful information.  My initial thinking is that this 
> wouldn't be effective at catching SQL injections, but I'll need to 
> bounce this off a few other folks.

Given the modus operandi of an SQL inject attack, this should be
perfectly effective at stopping them.

As Bruno said, however, the "bind parameters" approach is a better
approach in general.

Cheers,
					Andrew McMillan.

-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ  Ltd,  PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/            PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201      MOB: +64(272)DEBIAN      OFFICE: +64(4)499-2267

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (9+ messages)  latest in thread

Message-ID: <1117256480.30150.172.camel@lamb.mcmillan.net.nz>
Permalink:  ../1117256480.30150.172.camel@lamb.mcmillan.net.nz/
Also on:    postgresql.org/message-id/1117256480.30150.172.camel@lamb.mcmillan.net.nz

 · 

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: andrew@catalyst.net.nz, coj@cerias.purdue.edu, volkan.yazici@gmail.com
  Subject: Re: Effectiveness of pg_escape_string at blocking SQL
  In-Reply-To: <1117256480.30150.172.camel@lamb.mcmillan.net.nz>
  References: <4297435C.20605@cerias.purdue.edu> <7104a737050527092541f9889f@mail.gmail.com> <42974BDD.8040807@cerias.purdue.edu> <1117256480.30150.172.camel@lamb.mcmillan.net.nz>

* 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