467
top 50 comments
sorted by: hot top new old
[-] yucandu@lemmy.world 119 points 2 weeks ago

The only time I ever exposed my SSH port to the WAN, I got about 750 connection attempts from China and 250 attemps from Russia per hour.

[-] nexusband@lemmy.world 30 points 2 weeks ago* (last edited 2 weeks ago)

yeah, while reading this i was going "What maniac exposes SSH to WAN anyway...?" the whole time. I fail to see any reason or point that can be justified exposing SSH to WAN.

[-] muusemuuse@sh.itjust.works 45 points 2 weeks ago

I used to have a synology NAS that would sleep of death itself. Synology support asked me to port forward SSH to the open internet and set no password so they could pull logs over the next few weeks.

Yes, it was legit synology support not a scammer.

No, I haven’t bought synology ever again.

load more comments (6 replies)
[-] dev_null@lemmy.ml 18 points 2 weeks ago* (last edited 2 weeks ago)

Any VPS provider just gives you an SSH IP and port. So that's the default state, until you do something else, which I imagine many don't, since key based authentication was always considered secure.

So I don't know the reason, but that's the standard practice with most providers, like Digital Ocean or Linode or whatever. You can call them maniacs but you shouldn't be surprised at something so ubiquitous.

load more comments (3 replies)
[-] Theoriginalthon@lemmy.world 21 points 2 weeks ago

Fail2ban with increasing jail time for repeat offenders usually takes care of the worst of it after a day or two

[-] pHr34kY@lemmy.world 18 points 2 weeks ago

99.999% of that is over IPv4. I leave IPv6 open to WAN for my own use and it's not a problem.

[-] Agent641@lemmy.world 12 points 2 weeks ago

Thanks for the intel

[-] wonderingwanderer@sopuli.xyz 12 points 2 weeks ago

Yet some people will still say with a straight face "tHeRe iS nO hYbRiD wAr!1!1"

Not in Ba Sing Se at least...

load more comments (4 replies)
[-] Zarobi@aussie.zone 10 points 2 weeks ago

Yeah it's crazy. Are they just constantly pinging every possible ip address on every possible port every second? I opened a port for 1 day and the traffic made me uncomfortable enough to rearchitecture my entire self host setup

[-] Agent641@lemmy.world 10 points 2 weeks ago

New friends from all over the world!

[-] anarchy79@lemmy.world 8 points 2 weeks ago

Did it help you find hot milfs within a mile of your location?

load more comments (11 replies)
[-] esc@piefed.social 95 points 2 weeks ago

tldr: disable password auth in ssh.

Also name misses the point I think, it's a musl-hole.

[-] anarchy79@lemmy.world 14 points 2 weeks ago

i mean assholes are muscle holes.

load more comments (1 replies)
load more comments (2 replies)
[-] sem@lemmy.blahaj.zone 80 points 2 weeks ago

Can they please take a break from having vulnerabilities

[-] MyFriendGodzilla@lemmy.world 66 points 2 weeks ago

nah, find and fix as many as possible.

[-] Jason2357@lemmy.ca 72 points 2 weeks ago

It seems like the pattern emerging is that AI is great at finding these obscure vulnerabilities that are only exploitable on very particular systems with very particular, non-typical configurations, and only on nights where unicorns fart candycorn.

Sure, fix them, but the hype is too much. Also, disable password auth on SSH already. Jesus. Keys arnt that hard.

[-] MyFriendGodzilla@lemmy.world 24 points 2 weeks ago

I agree about the AI, but desktop Linux has never been under haxxor pressure the same way windows or apple has. I also think the newer parts of the userbase are less technical than even ten years ago. Previously undocumented bugs found and squashed is great for everyone.

load more comments (2 replies)
[-] p03locke@lemmy.dbzer0.com 19 points 2 weeks ago

More like AI is much faster at finding obscure vulnerabilities, because it doesn't get tired of digging into the mind-numbing details of human-generated spaghetti code. Give a human the same kind of task, and they would die of boredom 12 hours into it.

We're entering an age where AI is quickly cleaning up the stupid security holes that have been created by decades of human mistakes, and will continue to be this way until increased AI security reviews will become more standard. The tribals wielding spears will continue to get shot by superior firepower until they adapt to the same weapons and protection themselves.

[-] kkj@lemmy.dbzer0.com 10 points 2 weeks ago

"Cleaning up" seems a little generous. It's finding them, but someone still has to patch them.

load more comments (7 replies)
load more comments (4 replies)
load more comments (6 replies)
[-] db2@lemmy.world 56 points 2 weeks ago* (last edited 2 weeks ago)
[-] sorter_plainview@lemmy.today 41 points 2 weeks ago

The person who discovered *sshole said OpenWRT is affected, but by default, that OS uses the Dropbear package, not OpenSSH, for SSH connections (though maintainers provide instructions for installing the latter).

[-] boatswain@infosec.pub 50 points 2 weeks ago

Given this is a vuln when entering the password, just turn off password auth and use ssh keys only. It's what you should be doing anyway.

[-] asap@lemmy.world 13 points 2 weeks ago* (last edited 2 weeks ago)

The vuln is specifically for key-based accounts:

Second, the target system account must be configured to be passwordless. Passwordless accounts are commonly used for accounts that use certificate-based authentication.

[-] dan@upvote.au 27 points 2 weeks ago

"passwordless" here means that the account doesn't have a password. What the person you're replying to means is that password authentication should be completely disabled in the SSH config, as that's the only way to exploit this issue.

[-] AHemlocksLie@lemmy.zip 25 points 2 weeks ago

But passwords need to be enabled for SSH. You must submit a faulty password of a specific kind, and the SSH server misinterprets it for passwordless accounts, which means the server must be configured to allow you to attempt a password.

[-] realitaetsverlust@piefed.zip 8 points 2 weeks ago

When logging into a passwordless account, the attacker can gain access by inputting more than 256 characters in the password field.

If you disable passwords in SSH, there is no password field. There is no way for you to input anything. The connection will just be refused as the only auth method is an ssh key. If there is no matching key, SSH will refuse the connection.

If you don't do that, the daemon will fall back to a password, which might then be vulnerable. However, no sane administrator would leave password auth enabled. Usually, you use the SSH password once - to copy an SSH key on the system. Then you disable it.

load more comments (1 replies)
load more comments (4 replies)
[-] IronKrill@lemmy.ca 33 points 2 weeks ago

Well that sucks. IIRC a lot of my docker images are alpine based, but they'd be safe due to never having their SSH ports exposed I assume.

[-] fonix232@fedia.io 35 points 2 weeks ago

Why would you even have an SSH server running in a Docker container (unless the purpose of the container is being a jumpbox or similar)?

I can't emphasise it enough how much more secure you get when you use rootless, read-only containers that are limited to truly just the software you want to run and its dependencies.

Alpine is great for dev containers, but the final container should be:

  • immutable on the app layer (any executable path needs to be read only)
  • have only the absolutely necessary GNU tooling, service management, etc. included (for most software you don't even need these tools, and why would you give an attacker who gain access to your container, an easy way to e.g. scan your network?)
  • only the data mounted, rw only if absolutely necessary (e.g. if you host a Jellyfin server, just an example, you should have the mounted media be RO, and only the config and caches be writable, mounted noexec of course)
[-] IronKrill@lemmy.ca 8 points 2 weeks ago

While I have not done it, I could see it being appealing as it's quicker than SSHing into the parent box first for a commonly used tool. I had a direct SSH into a systemd container for a while before deciding the extra config wasn't worth it.

load more comments (1 replies)
load more comments (4 replies)
[-] trebor_project@lemmy.zip 28 points 2 weeks ago
[-] anarchy79@lemmy.world 24 points 2 weeks ago* (last edited 2 weeks ago)

Is the name of the vulnerability literally *sshole?

[-] PM_Your_Nudes_Please@lemmy.world 78 points 2 weeks ago* (last edited 2 weeks ago)

Yes, it’s actually a very creative name. It’s caused by the character * allowing anyone to log into an open SSH port. So it’s an amalgam of {*}{SSH}{port (hole)}.

The long story short is that if you don’t have a password set for an account, Alpine saves the user’s password hash as “*” because no password hash will ever match it. Should be safe, right? Any password will always automatically fail, because the hash algorithm cannot return “*” as a result. So the only way to log in as that user is via something besides a password.

And when musl (the underlying system that Alpine uses for SSH) gets a Null response from its password hash, it uses “*” to represent that null value. Because lots of programs throw a fit if they get a true null value. So instead of returning a null value, it just returns a *. Which shouldn’t match anything, right?

So an attacker forces the password hash to return a null value. Simple to do, because the password hash is capped at 256 characters. So just enter something with more than 256 characters. Musl takes that null value, turns it into a *, and passes that onto Alpine. Alpine takes this *, and compares it with the list of saved usernames and password hashes. And it finds that the user (who has no password set, and shouldn’t be allowed to log in with a password) has a password hash of “*”. This matches the result musl just provided, so the attacker is able to log into the system.

load more comments (4 replies)
load more comments (1 replies)
[-] Samsy@lemmy.ml 18 points 2 weeks ago

Wait that means I have to expose a port. But I have zero exposed ports.

This post was created by the pangolin-gang.

load more comments (7 replies)
[-] DevDave@piefed.social 16 points 2 weeks ago

practically need to rotate logs every hour if you foolishly leave ssh open on a open network. usually a bastion with ssh listening to port 34000 or such is a good first step.

that said the conditions for this exploit are fascinating. no pam, shadow password set to *, using a alternative to glibc. The sacrifices to be more efficient feel on par with replacing a tank's armor with paper mache and hope.

load more comments (2 replies)
[-] AppleMango@lemmy.world 16 points 2 weeks ago

Most ssh ports should be accessed through a VPN anyway, not exposed directly to the internet

[-] Kazumara@discuss.tchncs.de 20 points 2 weeks ago

Are you sure the VPN server has the smaller attack surface than the SSH server?

[-] dan@upvote.au 29 points 2 weeks ago* (last edited 2 weeks ago)

Wireguard and apps based on it (like Tailscale) don't respond at all unless the data is signed with the key of a configured peer (or with Tailscale, a system on your tailnet that passes the ACL). It's literally impossible for an outsider/attacker to detect with a port scan since it just ignores unauthenticated packets.

The Wireguard codebase is also extremely small. The core Wireguard implementation (the version in the Linux kernel) is around 5,000 lines long, so an experienced developer can read through all the code if they dedicate a day or two to it, and understand how it works.

For comparison, OpenVPN is around 70,000 lines of code and OpenSSH is around 150,000 lines of code. There's a huge number of features in SSH!

load more comments (8 replies)
load more comments (1 replies)
[-] MonkderVierte@lemmy.zip 13 points 2 weeks ago* (last edited 2 weeks ago)

Further, OpenSSH using musl (pronounced muscle) must not use PAM (pluggable authentication modules),

which Alpine doesn't ship by default. Maybe one or the other remote administration suite depends on it, but those are often suspectible to exploits anyway. But you don't expose either to WAN, right?

[-] heartSagan5@lemmy.zip 13 points 2 weeks ago

Alpine? The one that doesn’t use glibc? Wasn’t this why they chose a different C runtime? For security. Ooops.

[-] AppleMango@lemmy.world 28 points 2 weeks ago

I feel like alpine is more well-known for being lightweight than secure

[-] grue@lemmy.world 20 points 2 weeks ago

"Security" and getting rid of that pesky copyleft licensing in order to make it so corporate users have to give back as little as possible.

load more comments (2 replies)
[-] ZILtoid1991@lemmy.world 8 points 2 weeks ago

What an aSSHole!

load more comments
view more: next ›
this post was submitted on 06 Nov 2026
467 points (97.2% liked)

Technology

90025 readers
4449 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS