SAML Authentication
The module can accidentally link an external account to an existing website account if their email addresses look similar when accents are ignored. A person could use this to log in as another user like an administrator and then read or alter any data on the site.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youA site is affected if the account linking option is turned on and the target account has not yet been used to log in with the external provider.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.
Tell your developerUpdate SAML Authentication to 8.x-3.16.
For developers: what the fix changed
The fix filters the database query results in `src/SamlService.php` using `strcasecmp()` to ensure an exact case-insensitive match for usernames and emails, bypassing the database collation's accent-insensitivity. It also applies similar strict equality checks in `UserFieldsEventSubscriber.php`.
Also in this release The release includes updates to the README and CHANGELOG, as well as new tests for the stricter account linking behaviour.
CHANGELOG.md+12 −0README.md+41 −8modules/samlauth_user_fields/src/EventSubscriber/UserFieldsEventSubscriber.php+30 −37 fixsrc/SamlService.php+45 −44 fix