crypt auth

Поиск
Список
Период
Сортировка
Искать

crypt auth

От:
Magnus Hagander <magnus@hagander.net>
Дата:
I notice our docs have:
   If you are at all concerned about password   sniffing</> attacks then md5</> is preferred, with   crypt</> to be used only if you must support pre-7.2   clients. Plain password</> should be avoided especially for


At what point do we just remove the support and say that people need to
upgrade their clients? Sure, it's up to ppl not to configure it that
way, but security-wise it's a foot-gun that I think is completely
unnecessary.

//Magnus

Re: crypt auth

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Magnus Hagander wrote:
> I notice our docs have:
> 
>     If you are at all concerned about password
>     sniffing</> attacks then md5</> is preferred, with
>     crypt</> to be used only if you must support pre-7.2
>     clients. Plain password</> should be avoided especially for
> 
> 
> At what point do we just remove the support and say that people need to
> upgrade their clients? Sure, it's up to ppl not to configure it that
> way, but security-wise it's a foot-gun that I think is completely
> unnecessary.

AFAICT, removing an authentication method requires a protocol version 
bump.  If you think it is worth dealing with those complications, then 
go for it.  I think it might be worth it.

Re: crypt auth

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Peter Eisentraut  writes:
> AFAICT, removing an authentication method requires a protocol version 
> bump.

Why would it require that?  There would just be some auth method codes
that remain reserved but aren't used anymore.
		regards, tom lane

Re: crypt auth

От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
Tom Lane wrote:
> Peter Eisentraut  writes:
>> AFAICT, removing an authentication method requires a protocol version 
>> bump.
> 
> Why would it require that?  There would just be some auth method codes
> that remain reserved but aren't used anymore.

Yeah, I was mistaken.  AuthenticationCryptPassword would remain in the 
protocol definition, but the server would just never send it.

Re: crypt auth

От:
Magnus Hagander <magnus@hagander.net>
Дата:
Peter Eisentraut wrote:
> Tom Lane wrote:
>> Peter Eisentraut  writes:
>>> AFAICT, removing an authentication method requires a protocol version
>>> bump.
>>
>> Why would it require that?  There would just be some auth method codes
>> that remain reserved but aren't used anymore.
> 
> Yeah, I was mistaken.  AuthenticationCryptPassword would remain in the
> protocol definition, but the server would just never send it.

Since I've seen no actual objections to this happening, I will go ahead
and do it unless someone objects explicitly :-)

//Magnus

Re: crypt auth

От:
Magnus Hagander <magnus@hagander.net>
Дата:
Magnus Hagander wrote:
> I notice our docs have:
> 
>     If you are at all concerned about password
>     sniffing</> attacks then md5</> is preferred, with
>     crypt</> to be used only if you must support pre-7.2
>     clients. Plain password</> should be avoided especially for
> 
> 
> At what point do we just remove the support and say that people need to
> upgrade their clients? Sure, it's up to ppl not to configure it that
> way, but security-wise it's a foot-gun that I think is completely
> unnecessary.

Here's a patch that does this. Will apply unless there are objections.

//Magnus

*** a/doc/src/sgml/client-auth.sgml
--- b/doc/src/sgml/client-auth.sgml
***************
*** 316,339 **** hostnossl  database  user
         
  
         
-         crypt</>
-         
-          
-          
-           This option is recommended only for communicating with pre-7.2
-           clients.
-          
-          
-          
-           Require the client to supply a crypt()</>-encrypted
-           password for authentication.
-           md5 is now recommended over crypt</>.
-           See  for details.
-          
-         
-        
- 
-        
          password</>
          
           
--- 316,321 ----
***************
*** 705,734 **** omicron       bryanh            guest1
      MD5</>
     
     
-     crypt</>
-    
-    
      password
      authentication
     
  
     
      The password-based authentication methods are md5</>,
!     crypt</>, and password</>. These methods operate
      similarly except for the way that the password is sent across the
!     connection: respectively, MD5-hashed, crypt-encrypted, and clear-text.
!     A limitation is that the crypt</> method does not work with
!     passwords that have been encrypted in pg_authid.
     
  
     
      If you are at all concerned about password
!     sniffing</> attacks then md5</> is preferred, with
!     crypt</> to be used only if you must support pre-7.2
!     clients. Plain password</> should be avoided especially for
!     connections over the open Internet (unless you use SSL,
!     SSH</>, or another
!     communications security wrapper around the connection).
     
  
     
--- 687,707 ----
      MD5</>
     
     
      password
      authentication
     
  
     
      The password-based authentication methods are md5</>,
!     and password</>. These methods operate
      similarly except for the way that the password is sent across the
!     connection: respectively, MD5-hashed and clear-text.
     
  
     
      If you are at all concerned about password
!     sniffing</> attacks then md5</> is preferred.
!     Plain password</> should always be avoided if possible.
     
  
     
*** a/doc/src/sgml/protocol.sgml
--- b/doc/src/sgml/protocol.sgml
***************
*** 296,314 ****
       
  
       
-       AuthenticationCryptPassword
-       
-        
-         The frontend must now send a PasswordMessage containing the
-         password encrypted via crypt(3), using the 2-character salt
-         specified in the AuthenticationCryptPassword message.  If
-         this is the correct password, the server responds with an
-         AuthenticationOk, otherwise it responds with an ErrorResponse.
-        
-       
-      
- 
-      
        AuthenticationMD5Password
        
         
--- 296,301 ----
***************
*** 1533,1593 **** AuthenticationCleartextPassword (B)
  
  
  
- AuthenticationCryptPassword (B)
- 
- 
- 
- 
- 
- 
- 
-         Byte1('R')
- 
- 
- 
-                 Identifies the message as an authentication request.
- 
- 
- 
- 
- 
-         Int32(10)
- 
- 
- 
-                 Length of message contents in bytes, including self.
- 
- 
- 
- 
- 
-         Int32(4)
- 
- 
- 
-                 Specifies that a crypt()-encrypted password is required.
- 
- 
- 
- 
- 
-         Byte2
- 
- 
- 
-                 The salt to use when encrypting the password.
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
  AuthenticationMD5Password (B)
  
  
--- 1520,1525 ----
*** a/doc/src/sgml/user-manag.sgml
--- b/doc/src/sgml/user-manag.sgml
***************
*** 215,222 **** CREATE USER name;
         
          A password is only significant if the client authentication
          method requires the user to supply a password when connecting
!         to the database. The 
FAQ