The OpenSSH Bug That Wasn't
badger.foo writes: Get your facts straight before reporting, is the main takeaway from Peter Hansteen's latest piece, The OpenSSH Bug That Wasn't. OpenSSH servers that are set up to use PAM for authentication and with a very specific (non-default on OpenBSD and most other places) setup are in fact vulnerable, and fixing the configuration is trivial.
According to the article, it's a bug in PAM.
You shouldn't see this behaviour with SSH unless you have PAM authentication turned on. And apparently only in FreeBSD ?
And as OpenBSD developer Marc Espie says in his message,
Not surprisingly, as the patch clearly shows, the problem is right smack in the middle of USE_PAM code.
I wouldn't call that an OpenSSH bug. I would call it a systemic design flaw in PAM. As usual. LOTS of security holes in authentication systems stem from PAM. Why ? Because that stuff is over designed. Difficult to configure. Gives you MORE than you need to hang yourself several times over. It's been that way for as long as I can remember.
... but still, if PAM is configured with OpenSSH, a PAM bug may sometimes be mis-identified to be an OpenSSH bug
No matter if it's a PAM bug or an OpenSSH bug, a but report which points out a vulnerability is good thing for the community - something that will allow the users to tighten up their configuration to deny that bug from being able to function in the first place
I love the attitude of one of the anon commenters: if you don't know enough to configure every single security option on your system right out of the box, you shouldn't have your *nix machine hooked up to the internet. Truly, this is the year of *nix on the desktop.
It is a bug in OpenSSH misusing PAM. They argue that these sorts of bugs wouldn't be as easy to make if PAM was less complicated, which is certainly true, but it is still a bug in OpenSSH.
Don't read Slashdot, especially not on the graveyard shift, when they put their "best", Timmy, in charge.
Yay! The BSDs are still better than the Linux/SYSV variants (due to PAM being mainly used on Linux).
> fixing the configuration is trivial
So trivial that the suggested configuration change is not mentioned anywhere.
I think that sentence right there is far beyond the scope of today's bloggers playing reporters.
Except that the PAM bug appears to only exist in BSD.
So actually, no.
Of course it does. That former employee that knows the root password or has the keys can't get to it. The current employee that fat fingers a command to the wrong host can't do much damage. That thief with a stolen laptop can't use a key to get full access remotely. There is a very very long list and it's just inexperience, laziness or lack of sleep that's stopping you from thinking of entries in it.
To whom may I address this invoice for a new keyboard?
Confucius say, "Find worm in apple - bad. Find half a worm - worse."
Here's a link to conversation few days back at reddit.com/r/netsec/
OpenSSH keyboard-interactive authentication brute force vulnerability (MaxAuthTries bypass)
Suggestion from noop_ works well, till pam stuff gets fixed at some point.
ac
Both FreeBSD and NetBSD use PAM. Sadly, only OpenBSD uses the BSDAuth framework.
Logs get full of such attempts even when root is not able to login. Once it gets tedious you can install sshgaurd or similar to block them and not be bothered by so many of such fruitless attempts clogging up the logs.