this post was submitted on 20 Dec 2023
70 points (68.2% liked)

Linux

48092 readers
870 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 23 comments
sorted by: hot top controversial new old
[–] AbouBenAdhem@lemmy.world 165 points 10 months ago* (last edited 10 months ago) (1 children)

Interpreting “a previously-unrecognized weakness in X was just found” as “X just got weaker” is dangerously bad tech writing.

[–] Kid_Thunder@kbin.social 39 points 10 months ago

In my opinion Dan Goodin always reports as an alarmist and rarely gives mitigation much focus or in one case I recall, he didn't even mention the vulnerable code never made it to the release branch since they found the vulnerability during testing, until the second to last paragraph (and pretended that paragraph didn't exist in the last paragraph). I can't say in that one case, it wasn't strategic but it sure seemed that way.

For example, he failed to note that the openssh 9.6 patch was released Monday to fix this attack. It would have went perfectly in the section called "Risk assessment" or perhaps in "So what now?" mentioned that people should, I don't know, apply the patch that fixes it.

Another example where he tries scare the reading stating that "researchers found that 77 percent of SSH servers exposed to the Internet support at least one of the vulnerable encryption modes, while 57 percent of them list a vulnerable encryption mode as the preferred choice." which is fine to show how prevalent the algorithms are used but does not mention that the attack would have to be complicated and at both end points to be effective on the Internet or that the attack is defeated with a secure tunnel (IPSec or IKE for example) if still supporting the vulnerable key exchange methods.

He also seems to love to bash FOSS anything as hard as possible, in what to me, feels like a quest to prove proprietary software is more secure than FOSS. When I see his name as an author, I immediately take it with a grain of salt and look for another source of the same information.

[–] Synthead@lemmy.world 65 points 10 months ago (2 children)

ChaCha20-Poly1305 and CBC with Encrypt-then-MAC ciphers are vulnerable to a MITM attack.

Saved you a click.

[–] Valmond@lemmy.mindoki.com 4 points 10 months ago (1 children)

Why use CBC too? Cha-Cha20-Poly1305 is an AEAD, so both an assymetric plus a symmetric stream cipher.

[–] thisisawayoflife@lemmy.world 4 points 10 months ago* (last edited 10 months ago) (1 children)

Just checked my own sshd configs and I don't use CBC in them. I've based the kex/cipher/Mac configs off of cipherlist.eu and the mozilla docs current standards. Guess it pays to never use default configs for sshd if it's ever exposed to the Internet.

Edit: I read it wrong. It's chacha20 OR CBC. I rely heavily on the former with none of the latter.

[–] Valmond@lemmy.mindoki.com 2 points 10 months ago

Ah thanks! Didn't catch that.

[–] NateNate60@lemmy.world 1 points 10 months ago

I thought most SSH servers default to some AES-based cypher like most other programs. Is that not the case?

[–] charonn0@startrek.website 62 points 10 months ago (2 children)

Even the researcher who reported this doesn't go as far as this headline.

"I am an admin, should I drop everything and fix this?"

Probably not.

The attack requires an active Man-in-the-Middle attacker that can intercept and modify the connection's traffic at the TCP/IP layer. Additionally, we require the negotiation of either ChaCha20-Poly1305, or any CBC cipher in combination with Encrypt-then-MAC as the connection's encryption mode.

[...]

"So how practical is the attack?"

The Terrapin attack requires an active Man-in-the-Middle attacker, that means some way for an attacker to intercept and modify the data sent from the client or server to the remote peer. This is difficult on the Internet, but can be a plausible attacker model on the local network.

https://terrapin-attack.com/

[–] Waluigis_Talking_Buttplug@lemmy.world 17 points 10 months ago (1 children)

If someone can gain physical access to your network, you're already fucked.

[–] Ramenator@lemmy.world 5 points 10 months ago

Yeah, if the attacker is in a position to do a MitM attack you have much larger problems than a ssh vulnerability that so far can at most downgrade the encryption of your connection in nearly all cases

[–] Chewy7324@discuss.tchncs.de 1 points 10 months ago* (last edited 10 months ago)

It definitely receives more clicks. I've posted this link here a day ago, but arstechnicas title is more engaging. My first thought was whether there's been another vulnerability found.

That said, the headline isn't as bad as it could've been.

[–] Kid_Thunder@kbin.social 54 points 10 months ago

Since he doesn't mention it in his 'fantastic' reporting, OpenSSH 9.6 was released Monday that will patch this attack. Also, since he doesn't mention it, if on the Internet, the MITM would have to be installed at both end points (client side and server side) to be effective without the patch.

[–] library_napper@monyet.cc 22 points 10 months ago

So hardened ssh configs following best practice cipher whitelist are unaffected, cool

[–] bartolomeo@suppo.fi 20 points 10 months ago (2 children)

Ylönen, who at the time knew little about implementing strong cryptography in code, set out to develop the Secure Shell Protocol (SSH)

TIL SSH was invented by a Finn. I swear that country has the most awesome per capita of any country on earth.

[–] ouch@lemmy.world 3 points 10 months ago

Long dark winters when everyone is home without socializing with people. You have got to come up with something to survive until the two week summer.

[–] ouch@lemmy.world 2 points 10 months ago

Long dark winters when everyone is home without socializing with people. You have got to come up with something to survive until the two week summer.

[–] loaExMachina@sh.itjust.works 5 points 10 months ago

Great photo illustration

[–] vanderbilt@beehaw.org 4 points 10 months ago

I expect better of Ars. Absolute clickbait title and sensationalism. You need a two point MITM and even then it’s not a magic shell.

[–] possiblylinux127@lemmy.zip 4 points 10 months ago (1 children)

I might just go ahead and change the default port. Problem solved

[–] SeeJayEmm@lemmy.procrastinati.org 3 points 10 months ago

If someone going through the effort to target you with a MitM over the Internet, that's not going to stop them.

Just diable the affected ciphers and/or update opened.

[–] autotldr@lemmings.world -1 points 10 months ago (1 children)

This is the best summary I could come up with:


Once in place, this piece of dedicated hardware surreptitiously inhaled thousands of user names and passwords before it was finally discovered.

Ylönen, who at the time knew little about implementing strong cryptography in code, set out to develop the Secure Shell Protocol (SSH) in early 1995, about three months after the discovery of the password sniffer.

As one of the first network tools to route traffic through an impregnable tunnel fortified with a still-esoteric feature known as "public key encryption," SSH quickly caught on around the world.

Today, it’s hard to overstate the importance of the protocol, which underpins the security of apps used inside millions of organizations, including cloud environments crucial to Google, Amazon, Facebook, and other large companies.

Now, nearly 30 years later, researchers have devised an attack with the potential to undermine, if not cripple, cryptographic SSH protections that the networking world takes for granted.

The attack targets the BPP, short for Binary Packet Protocol, which is designed to ensure that adversaries with an active position can't add or drop messages exchanged during the handshake.


The original article contains 658 words, the summary contains 178 words. Saved 73%. I'm a bot and I'm open source!

[–] fraksken@infosec.pub 9 points 10 months ago (1 children)

you missed this part:

For Terrapin to be viable, the connection it interferes with also must be secured by either "ChaCha20-Poly1305" or "CBC with Encrypt-then-MAC," both of which are cipher modes added to the SSH protocol (in 2013 and 2012, respectively). A scan performed by the researchers found that 77 percent of SSH servers exposed to the Internet support at least one of the vulnerable encryption modes, while 57 percent of them list a vulnerable encryption mode as the preferred choice.

[–] steventhedev@lemmy.world 4 points 10 months ago* (last edited 10 months ago)

Also that in order to exploit this it requires an active man in the middle. Which requires any of the following:

  • Reverse proxy hijack/NAT hijack - from a compromised machine near the server
  • BGP hijack - stealing traffic to the real IP
  • DNS hijack - stealing traffic to send to a different IP
  • Malicious/compromised network transit
  • Local network gateway control
  • WAP poisoning - wifi roaming is designed really well so this is actually easier than it sounds.

Almost all of those have decent mitigations like 801.x and BGP monitoring. The best mitigation is that you can just change your client config to disable those ciphersuites though.