X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8808511F6297 for ; Tue, 4 Apr 2006 18:21:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88746-05 for ; Tue, 4 Apr 2006 18:21:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from pb78.olsztyn.sdi.tpnet.pl. (pb78.olsztyn.sdi.tpnet.pl [213.76.235.78]) by postgresql.org (Postfix) with ESMTP id 52DC611F628C for ; Tue, 4 Apr 2006 18:21:48 -0300 (ADT) Received: (qmail 17450 invoked by uid 1000); 4 Apr 2006 23:26:32 +0200 Date: Tue, 4 Apr 2006 23:26:32 +0200 From: Mariusz =?iso-8859-2?Q?P=EAkala?= To: pgsql-php@postgresql.org Subject: Re: Unable to connect to PostgreSQL Server: Permission denied Message-ID: <20060404212632.GA9480@cthulhu.sdi.tpnet.pl> Mail-Followup-To: pgsql-php@postgresql.org References: <20060403170611.19617.qmail@webmail47.rediffmail.com> <20060403200123.GB9357@cthulhu.sdi.tpnet.pl> <20060404193510.A15256@vlo> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <20060404193510.A15256@vlo> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200604/7 X-Sequence-Number: 3477 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006-04-04 19:35:10 +0200 (Tue, Apr), Pawel Bernat wrote: > On Mon, Apr 03, 2006 at 10:01:23PM +0200, Mariusz P=EAkala wrote: > > Telnet is not the best tool for binary protocols. > > You may try netcat (nc), but anyway - this test is not significant > > here. > It doesn't matter here. Okay, you're saying my English isn't perfect ? :-) > > Don't let the untrusted parameters to go into query. Someone may call > > your page like this: > > http://example.com/add-entry.php?Email=3Da'); delete from Addresses; -- > Nothing wrong will happen. Why? Unless I really overlooked something, I would humbly disagree. 1) It is possible to put a few sql requests in one string. 2) Relying on 'magic_quotes_gpc' and *possible* addslashes() is a bad thing, IMHO. So, where is my mistake? --=20 No virus found in this outgoing message. Checked by "grep -i virus $MESSAGE" Trust me. --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEMuSIIzblgXdKMIURAmHuAKCvMkJUzqQbvCrkNVEPlT3xGq6HgACfYiwz iU1v1U7K9P4FHVY/obk9ujg= =ZvWY -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--