From: François Delpierre <pgsql@pivert.org>
To: pgsql-php@postgresql.org
Subject: Re: How to store files into the DB with PHP. (bytea ?)
Date: Tue, 3 Feb 2009 17:16:44 +0100
Message-ID: <200902031716.44453.pgsql@pivert.org> (raw)
Hi Andrew,
> I don't see that this changes things. Whether you use stored
> procedures, authenticate against the database, or whatever, your web
> application layer has access to the information on the way through and
> any compromise of your webserver will necessarily involve having a 'man
> in the middle' possibility.
You're right, authenticating against the DB will not change anything, my
mistake. As far as the user can read a table, he can read all records.
> So an attacker would (e.g.) log the user's credentials as they pass
> through and then happily generate their own tickets to use to extract
> the data.
Totally agree, the attacker will be able to access the files of the users that
are connecting from the time he put the sniffer in place BUT NOT dump the whole
content with thousands of documents from the previous months from users that
did not connect recently. So, this limit the impact.
To go back to the initial subject of this post, I'm now able to store/read
files from the DB up to 20MB without problem. Without using stored procedures
yet. (Maybe I can post the code here.) Only an annoying warning about escaping
that I can't figure out yet.
François.
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: pgsql@pivert.org
Subject: Re: How to store files into the DB with PHP. (bytea ?)
In-Reply-To: <200902031716.44453.pgsql@pivert.org>
References: <200902031716.44453.pgsql@pivert.org>
* 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