I am not sure if memory-safety is the biggest issue in sudo design. I find the fact that it is a setuid binary a much bigger issue because a bug can possible result in privilege escalation. I found an alternative implementation that doesn't rely in being a setuid binary like systemd-run0 much more interesting from a security perspective, but I am no security expert.
Right, but now the vector for privilege escalation will have to be a logic bug in memory-safe sudo instead of either a memory corruption (see CVE-2021-3156) or a logic bug. It’s hard not to see this as a major improvement.
Memory-safe sudo to become the default in Ubuntu
141–150 of 282 posts
Re: Memory-safe sudo to become the default in Ubuntu
#142Earlier quoted context omitted.
Right, but now the vector for privilege escalation will have to be a logic bug in memory-safe sudo instead of either a memory corruption (see CVE-2021-3156) or a logic bug. It’s hard not to see this as a major improvement.
Being a setuid binary means that sudo also suffers from attacks where an attacker runs `sudo ./malware` and then convinces the user to authenticate. Depending on how sudo authenticates phishing attacks or password reuse from another breach can be used to escalate privileges.
Re: Memory-safe sudo to become the default in Ubuntu
#143> This move is part of a broader effort by Canonical to improve the resilience and maintainability of core system components. Sudo-rs is developed by the Trifecta Tech Foundation (TTF), a nonprofit organization that creates secure, open source building blocks for infrastructure software. Ubuntu continuously updates itself without permission, killing apps and losing previous state. You have the Javascript based Gnome…
What? Is this some snap thing because apt sure as hell doesn't do this without you configuring it explicitly.
Re: Memory-safe sudo to become the default in Ubuntu
#144> Ubuntu is the most widely deployed Linux operating system Nitpicking, but I thought Android was the most widely deployed Linux OS around...
Bit like how tomato is technically a fruit but everyone knows that in the context of a supermarket it’s a vegtable
Re: Memory-safe sudo to become the default in Ubuntu
#145Earlier quoted context omitted.
Sudo had quite a few problems with security, partially because of this doas was developed for BSD. Some problems come from the huge amount of features(ldap, easter eggs, ...). sudo-rs reduces the problems by not implementing those features.
Removing LDAP is a huge problem for the more important sudo deployments though: centralized management of permissions is kind of a vital function.
Re: Memory-safe sudo to become the default in Ubuntu
#146How does sudo-rs compare to run0? https://news.ycombinator.com/item?id=40205714
Re: Memory-safe sudo to become the default in Ubuntu
#147Earlier quoted context omitted.
Android uses the Linux Kernel, but iirc (correct me if I'm wrong), it doesn't come with the required application to make it Unix and hence is not the Linux operating system. That would mean it's only using the same kernel as the Linux operating system? Idk, just speculating to maybe get the thought process
> That would mean it's only using the same kernel as the Linux operating system? There's no "Linux operating system". Linux is the name of the kernel. Android is an operating system, GNU/Linux is, things like BusyBox/Linux are. They're all operating systems that use the Linux kernel.
Re: Memory-safe sudo to become the default in Ubuntu
#148Earlier quoted context omitted.
A little while ago I realized with a start that it's been years since I've heard anyone angrily insist on calling it "GNU/Linux", when that was constant background noise during the Slashdot era. One of those old fights that just faded away, I guess.
Its more that it ceased to be true: you can build a "nognu" Linux now, with LLVM as the system compiler, and musl/libc++ instead of glibc/libstdc++. https://distfiles.gentoo.org/releases/amd64/autobuilds/curre...
Re: Memory-safe sudo to become the default in Ubuntu
#149> Ubuntu is the most widely deployed Linux operating system Nitpicking, but I thought Android was the most widely deployed Linux OS around...
You are correct but in this context Linux means GNU/Linux. Bit like how tomato is technically a fruit but everyone knows that in the context of a supermarket it’s a vegtable
Re: Memory-safe sudo to become the default in Ubuntu
#150Earlier quoted context omitted.
I think you mean a magic bullet instead of a smoking gun :)
I meant "smoking gun" from a cyber security perspective, i.e. the conclusion or the final part of the investigation. "magic bullet" would also work here too though.
Even with your explanation I don't think it fits here.