Description
Databasement before 1.10.9 contains an authentication bypass vulnerability in OAuthService::findOrCreateLocalUser() that links OIDC identities to local users by email without checking email_verified. Attackers can register an identity provider account with a victim's unverified email to log in as any user, including the super-admin, and retain access after password resets.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| David-Crty | Databasement | < 1.10.9 | 1.10.9 |
References
- GitHub Security Advisory (GHSA-mh6w-2cch-w8v8) vendor-advisory
- https://github.com/David-Crty/databasement/commit/b7f4079c02b7ce3f1cf2844de182e809636c3382 patch
- Databasement v1.10.9 Release Notes release-notes
- https://github.com/David-Crty/databasement/blob/v1.10.8/app/Services/OAuthService.php#L55-L68 technical-description
- VulnCheck Advisory: Databasement before 1.10.9 Account Takeover via OIDC Email Auto-Linking third-party-advisory