Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egai9-000734-Bj for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jan 2018 18:32:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egai8-0004Bu-9k for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Jan 2018 18:32:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egai7-0004Bl-SJ for pgsql-bugs@lists.postgresql.org; Tue, 30 Jan 2018 18:32:48 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egai0-0003wX-5N for pgsql-bugs@lists.postgresql.org; Tue, 30 Jan 2018 18:32:46 +0000 Received: from [192.168.127.1] (port=19901 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1egahu-0004pl-Iu; Tue, 30 Jan 2018 18:32:34 +0000 Received: from [127.0.0.1] (port=13195 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1egaht-000Cea-G7; Tue, 30 Jan 2018 18:32:33 +0000 From: Andrew Gierth To: Meirav Rath Cc: "David G. Johnston" , Tomas Vondra , "pgsql-bugs\@lists.postgresql.org" Subject: Re: BUG #15035: scram-sha-256 blocks all logins In-Reply-To: (Meirav Rath's message of "Tue, 30 Jan 2018 07:56:40 +0000") Message-ID: <87lggftdaq.fsf@news-spur.riddles.org.uk> References: <151723922191.1238.12656996435976596418@wrigleys.postgresql.org> <660079bb-b468-f41f-928e-1b3a46e17ae9@2ndquadrant.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 30 Jan 2018 18:32:31 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Meirav" == Meirav Rath 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)