diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-07-15 13:49:44 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-07-15 13:49:44 +1000 |
commit | 283b97ff33ea2c641161950849931bd578de6946 (patch) | |
tree | 2f8127f4ca0bd727252c860e105ad1140ce54b6b /nchan2.ms | |
parent | 9286875a73b2de7736b5e50692739d314cd8d9dc (diff) |
Mitigate timing of disallowed users PAM logins.
When sshd decides to not allow a login (eg PermitRootLogin=no) and
it's using PAM, it sends a fake password to PAM so that the timing for
the failure is not noticeably different whether or not the password
is correct. This behaviour can be detected by sending a very long
password string which is slower to hash than the fake password.
Mitigate by constructing an invalid password that is the same length
as the one from the client and thus takes the same time to hash.
Diff from djm@
Diffstat (limited to 'nchan2.ms')
0 files changed, 0 insertions, 0 deletions