| Summary: | Request for PermitRootLogin to be enforced prior to credential check | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | V. Ram <vram> | ||||
| Component: | sshd | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED WONTFIX | ||||||
| Severity: | enhancement | CC: | dtucker | ||||
| Priority: | P5 | ||||||
| Version: | 6.1p1 | ||||||
| Hardware: | Other | ||||||
| OS: | OpenBSD | ||||||
| Attachments: |
|
||||||
|
Description
V. Ram
2013-01-14 19:51:13 AEDT
Created attachment 2208 [details]
Patch to auth2.c to move check to see if permissible root login is being attempted prior to calling m->userauth
I apologize ahead of time for any whitespace, formatting, or style screwups. I basically moved the check being done for whether the user is root and the method is permitted by the configuration out of userauth_finish(...) and up into input_userauth_request(...). This should satisfy the gist of what I'm asking.
In general we try to leak as little information as possible to a potential attacker, and this would give them an early warning that they'll be denied by policy. (strictly by that policy sshd wouldn't tell you why it's not permitting the login at all, so in theory we should be removing the ROOT LOGIN REFUSED message entirely). sorry, but if anything we'll be making it less obvious rather than more. Close all resolved bugs after 7.3p1 release |