pgsql: Verify that the server constructed the SCRAM nonce correctly.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Verify that the server constructed the SCRAM nonce correctly.
Date: 2017-05-23 09:57:01
Message-ID: E1dD6Yn-00038m-Ma@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Verify that the server constructed the SCRAM nonce correctly.

The nonce consists of client and server nonces concatenated together. The
client checks the nonce contained the client nonce, but it would get fooled
if the server sent a truncated or even empty nonce.

Reported by Steven Fackler to security(at)postgresql(dot)org(dot) Neither me or Steven
are sure what harm a malicious server could do with this, but let's fix it.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1c9b6e818f047e07f1de62b4d11e0c5db2d55ab7

Modified Files
--------------
src/interfaces/libpq/fe-auth-scram.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2017-05-23 18:13:24 pgsql: Update URLs in pgindent source and README
Previous Message Michael Meskes 2017-05-23 08:23:40 pgsql: Synced ecpg's pg_type.h with the one used in the backend.