]> andersk Git - openssh.git/commit
- djm@cvs.openbsd.org 2008/07/02 12:36:39
authordtucker <dtucker>
Wed, 2 Jul 2008 12:56:09 +0000 (12:56 +0000)
committerdtucker <dtucker>
Wed, 2 Jul 2008 12:56:09 +0000 (12:56 +0000)
commit221fc73cf3316129f15ecb8703a12ee89dd4bd04
treec9ecbe999aea33c37da2cf07a70e462938c82600
parentf7c2a0044cfbf375ad1d41015898893e4e319e59
   - djm@cvs.openbsd.org 2008/07/02 12:36:39
     [auth2-none.c auth2.c]
     Make protocol 2 MaxAuthTries behaviour a little more sensible:
     Check whether client has exceeded MaxAuthTries before running
     an authentication method and skip it if they have, previously it
     would always allow one try (for "none" auth).
     Preincrement failure count before post-auth test - previously this
     checked and postincremented, also to allow one "none" try.
     Together, these two changes always count the "none" auth method
     which could be skipped by a malicious client (e.g. an SSH worm)
     to get an extra attempt at a real auth method. They also make
     MaxAuthTries=0 a useful way to block users entirely (esp. in a
     sshd_config Match block).
     Also, move sending of any preauth banner from "none" auth method
     to the first call to input_userauth_request(), so worms that skip
     the "none" method get to see it too.
ChangeLog
auth2-none.c
auth2.c
This page took 0.281702 seconds and 5 git commands to generate.