MEDIUM6.5
GHSA-mg2g-8pwj-r2j2
Authentication bypass in SilverStripe GraphQL
Quick fix
GHSA-mg2g-8pwj-r2j2 — silverstripe/graphql: upgrade to the fixed version with the command below.
composer require silverstripe/graphql:^3.5.0Details
The GraphQL module accepts basic-auth as an authentication method by default. This can be used to bypass MFA authentication if the silverstripe/mfa module is installed, which is now a commonly installed module. A users password is still required though.
Basic-auth has been removed as a default authentication method. If desired, it can be re-enabled by adding it to the authenticators key of a schema, or on SilverStripe\Graphql\Auth\Handler
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/graphql
Introduced in:
3.0.0Fixed in: 3.5.0Fix
composer require silverstripe/graphql:^3.5.0Packagist/silverstripe/graphql
Introduced in:
4.0.0-alpha1Fixed in: 4.0.0-alpha2Fix
composer require silverstripe/graphql:^4.0.0-alpha2References
- https://nvd.nist.gov/vuln/detail/CVE-2020-26136[ADVISORY]
- https://forum.silverstripe.org/c/releases[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/CVE-2020-26136.yaml[WEB]
- https://www.silverstripe.org/blog/tag/release[WEB]
- https://www.silverstripe.org/download/security-releases[WEB]
- https://www.silverstripe.org/download/security-releases/cve-2020-26136[WEB]