|
Bugzilla – Full Text Bug Listing |
| Summary: | sudoers parsing error around hardlinked binaries with the same basename | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Paul T <public121212> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.6.9 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
|
Description
Paul T
2011-08-22 11:10:48 MDT
This is a known artifact due to the way that sudoers is parsed in versions 1.3.x - 1.6.x. Sudo validates commands based on their inode number (along with device id). For sudo < 1.7.0, commands are matched at the same time sudoers is parsed, so it is possible to end up with a match as long as the basename matches and the inode/device match the command being run. Sudo runs the command as it appears in sudoers to avoid a race condition that could otherwise allow a user to run arbitrary commands. The guts of the sudoers parser was rewritten for sudo 1.7.0 so that it parses sudoers in one step and does the command matching in another, which is why you don't have the problem there. Sudo 1.6.x is obsolete and no longer supported. Please update to either a 1.7.x version or. better still, 1.8.x. You can find binary packages of sudo 1.7.7 and 1.8.2 for many systems at http://www.sudo.ws/sudo/download.html#binary |