pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeremy Schneider <schnjere@amazon.com>
Cc: Brad Nicholson <bradn@ca.ibm.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: Jonathan S. Katz <jkatz@postgresql.org>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM
Date: Thu, 4 Apr 2019 13:36:48 -0700
Message-ID: <20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de> (raw)
In-Reply-To: <CABUevEznSFn2FD-N0Tv+aFM85UkoVBe4cvWG2DhYz8FntVaQrQ@mail.gmail.com>
References: <e6251b54-78f4-4ec0-8e22-8c4179f0e817@manitou-mail.org>
	<8059.1553980568@sss.pgh.pa.us>
	<CABUevEz3Rw+Q6K1NjtkNsh6tME4omjm+ywmpwEVLAjctJ+pWYg@mail.gmail.com>
	<6962.1554126913@sss.pgh.pa.us>
	<A2F7EB11-7B4B-452D-8DEA-0DCD88535FE5@postgresql.org>
	<20190402050501.GN16093@paquier.xyz>
	<OF1C5515C9.AC2B9DD6-ON852583D0.0044DEB2-852583D0.0045202D@notes.na.collabserv.com>
	<038270ec-28c8-1082-7fbc-8d5df3cbdbd0@amazon.com>
	<31048.1554407141@sss.pgh.pa.us>
	<CABUevEznSFn2FD-N0Tv+aFM85UkoVBe4cvWG2DhYz8FntVaQrQ@mail.gmail.com>

Hi

On 2019-04-04 21:50:41 +0200, Magnus Hagander wrote:
> On Thu, Apr 4, 2019 at 9:45 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> > Jeremy Schneider <schnjere@amazon.com> writes:
> > > I'm all for having clear documentation about the security model in
> > > PostgreSQL, but I personally wouldn't be in favor of adding extra
> > > wording to the docs just to pacify concerns about a CVE which may have
> > > been erroneously granted by an assigning authority, who possibly should
> > > have done better due diligence reviewing the content. Particularly if
> > > there's any possibility that the decision to assign the number can be
> > > appealed/changed, though admittedly I know very little about the CVE
> > > process.
> >
> > Just FYI, we have filed a dispute with Mitre about the CVE, and also
> > reached out to trustwave to try to find out why they filed the CVE
> > despite the earlier private discussion.
> >
> 
> The original author has also pretty much acknowledged in comments on his
> blog and on twitter that it's not actually a vulnerability. (He doesn't
> agree with the design decision, which is apparently enough for a high
> scoring CVE registration).

Btw, the xp_cmdshell thing the author references several times?
It can be enabled via tsql if you have a privileged account.

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/xp-cmdshell-server-configurat...

and it allows to execute shell code (as a specified user) even when not
a sysadmin:
https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/xp-cmdshell-trans...

Greetings,

Andres Freund





view thread (19+ messages)  latest in thread

Message-ID: <20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de>
Permalink:  ../20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de

 · 

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 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: andres@anarazel.de, magnus@hagander.net, tgl@sss.pgh.pa.us, schnjere@amazon.com, bradn@ca.ibm.com, michael@paquier.xyz, daniel@manitou-mail.org, jkatz@postgresql.org
  Subject: Re: CVE-2019-9193 about COPY FROM/TO PROGRAM
  In-Reply-To: <20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de>
  References: <e6251b54-78f4-4ec0-8e22-8c4179f0e817@manitou-mail.org> <8059.1553980568@sss.pgh.pa.us> <CABUevEz3Rw+Q6K1NjtkNsh6tME4omjm+ywmpwEVLAjctJ+pWYg@mail.gmail.com> <6962.1554126913@sss.pgh.pa.us> <A2F7EB11-7B4B-452D-8DEA-0DCD88535FE5@postgresql.org> <20190402050501.GN16093@paquier.xyz> <OF1C5515C9.AC2B9DD6-ON852583D0.0044DEB2-852583D0.0045202D@notes.na.collabserv.com> <038270ec-28c8-1082-7fbc-8d5df3cbdbd0@amazon.com> <31048.1554407141@sss.pgh.pa.us> <CABUevEznSFn2FD-N0Tv+aFM85UkoVBe4cvWG2DhYz8FntVaQrQ@mail.gmail.com> <20190404203648.ntgxb26qpg4d4mgb@alap3.anarazel.de>

* 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