GitHub Advisory Database
GHSA-mg2g-8pwj-r2j2
Authentication bypass in SilverStripe GraphQL
Details
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
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | silverstripe/graphql | From 3.0.0 before 3.5.0 (fixed in 3.5.0) |
| Packagist | silverstripe/graphql | From 4.0.0-alpha1 before 4.0.0-alpha2 (fixed in 4.0.0-alpha2) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-26136
- https://forum.silverstripe.org/c/releases
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/CVE-2020-26136.yaml
- https://www.silverstripe.org/blog/tag/release
- https://www.silverstripe.org/download/security-releases
- https://www.silverstripe.org/download/security-releases/cve-2020-26136