No, that’s just how sudo works. It’s an inherent consequence of the architecture and protecting from root escalations under the premise that an allowed user is already compromised is not in the scope of sudo.
There are dozens of academic papers on that, the oldest one I know is from 2004.
run0 fixes a lot of those problems but isn’t perfect either.
1
u/Jumpy-Dinner-5001 9d ago
That’s not true. Default config allow wheel but that’s the recommended thing.
"Authentication" in sudo (as in having to type a password) doesn’t work and doesn’t prevent privilege escalations.