To replicate:
ssh nonexistent@server & sleep 0.5; kill $!
Reported by: Jana Steuernagel
Differential D58284
openssh: blocklist: Add the other fatal exit probe Authored by jlduran on Thu, Jul 16, 3:55 PM. Tags None Referenced Files
Subscribers
Details
To replicate: ssh nonexistent@server & sleep 0.5; kill $! Reported by: Jana Steuernagel
Diff Detail
Event TimelineComment Actions Sure enough (https://reviews.freebsd.org/D58083?id=181447#inline-344443). diff --- a/crypto/external/bsd/openssh/dist/sshd-session.c +++ b/crypto/external/bsd/openssh/dist/sshd-session.c @@ -1346,7 +1346,9 @@ cleanup_exit(int i) pfilter_notify(1); _exit(EXIT_AUTH_ATTEMPTED); } - if (i == 255 && monitor_invalid_user()) + if (i == 255 && monitor_invalid_user()) { + pfilter_notify(1); _exit(EXIT_INVALID_USER); + } _exit(i); } Comment Actions I think this effectively leaves us (FreeBSD) open to a username enumeration vulnerability, because we do not have a blocklist probe in grace_alarm_handler(). |