NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/59202: blocklistd: openssh: Add a version mismatch probe
>Number: 59202
>Category: bin
>Synopsis: blocklistd: openssh: Add a version mismatch probe
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 21 02:20:00 +0000 2025
>Originator: Jose Luis Duran
>Release: trunk
>Organization:
>Environment:
>Description:
A lot of bots are checking for SSH version 1 (or mismatched), and currently blocklistd does not mark them as an nfail, spamming the console/logs.
>How-To-Repeat:
echo "SSH-1.5-TEST" | nc <ssh-server> 22
>Fix:
--- a/crypto/external/bsd/openssh/dist/sshd-session.c
+++ b/crypto/external/bsd/openssh/dist/sshd-session.c
@@ -1260,8 +1260,10 @@ main(int ac, char **av)
}
if ((r = kex_exchange_identification(ssh, -1,
- options.version_addendum)) != 0)
+ options.version_addendum)) != 0) {
+ pfilter_notify(1);
sshpkt_fatal(ssh, r, "banner exchange");
+ }
ssh_packet_set_nonblocking(ssh);
--
Jose Luis Duran
Home |
Main Index |
Thread Index |
Old Index