Statamic: Account takeover via OAuth email matching without email-verification check
As published by the sources
Affected packages
- Affected
<5.74.1 || >=6.0.0,<6.24.0Fixed in5.74.16.24.0
Derived from the fixed versions above
What to do
Upgrade statamic/cms to the fixed version in your release line: 5.74.1, 6.24.0.
composer update statamic/cms --with-dependencies
To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.
Quoted from the original advisory
Details
Impact
When OAuth login is enabled with a provider that does not guarantee verified email addresses, an unauthenticated attacker could sign in as an existing user — potentially including a super admin — without their password. Exploitation requires OAuth to be explicitly enabled with such a provider.
Patches
Fixed in 5.74.1 and 6.24.0.
Workarounds
Only enable OAuth with providers that guarantee verified email addresses, or disable OAuth login.
References
- Advisoryhttps://github.com/advisories/GHSA-93qh-5269-9wcf
- Webhttps://github.com/statamic/cms/security/advisories/GHSA-93qh-5269-9wcf
- Webhttps://github.com/statamic/cms/pull/14887
- Webhttps://github.com/statamic/cms/commit/e59dd342c83bc45de26573cfb0536a0bca98255a
- Packagehttps://github.com/statamic/cms
- Webhttps://github.com/statamic/cms/releases/tag/v5.74.1
- Webhttps://github.com/statamic/cms/releases/tag/v6.24.0