Closed
Description
This is a small security issue if I understood bluebirds tap method correctly.
See also:
oauthjs/node-oauth2-server#637
I think we should revoke the AuthorizationCode much much earlier, by moving the revokeAuthorizationCode call above the redirectUri check.
An attack on the authorizationCode grant is usually based on a malicious redirect_uri. So if the authorization code is valid, we load the token, then tap on validateRedirectUri, and if the redirect_uri is invalid, we error and we are not calling revokeAuthorizationCode. So the authorizationCode is still existing despite it was used already.
Metadata
Metadata
Assignees
Labels
No labels