227 points · by okket · 8y ago · 62 comments
> me: "can i log in?"
> server: "no. you need a password."
> me: "hacker voice i'm in"
> server: "login successful. you're in"
https://mobile.twitter.com/FioraAeterna/status/1052294419607...
Contrast this level of insanity to a proposed standard of “developers should be liable for the damage caused by their negligent code”.
Just, wow.
While the brain cells of the C programmers are busy handling errors, managing memory, and avoiding buffer overflow, they forget about sound software engineering rules and proper design. While the code of libssh looks cleaner than eg. FreeBSD, there are still quite a number of functions that are bigger than a screen height.
(The only notable exception, github.com backends, were not using the auth logic code in question, so again just not used and not given attention...)
For me this is much less “OMG how could they be so careless” and much more “There but for the grace of a diligent set of testers go I”
$ apt-cache rdepends libssh-4
libssh-4
Reverse Depends:
libpam-x2go
yafc
x2goclient
tmate
remmina-plugin-nx
remmina
openvas-nasl
libopenvas9
libssh-dev
cockpit-bridge
kio-extras
hydra
This is all of the packages that depend on libssh in Debian Testing, doesn't seem to be very problematic, I've only heard of one thing on this list, and that doesn't use the server code anyways.https://twitter.com/GitHubSecurity/status/105231733337972326...
According to the brew uses command the possible dependents are ffmpeg, ffmpeg@2.8, hydra, sshtrix, tmate, wireshark, and yafc. I say possible because some of those can optionally depend upon libssh, but the user has to opt-in to building with libssh support.
That sounds reassuring. It's not as if hacking some random IoT device is going to win the jackpot.
Oh wait, it totally can: https://www.washingtonpost.com/news/innovations/wp/2017/07/2...
It's unlikely that ssh - a protocol that powers large swaths of software, has such an error, but always good to hear from the experts that this is indeed a coding error.
(Unless your server uses the relatively uncommon libssh on your server. If you use openssl you're not vulnerable. Github's not vulnerable either.)
First we had the YouTube outage and a bit later, this issue appeared...