|
Bugzilla – Full Text Bug Listing |
| Summary: | Timestamp update permits privilege escalation with expired token | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Nick Geron <ngeron> |
| Component: | Sudoers | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.23 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: | Diff to defer time stamp update until after approval | ||
|
Description
Nick Geron
2019-12-03 10:55:17 MST
At the time I didn't think it was a major problem for the time stamp to be based on authentication of the old password since the approval function is called even when no password is required. I'm a little confused as to why the approval module doesn't require a password change the second time sudo is run. Created attachment 536 [details]
Diff to defer time stamp update until after approval
Note that the attached diff is relative to sudo 1.8.29. To apply to 1.8.23 you'll need to adjust the call to sudo_auth_approval() to not include the exempt flag. Thanks for the fast response, Todd. Your changes worked great. I confirmed the expected behavior this morning. Will this update be worked into the next release? I just committed that diff so it will appear in the next sudo release. Fixed in sudo 1.8.30 |