|
Bugzilla – Full Text Bug Listing |
| Summary: | Sudoers has different behaviour depending on the token type in a User_List if the command specified in Cmd_List does not exist | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Riccardo Paolo Bestetti <riccardo.kyogre> |
| Component: | Sudoers | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | security | ||
| Priority: | low | ||
| Version: | 1.8.19 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Riccardo Paolo Bestetti
2019-07-12 09:06:02 MDT
Let me rectify: it seems the behaviour is the same in both cases, and it's the first one (I'm prompted for the password, i.e. the rule is not matched). I probably got it mixed up because of credentials caching. This is because sudo actually matches commands by their device and inode number. This prevents someone from avoiding negated commands simply by using a link to a different name. Falling back to name-based matching should be safe since sudo won't try to run a command that doesn't exist. This is fixed by the following commit: https://www.sudo.ws/repos/sudo/rev/0879054870be Fixed in sudo 1.8.28 |