Skip to content

Commit

Permalink
Recognise auth forms named "challenge" as token requests
Browse files Browse the repository at this point in the history
This was found in the wild on an AnyConnect instance which is hooked up
to a Microsoft 2FA platform.

Signed-off-by: James Laird-Wah <james-oc@laird-wah.net>
  • Loading branch information
abrasive committed Oct 3, 2018
1 parent c74da95 commit 51f8feb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth.c
Expand Up @@ -893,7 +893,8 @@ static int cstp_can_gen_tokencode(struct openconnect_info *vpninfo,
}
#endif
/* Otherwise it's an OATH token of some kind. */
if (strcmp(opt->name, "secondary_password"))
if (strcmp(opt->name, "secondary_password") &&
(!form->auth_id || strcmp(form->auth_id, "challenge")))
return -EINVAL;

return can_gen_tokencode(vpninfo, form, opt);
Expand Down

0 comments on commit 51f8feb

Please sign in to comment.