News for hackers. Stuff that matters.
Re:Abusing Ubuntu 24.04 features for root privilege escalation by SoftTalker on Thursday November 14, 2024 @11:45AM (#42138026)
I don't have /etc/ssh/sshd_config.d/50-cloud-init.conf on my ubuntu 24.04 machines. What creates it? Is it a clean-install vs. upgrade difference perhaps?
Re:Abusing Ubuntu 24.04 features for root privilege escalation by HumanOstrich on Thursday November 14, 2024 @11:46AM (#42138038)
Unfortunately, one possibility is the user chose "enable SSH password authentication" during the install [1]. Or it's a cloud instance from a provider that provisions instances with a password.

[1]: https://askubuntu.com/a/1440509

Re:Abusing Ubuntu 24.04 features for root privilege escalation by vbezhenar on Thursday November 14, 2024 @12:45PM (#42138854)
This file is created when the server is provisioned with cloud-init. For example when you use https://cloud-images.ubuntu.com/ as a template image to create your VM. For these cases you would need to supply cloud-init config via separate means (openstack user-data or just secondary mounted ISO) and cloud-init would perform post-install tasks like configuring users, passwords, ssh keys, etc. If you just install your machine from ISO, cloud-init is not used.

I guess that many hosters will use cloud-init for their VPS offerings "under-the-hood". Usually they'll generate password and mail it to you, so obviously ssh password should be allowed for this case.