Live data from Hacker News

OpenSSH user enumeration

openwall.com

21–30 of 89 posts

Re: OpenSSH user enumeration

#23
post #15
post #10

If you're a startup and this matters to you, you're doing it very wrong.

Sorry, can you explain what you mean by this? I didn’t follow.

  ChallengeResponseAuthentication no # \
  PasswordAuthentication no          # | nukes "Password: "
  UsePAM no                          # /
  PermitRootLogin no                 # (duh)
  PubkeyAuthentication yes           # enables public keys; very important
  AllowUsers user1 user2             # maybe? combine with an obscure username...

Re: OpenSSH user enumeration

#24
post #11

Earlier quoted context omitted.

there is an "ubuntu" user on most of my systems. I hope you find this information useful.

I know you're being facetious but, yes, I would find that information useful. Now I've just IDed the distribution I'm targeting.

A disappointing number of servers happily give away this information in their http response headers. For those that don't, `nmap -O` will sometimes do the trick.

Re: OpenSSH user enumeration

#25
post #20

Earlier quoted context omitted.

I think he’s saying: a) Why are you using bleeding edge software in production, and especially so unreleased versions of OpenSSH? b) Why are your SSH servers exposed to public traffic? c) User enumeration is useful for finding accounts with weak passwords. Why do you have personal accounts on prod servers? Why do you have _any_ accounts not using public key authentication at all?

FWIW, regarding a), > We believe that this issue warrants a CVE; it affects all operating systems, all OpenSSH versions (we went back as far as OpenSSH 2.3.0, released in November 2000), and is easier to exploit than previous OpenSSH username enumerations... As for b) and c), I 100% agree. In fact: if you're using KVM-based virtualization, and you have VNC or serial access to your node (GCP gives you serial access, v…

Ah, my bad. I got the impression that it was introduced in the commit on the 31st of July.

Re: OpenSSH user enumeration

#26
post #20

Earlier quoted context omitted.

FWIW, regarding a), > We believe that this issue warrants a CVE; it affects all operating systems, all OpenSSH versions (we went back as far as OpenSSH 2.3.0, released in November 2000), and is easier to exploit than previous OpenSSH username enumerations... As for b) and c), I 100% agree. In fact: if you're using KVM-based virtualization, and you have VNC or serial access to your node (GCP gives you serial access, v…

Ah, my bad. I got the impression that it was introduced in the commit on the 31st of July.

All good!

Re: OpenSSH user enumeration

#27
post #15

Earlier quoted context omitted.

Sorry, can you explain what you mean by this? I didn’t follow.

I think he’s saying: a) Why are you using bleeding edge software in production, and especially so unreleased versions of OpenSSH? b) Why are your SSH servers exposed to public traffic? c) User enumeration is useful for finding accounts with weak passwords. Why do you have personal accounts on prod servers? Why do you have _any_ accounts not using public key authentication at all?

b) If not SSH what else would one use?

c) Not only production servers utilize internet.

Re: OpenSSH user enumeration

#28

Earlier quoted context omitted.

I know you're being facetious but, yes, I would find that information useful. Now I've just IDed the distribution I'm targeting.

A disappointing number of servers happily give away this information in their http response headers. For those that don't, `nmap -O` will sometimes do the trick.

nmap's OS detection won't normally tell you the distribution, only the OS (and maybe kernel version).

Re: OpenSSH user enumeration

#29
post #6
post #2

Usernames are not a secret, passwords are a secret.

Are you willing to send me a list of all your usernames on all your systems?

List of all users allowed to use SSH on my systems:

- root

- user

- ansible_conf_daemon_user

End of List. It's all containers so IDGAF and I use pubkey authentication on each user.

Re: OpenSSH user enumeration

#30
post #5

Earlier quoted context omitted.

They are useful though. If you check a bunch of usernames from a person leak and find matches, you got a password to try.

A correct sshd_config includes: PasswordAuthentication no

+1. But just to be sure: that does not prevent testing for usernames and hence enumerating software by testing for known/common service account usernames (e.g. "_tor" on OpenBSD and "debian-tor" on Debian-based OSs). (No claim was made to the contrary; just mentioning this to prevent anyone from thinking otherwise.)
Post reply on HN