Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 6139A2E002F for ; Sat, 26 Apr 2008 15:16:14 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13632-06 for ; Sat, 26 Apr 2008 15:16:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by developer.postgresql.org (Postfix) with ESMTP id 65C9A2E0031 for ; Sat, 26 Apr 2008 15:16:11 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id n7so6784268wag.5 for ; Sat, 26 Apr 2008 11:16:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DbkREIDQbqAexj9fsPAKaGGkyRLr0+zuzujN5x0kFXw=; b=WzT68YkuFYvfpxJeihKQnxPKtcukUpE40hLm61EMHu3tUciCETRzvmYeGQ4IpUb5c9qS5BFV7KzTgOsn5FWYkC4ZumF+0nkkh4ybDdknroTVzFXYDnwidk1MAfFB6yt33z7pO2UeqqQ4LMKE9LVONY/1HBizCqM4/v8wzdfNrBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tbyIuehV1v8nbGwvL1omRp0KTfo1xiMnamUlf0/egT6fTA5YjhqbfsNCwISJU+i4FnmVUk1Z6ocWiBmts1mNJgApTF9Gs9oQ+X9Wsd7suwfYGFtMLYSFaGikPHqWxMTA2i7ykX3TpR7jnr/tKwCUA0prF0nA8Q/NmGzT9UiSnyw= Received: by 10.115.89.1 with SMTP id r1mr4624576wal.195.1209233770289; Sat, 26 Apr 2008 11:16:10 -0700 (PDT) Received: by 10.114.67.1 with HTTP; Sat, 26 Apr 2008 11:16:10 -0700 (PDT) Message-ID: Date: Sat, 26 Apr 2008 13:16:10 -0500 From: "Jaime Casanova" To: "Thomas Mueller" Subject: Re: Protection from SQL injection Cc: pgsql-sql@postgresql.org In-Reply-To: <5f211bd50804260932l7a63618jca64858271ff269f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5f211bd50804260932l7a63618jca64858271ff269f@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/182 X-Sequence-Number: 30721 On Sat, Apr 26, 2008 at 11:32 AM, Thomas Mueller wrote: > > The 'ALLOW_LITERALS NONE' mode is enabled by the developer itself, or > by an administrator. then it solves nothing... what if the developer never SET ALLOW_LITERALS NONE or maybe i can inject "select * from tab where intcol = intcol; set allow_literals all; add any query you want" -- regards, Jaime Casanova Soporte de PostgreSQL Guayaquil - Ecuador Cel. (593) 087171157