Post by @xgranade@wandering.shop
So, if I'm reading this right, the *sshole thing is both very bad and requires the stars to align in just the wrong way for you to actually be vulnerable?
[Edit: See replies for some very important context and corrections.]
4 boosts
(And yes, "stars align" was an intentional pun.)
It is also very frustrating that the *sshole writeup decays into AI boosterism about three quarters of the way through. My dude, you did not need an "agent swarm" to orchestrate fuzzers.
@xgranade But how else are they going to set money on fire for a vuln that requires a specific set of configuration to exploit???
@cthos The vuln is really bad on its own! The sensationalism around it is really weird, no one needed to exaggerate this in order for it to be bad!
@xgranade My own exposure to this is basically nothing as the only place I run Alpine is inside docker and none of those are exposed to ssh
@cthos Yeah, ditto. I'm curious about embedded devices, but none of those are directly exposed either...
@cthos@mastodon.cthos.dev @aud@spectre.asta.lgbt @xgranade@wandering.shop I think we should all walk around saying "4! 4! 4!" like the ravening hordes of kids intoning Six Seven all day. Just to confuse people more than usual.
Tangential, but relevant anecdote.
Back in 2015 I attended a talk given by a graduate student who had used AWS to calculate some value for some engineering problem - I have no recollection of what it was. As I sat and listened, I did some back of the envelope math and discovered he had achieved a whopping 3% efficiency. IOW, he could have done the whole thing on his laptop. Probably in Excel.
Did anyone in the audience raise this point? OFC not, they lapped it up.
@xgranade Anyone with PasswordAuthentication=yes (default) and UsePAM=no, and users who have no password set alongside users who do, running pre-fix OpenSSH on musl libc, is vulnerable to full authentication bypass logging in as one of the accounts with no password.
@xgranade The problem is that, instead of checking crypt(candidate_pw,hash)==hash in the case where hash=="*" (no password), they checked crypt(candidate_pw,another_users_hash)==hash to avoid timing sidechannels.
@dalias I thought PAM also had to be disabled and there had to be another account that did have a valid password?
Regardless, thank you for the correction on that.
@darkuncle @xgranade And one more requirement: the account with a real password has to be using the nasty sha256 or sha512 hash algos that require length-limiting the password. If you're using bcrypt or des or even md5, the OpenSSH vuln is not reachable.
@darkuncle @dalias @xgranade and presumably a usable shell on the target account (not /bin/false, etc). This appears to exclude OpenWrt (even when switching from Dropbear to OpenSSH).
@RoganDawes @darkuncle @xgranade Are you sure lack of a usable shell excludes access? ssh protocol has options to request sessions without a shell (forwarding only, for example) and I think these will work without a shell set on the account. I can't imagine sshd having a way to validate "shell would be valid if we tried to run it" without actually trying to run it.
@dalias @darkuncle @xgranade ok, that’s a fair point. Forwarding in its various forms would likely still work even for accounts with an unusable shell. And I guess OpenSSH Unix socket forwarding for things like docker sockets would be reachable, assuming suitable user permissions.
Not sure how much of that is used in OpenWrt, but it might give you access to uci or something similar.
@RoganDawes @darkuncle @xgranade I think OpenWRT is good about not treating the network layer as trusted itself, but if ssh access from WAN is allowed, it would let an attacker tunnel across the router onto the LAN via ssh forwarding.