DEV Community

Discussion on: Sudo Flaw Lets Linux Users Run Commands As Root Even When They're Restricted

Collapse
 
sjerpatabix profile image
Sjerp van Wouden

Elsewhere a user commented:
"
mjn avatar mjn edited 14 hours ago | link

Not good in principle, mostly because it seems pretty sloppy. In terms of impact, though, I would guess the vulnerable configuration is incredibly rare?

The privilege escalation scenario here is that you’ve given a user sudoers access to run commands as (ALL, !root), i.e. as any user except root. This bug lets them upgrade that into being able to run them as root, also. Is there any remotely common scenario where you would have that kind of sudoers setup? I can vaguely imagine something like that from old-school multiuser academic Unix servers, but even there it’d be a somewhat exotic setup (restricted sudoers there are typically restricted to specific users they can sudo to, like the apache user or something, or a prof being able to sudo to their students, but not to ALL, !root)."
lobste.rs/s/zirgzc/sudo_flaw_lets_...