ssh.set_auth_key followed symlinks when writing a user's authorized_keys file and then changed ownership of the target. An unprivileged local user on a managed minion can plant a symlink so that the root-running minion creates a file at an arbitrary location owned by that user, leading to local privilege escalation.