From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM
Date: Mon, 1 Apr 2019 11:07:27 -0300
Message-ID: <20190401140727.GA7378@alvherre.pgsql> (raw)
In-Reply-To: <6962.1554126913@sss.pgh.pa.us>
On 2019-Apr-01, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > On Sat, Mar 30, 2019 at 10:16 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> Yeah; this is supposing that there is a security boundary between
> >> Postgres superusers and the OS account running the server, which
> >> there is not. We could hardly have features like untrusted PLs
> >> if we were trying to maintain such a boundary.
>
> > I wonder if we need to prepare some sort of official response to that.
> > I was considering writing up a blog post about it, but maybe we need
> > something more official?
>
> Blog post seems like a good idea. As for an "official" response,
> it strikes me that maybe we need better documentation. I'm not sure
> that we spell out anywhere what we think the security model is.
> There are plenty of scattered warnings about unsafe things, but
> if there's any specific statement equivalent to what I just
> wrote above, I can't remember where.
>
> (By the same token, I'm not sure where would be a good place
> to put it ...)
Apparently we had a "Security" chapter in version 7.0, which got
removed, and we recently got a complaint about that:
https://postgr.es/m/CABxk5gCBhLSdrHZVnKUyKk2gR+tcWKNEQ2E-Wnf6OtSJtQ3Ueg@mail.gmail.com
I think Peter is right that we may not want to duplicate the contents of
each section, but I think it makes sense to have a chapter in "Part III.
Server Administration", maybe just after chapters 26 or 27, where some
security considerations are put forth with references to the detailed
docs on security for each aspect of the system.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-general@postgresql.org
Cc: alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, magnus@hagander.net, daniel@manitou-mail.org
Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM
In-Reply-To: <20190401140727.GA7378@alvherre.pgsql>
References: <6962.1554126913@sss.pgh.pa.us> <20190401140727.GA7378@alvherre.pgsql>
* 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