Critical RabbitMQ OAuth2 Flaw Enables Credential-Free Privileged Token Minting

· Original article ↗

Summary

An unauthenticated caller can exploit RabbitMQ’s OAuth2 management proxy to mint tokens with provider-granted scopes. Versions 4.4.1 and 4.3.8 fix the flaw; no attacks have been reported.

Key points

  • The flaw, GHSA-cfvg-5q96-8mhm, affects deployments with the management and OAuth2 plugins enabled and a client secret configured.
  • The vulnerable proxy accepts unauthenticated requests, adds the stored client secret when absent, and forwards requested scopes unchanged.
  • A researcher demonstrated minting an administrator token, creating a persistent administrator account, and using the token to log in over AMQP; administrator access depends on the identity provider granting the required scope.
  • RabbitMQ 4.4.1 and 4.3.8, released November 16, restrict the proxy to the authorization_code and refresh_token grant types used by management login.
  • For systems that cannot upgrade, the advisory suggests removing management.oauth_client_secret or placing authentication in front of the management port; removing the secret may disrupt some login or refresh flows.
  • Updating does not remove administrator accounts created through prior exploitation, and the advisory does not provide a way to determine whether tokens were previously minted.
  • The same November 16 upgrade also addresses six other RabbitMQ server advisories; community support for the 4.2 branch has ended.

Article Details

Vulnerability Types
  • Authentication bypass
  • Privilege escalation
Severity
Critical (CVSS 9.1)
Exploitation Status
not_reported
Exploit Availability
unknown
Patch Status
available
Workarounds
  • Remove the management.oauth_client_secret setting; this may break login or token-refresh flows for some identity providers.
  • Place authentication in front of the management port.

MITRE ATT&CK

People

Vendors

Products

Related Articles