DRUPAL-CONTRIB-2022-002 - This module enables you to implement OAuth 2.0 authentication for Drupal. The module doesn't…

Severity: info · Published 2022-01-05

This module enables you to implement OAuth 2.0 authentication for Drupal.

The module doesn't sufficiently verify client secret keys for "confidential" OAuth 2.0 clients when using certain grant types. The token refresh and client credentials grants are not affected.

This vulnerability is mitigated by the fact that the vast majority of OAuth 2.0 clients in the wild are public, not confidential. Furthermore, all affected grant types still require users to authenticate to Drupal during the OAuth flow.

The implicit grant type is insecure for other reasons (and still requires user authentication) and is disabled by default.

Sites at risk of information disclosure would be specifically configured to restrict access based on the OAuth client's confidentiality status and configured scopes, not only traditional Drupal user permissions and roles.

Further mitigation includes [configuring allowed redirect URIs for clients](https://tools.ietf.org/html/rfc6819#section-5.2.3.5). This is an OAuth best practice for guarding against man-in-the-middle attacks on authorization codes, and prevents redirection to imposter clients.

Anyone implementing OAuth 2.0 on their Drupal site is also encouraged to review the [relevant RFCs and Internet-Drafts](https://oauth.net/security/) pertaining to OAuth security.

Technologies: Packagist:Https://Packages.Drupal.Org/8 Drupal/Simple Oauth. Vendors: Packagist:Https://Packages.Drupal.Org/8.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Informational severity, published 5 January 2022.
Which products and versions are affected?
Packagist:Https://Packages.Drupal.Org/8 Drupal/Simple Oauth ECOSYSTEM:introduced=0,fixed=4.6.0|ECOSYSTEM:introduced=5.0.0,fixed=5.0.6.
Is there a fix for This vulnerability?
Yes. Packagist:Https://Packages.Drupal.Org/8 Drupal/Simple Oauth: upgrade to 4.6.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected?
Check whether you run Packagist:Https://Packages.Drupal.Org/8 Drupal/Simple Oauth at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Packagist:Https://Packages.Drupal.Org/8 Drupal/Simple Oauth: upgrade to 4.6.0 or later

Affected products

  • Packagist:Https://Packages.Drupal.Org/8 Drupal/Simple Oauth ECOSYSTEM:introduced=0,fixed=4.6.0|ECOSYSTEM:introduced=5.0.0,fixed=5.0.6

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.