Tinyauth
Tinyauth has OAuth account confusion via shared mutable state on singleton service instances
Tinyauth is an authentication and authorization server. Prior to version 5.0.5, all three OAuth service implementations (GenericOAuthService, GithubOAuthService, GoogleOAuthService) store PKCE verifiers and access tokens as mutable struct fields on singleton instances shared across all concurrent requests. When two users initiate OAuth login for the same provider concurrently, a race condition between VerifyCode() and Userinfo() causes one user to receive a session with the other user's identity. This issue has been patched in version 5.0.5.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.0.5
Fixed in 5.0.5
Mitigation
Upgrade tinyauth to 5.0.5 or later.
References
- Vendor advisory github.com/steveiliop56/tinyauth/security/advi…
- Patch github.com/steveiliop56/tinyauth/commit/f26c21…
- Release notes github.com/steveiliop56/tinyauth/releases/tag/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.