diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-06-03 17:44:09 -0400 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-06-03 17:44:09 -0400 |
commit | d0f4824a54104bb831ebcd46982e6e3b337ef5fa (patch) | |
tree | 9cd35dfb5f007717029d3480e5645c69036ccd6b | |
parent | 47b7051bc82f11f19df43544045c93549783e962 (diff) | |
download | postgresql-d0f4824a54104bb831ebcd46982e6e3b337ef5fa.tar.gz postgresql-d0f4824a54104bb831ebcd46982e6e3b337ef5fa.zip |
doc: Add note to prevent server spoofing with SCRAM
The set of recommendations added in the documentation with this commit
helps in avoiding SCRAM exchanges with untrusted servers.
Author: Jacob Champion, Jonathan Katz
Reviewed-by: Stephen Frost, Daniel Gustafsson, Michael Paquier
Discussion: https://postgr.es/m/CAAWbhmg5Gh0JetNbQi7z0yOsdsN9YECv8GoY-QBGBBiip9+JOw@mail.gmail.com
-rw-r--r-- | doc/src/sgml/runtime.sgml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index dbe23db54f0..64753d9c014 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -2015,6 +2015,19 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433 </para> <para> + To prevent server spoofing from occurring when using + <link linkend="auth-password">scram-sha-256</link> password authentication + over a network, you should ensure that you connect to the server using SSL + and with one of the anti-spoofing methods described in the previous + paragraph. Additionally, the SCRAM implementation in + <application>libpq</application> cannot protect the entire authentication + exchange, but using the <literal>channel_binding=require</literal> connection + parameter provides a mitigation against server spoofing. An attacker that + uses a rogue server to intercept a SCRAM exchange can use offline analysis to + potentially determine the hashed password from the client. + </para> + + <para> To prevent spoofing with GSSAPI, the server must be configured to accept only <literal>hostgssenc</literal> connections (<xref linkend="auth-pg-hba-conf"/>) and use <literal>gss</literal> |