pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Van Mater <nutter_@hotmail.com>
To: tgl@sss.pgh.pa.us
Cc: pgsql-sql@postgresql.org
Subject: Re: how to preserve \n in select statement
Date: Sat, 20 Dec 2003 12:58:39 -0500
Message-ID: <BAY9-F42t0CI76rOJhK00098f93@hotmail.com> (raw)

>Because you are using an input syntax that requires that quotes and
>backslashes be escaped.  There are other input methods available that
>don't require this, but they have disadvantages of their own.  In
>particular, you have to separate data from SQL command if you want a
>no-escape-processing behavior for data.

right, I was looking for the alternate input methods that you allude to.  I 
have been unable to find an example of exactly how to do this.

> > I think this behavior stems from a security problem psql had a while
> > back where escape characters were being interpreted, and this may be
> > another instance of that functionality.

>Matt, you have no idea what you are talking about.

I readily admit that I didn't read much into it, but I think you are 
mistaken.  If you look at the following links you will see that postgresql 
definitely had a vulnerability that allowed sql injection through the use of 
escape characters.  I was simply saying that this behavior might be a way of 
preventing that from happening again.
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0802
http://cert.uni-stuttgart.de/doc/postgresql/escape/

_________________________________________________________________
Get dial-up Internet access now with our best offer: 6 months @$9.95/month!  
http://join.msn.com/?page=dept/dialup




view thread (11+ messages)  latest in thread

Message-ID: <BAY9-F42t0CI76rOJhK00098f93@hotmail.com>
Permalink:  ../BAY9-F42t0CI76rOJhK00098f93@hotmail.com/
Also on:    postgresql.org/message-id/BAY9-F42t0CI76rOJhK00098f93@hotmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nutter_@hotmail.com, tgl@sss.pgh.pa.us
  Subject: Re: how to preserve \n in select statement
  In-Reply-To: <BAY9-F42t0CI76rOJhK00098f93@hotmail.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