VDB
Sign up
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.0

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

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.0
Fixcomposer require silverstripe/graphql:^3.5.0
Packagist/silverstripe/graphql
Introduced in: 4.0.0-alpha1Fixed in: 4.0.0-alpha2
Fixcomposer require silverstripe/graphql:^4.0.0-alpha2

References