pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Meirav Rath <meirav.rath@imperva.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-bugs\@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15035: scram-sha-256 blocks all logins
Date: Tue, 30 Jan 2018 18:32:31 +0000
Message-ID: <87lggftdaq.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <DM2PR0601MB0956D8A1DDED5131ABEF13E3E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com>
References: <151723922191.1238.12656996435976596418@wrigleys.postgresql.org>
	<660079bb-b468-f41f-928e-1b3a46e17ae9@2ndquadrant.com>
	<DM2PR0601MB09561C86B3F67A7B56A38938E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com>
	<CAKFQuwbthtxsDcf1YqYO4JiC3KeoejeuJsfWk6pFaSpauHAoaA@mail.gmail.com>
	<DM2PR0601MB0956D8A1DDED5131ABEF13E3E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com>

>>>>> "Meirav" == Meirav Rath <meirav.rath@imperva.com> writes:

 Meirav> host all postgres 0.0.0.0/0 trust

Never do this. (If you need non-password access for the postgres user,
then use "local all postgres peer", or a certificate-based method, or at
the _very least_ limit it to trusted IP addresses.)

Someone who can connect as the postgres user can load code into the
database remotely and run it, in addition to being able to see or modify
all your data. People _do_ get exploited this way (we see instances of
it reported on the IRC channel every once in a while); they find
themselves running DDoS bots or cryptocurrency miners or whatever else.

-- 
Andrew (irc:RhodiumToad)




view thread (24+ messages)  latest in thread

Message-ID: <87lggftdaq.fsf@news-spur.riddles.org.uk>
Permalink:  ../87lggftdaq.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87lggftdaq.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, meirav.rath@imperva.com, david.g.johnston@gmail.com, tomas.vondra@2ndquadrant.com
  Subject: Re: BUG #15035: scram-sha-256 blocks all logins
  In-Reply-To: <87lggftdaq.fsf@news-spur.riddles.org.uk>
  References: <151723922191.1238.12656996435976596418@wrigleys.postgresql.org> <660079bb-b468-f41f-928e-1b3a46e17ae9@2ndquadrant.com> <DM2PR0601MB09561C86B3F67A7B56A38938E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com> <CAKFQuwbthtxsDcf1YqYO4JiC3KeoejeuJsfWk6pFaSpauHAoaA@mail.gmail.com> <DM2PR0601MB0956D8A1DDED5131ABEF13E3E4E40@DM2PR0601MB0956.namprd06.prod.outlook.com> <87lggftdaq.fsf@news-spur.riddles.org.uk>

* 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