logoalt Hacker News

yjftsjthsd-h • today at 10:22 PM • 3 replies • view on HN

> Whereas a public open SSH port has always seemed (and proved) dangerous, now more than ever.

Wait, did I miss something? When has opensshd proven dangerous to expose?


Replies

FredFS456 • today at 10:23 PM

It's impossible to detect an open wireguard port as no response is generated unless you have the correct key. SSH on the other hand is easily scanned for.

➕ show 2 replies
jacobgold • today at 10:28 PM

There have been a variety of issues with different SSH daemon implementations and configurations. You can also just make a dangerous mistake with your own configuration, or a cloud provider can easily have a bad default cloud-init sshd config that overrides your safe config, etc.

One good example:

regreSSHion, CVE-2024-6387, is an unauthenticated remote code execution in OpenSSH’s server (sshd) that grants full root access. It affects the default configuration and does not require user interaction. It poses a significant exploit risk. https://www.qualys.com/regresshion-cve-2024-6387

With WireGuard, using a pre-shared key, attackers are interacting with virtually no code unless they have a valid encrypted packet, and then they still need the peer key to connnect.

With an SSH server, there's a lot of code being executed by any remote attacker pre-authentication. Any exploit in this code can grant access. This is just inherently more risky.

➕ show 2 replies
lazide • today at 10:49 PM

It’s been awhile, but there have been exploits. Also constant attempts.