• Heikki Linnakangas's avatar
    Verify that the server constructed the SCRAM nonce correctly. · 1c9b6e81
    Heikki Linnakangas authored
    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@postgresql.org. Neither me or Steven
    are sure what harm a malicious server could do with this, but let's fix it.
    1c9b6e81
fe-auth-scram.c 16.8 KB