pam_ssh_agent_auth icon indicating copy to clipboard operation
pam_ssh_agent_auth copied to clipboard

Handle PAM_RUSER and PAM_USER being identical

Open AlD opened this issue 5 years ago • 0 comments

Warns if PAM_RUSER and PAM_USER are identical. Bails out if additionally allow_user_owned_authorized_keys_file is enabled. If authorized_keys_file is allowed to be owned by user, and user is identical with ruser, this means that the calling user (i.e. ruser) can add arbitrary keys to it, thus rendering the whole PAM step useless.

Fixes #17, but will cause the module to stop working in the described situation. This is fine, as in this scenario, this module poses a massive security gap.

AlD avatar Dec 30 '19 01:12 AlD