SSO Provider Credential Cache (logged out of Google/GitHub, could still log into Courier)
The authentication provider caches SSO access tokens for up to an hour, so a user who has logged out of Google or GitHub can still sign in to Courier during that window.
Originally disclosed on HackerOne
- Triaged in 4 hours
- Disclosed after 59 days
Summary by the program
After researching this further, our authentication provider (Amazon's AWS Cognito) caches the access token provided by Google, GitHub, and other SSO providers within their system for up to an hour and does not check against the SSO provider's API again until that cache has expired. We did verify that after one hour, you cannot log in if the token has been removed from the SSO provider side.
Courier is unable to make any requests to the SSO provider API immediately after access is revoked. Users' SSO provider accounts remain 100% secure and after that cache period of up to 1 hour, any user attempting to sign in with SSO will be required to reauthorize Courier's OAuth application before logging in successfully again.
We would love to change this behavior – thank you for the report – but this is currently a limitation of Amazon's AWS Cognito.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the identity provider (AWS Cognito) caches the SSO provider's access token for up to an hour and does not re-check with the SSO provider until the cache expires.
Impact
A user who has logged out of their SSO provider could still log in to Courier for up to an hour, though the SSO provider accounts themselves remain secure and the issue is limited to that cache window.
What the attacker needed
SSO login via Google or GitHub; user logs out of SSO provider; login within one hour
The fix
The behaviour should be fixed by making the authentication provider re-check the SSO provider's API on each login rather than relying on a cached token, but the text says this is a limitation of AWS Cognito and was not fixed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you sign in with Google or GitHub, Courier asks that service to confirm who you are. The system that handles this confirmation keeps a copy of the 'yes, this person is allowed' answer for up to an hour. If you then log out of Google or GitHub, Courier can still let you in for that hour because it is using the saved answer instead of asking again.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.