Might be a good move
Might be a good move
Posted Jun 24, 2025 17:45 UTC (Tue) by linuxrocks123 (guest, #34648)In reply to: Might be a good move by pizza
Parent article: GNOME deepens systemd dependencies
Unless there is absolutely no sanity left among mainstream Linux desktop programmers, there's no option to start a shell from those greeters. All you can do is click some stuff and enter text in the username and password fields.
Sure, I guess theoretically you could buffer overflow the username or password field, but since you (again, if there is any sanity left in this world) are limited to the ASCII keys you can physically type on the attached keyboard, it would be pretty damn hard to construct an exploit. And, hopefully, these greeters aren't so broken that someone is actually using something gets() on the user/pass fields, so there's unlikely to be a hole to exploit even if you could somehow find a way to exploit it once you found it.
If someone is actually worried about greeter exploits, why not just write a new greeter in Rust like the cascade of attention-deficit teenagers in charge of this space does with everything else? Why do something ridiculous like using temporary user IDs for xdm? Most machines are only going to be running one copy of xdm anyway, so, if someone can exploit xdm to send usernames/passwords to an attacker, you haven't substantially mitigated that problem by using temporary user IDs.
