Critical RabbitMQ OAuth2 Flaw Could Grant Admin Access Without Credentials
RabbitMQ is a message broker: software that lets applications exchange messages through a central service. That basic definition is general technical knowledge; the source article focuses on the security flaw rather than explaining the product. Applications can send messages for other applications to receive. RabbitMQ’s management plugin provides a management interface for the broker. In this case, the interface uses an OAuth2 login flow, and its proxy forwards token requests from that flow to an identity provider. The article does not list all the plugin’s management features, but it identifies the management port and interface as the relevant access points. The vulnerability mattered because the proxy did more than serve legitimate logins. In affected configurations, unauthenticated callers could make it add the broker’s stored client secret to certain requests and pass through requested scopes. That could let a caller obtain a token with powerful permissions, depending on the identity provider.
What is RabbitMQ, and what does its management plugin let operators do?
RabbitMQ is a message broker: software that lets applications exchange messages through a central service. That basic definition is general technical knowledge; the source article focuses on the security flaw rather than explaining the product. Applications can send messages for other applications to receive.
RabbitMQ’s management plugin provides a management interface for the broker. In this case, the interface uses an OAuth2 login flow, and its proxy forwards token requests from that flow to an identity provider. The article does not list all the plugin’s management features, but it identifies the management port and interface as the relevant access points.
The vulnerability mattered because the proxy did more than serve legitimate logins. In affected configurations, unauthenticated callers could make it add the broker’s stored client secret to certain requests and pass through requested scopes. That could let a caller obtain a token with powerful permissions, depending on the identity provider.
How did an unauthenticated caller use RabbitMQ’s OAuth2 proxy to request a privileged token?
The vulnerable component was the management plugin’s OAuth2 proxy, which forwards token requests from the login flow to an identity provider. In affected versions, the proxy answered callers who had not authenticated. That made the login pathway available to anonymous callers, rather than only to users completing the intended flow.
The proxy also added RabbitMQ’s stored client secret to requests that lacked one, while passing the requested scope through unchanged. A caller could therefore ask the broker to act as its own OAuth2 client and request a token. The identity provider then determined which scopes it would grant; the proxy’s behavior did not itself guarantee administrator rights.
Researcher shanz0ng demonstrated the issue on the official RabbitMQ 4.4.0 management Docker image. The demonstration minted a token without credentials, confirmed administrator rights, created a persistent administrator account, and used the token to log in over AMQP. No attacks had been reported when the advisory was published.
How severe was the flaw, and which RabbitMQ versions and configurations were affected?
RabbitMQ’s project rated the flaw Critical, with a CVSS score of 9.1. The issue is tracked as GHSA-cfvg-5q96-8mhm, and a CVE assignment was pending in the advisory. The rating reflects the potential for an unauthenticated caller to obtain a powerful token, although the exact permissions depend on the identity provider.
The vulnerability applies only to deployments following the documented OAuth2 setup for the management interface. Both the management and OAuth2 plugins must be enabled, and a client secret must be configured. The researcher demonstrated the flaw on RabbitMQ 4.4.0. The article says affected 4.3 and 4.2 ranges begin with releases from July, but does not give every vulnerable version number.
Fixed releases 4.4.1 and 4.3.8 have been available since November 16. There is no community fix for the 4.2 branch; version 4.2.13 is available only through Broadcom’s commercial support. Community support for 4.2 ended on July 31, and no attacks had been reported.
What could an attacker do with an administrator token that works over AMQP?
An administrator token accepted over AMQP can give an attacker access beyond the management interface. AMQP is the protocol the researcher used to log in to the broker with the minted token. According to the article, a token accepted on AMQP reaches the broker’s queues and messages across all virtual hosts.
In a demonstration on the official RabbitMQ 4.4.0 management Docker image, researcher shanz0ng minted a token without credentials and confirmed it carried administrator rights. The researcher then created a persistent administrator account and logged in over AMQP using the same token. This shows that the flaw could lead to lasting access, not just a temporary management-interface session.
The article does not report attacks in the wild. It also warns that installing a fix does not remove an administrator account created earlier through the flaw. Operators need to consider possible prior abuse when patching, but the advisory does not explain how to determine whether tokens were already minted against a broker.
Why does the identity provider’s permissions determine whether a minted token grants administrator access?
OAuth2 scopes describe the permissions requested for a token. In general, an identity provider issues tokens and decides which requested permissions to grant; that is established technical context, not a definition supplied by the article. A request for a scope is not itself proof that the requester will receive it.
The vulnerable RabbitMQ proxy passed the requested scope through unchanged and added the broker’s stored client secret when a request lacked one. This let an anonymous caller ask RabbitMQ to act as its own OAuth2 client. The proxy could relay that request, but the identity provider’s rules controlled the permissions in the resulting token.
That distinction limits what can be concluded about impact. The article says the token’s capabilities depend on the identity provider, and full administrator access requires a provider that grants the broker’s client administrator scopes. A provider that does not grant those scopes would not issue a token with those administrator permissions, even though the proxy flaw remains serious.
What can operators do to protect an affected broker if they cannot upgrade right away?
The preferred response is to upgrade to a fixed RabbitMQ release. Versions 4.4.1 and 4.3.8 have been available since November 16, and the project says upgrading to that release covers the same-day advisories. For operators who cannot upgrade immediately, the security advisory gives two interim options to reduce exposure.
One option is to remove the management.oauth_client_secret setting. The other is to place authentication in front of the management port. The second option adds a barrier to callers trying to reach the vulnerable management interface; the first removes the secret the proxy could add to requests that lacked one.
Removing the setting can have a cost: the management plugin documentation notes that some identity providers require the secret for login or token refresh. Patching also does not undo earlier abuse. An administrator account created through the flaw remains after the update, and the advisory does not explain how operators can identify tokens already minted against their broker.
What are OAuth2 access tokens and scopes, and how do they determine what an application can access?
In general OAuth2 usage, an access token is a credential that a client presents when accessing a protected service. Scopes name the kinds of access being requested or granted. These are standard technical definitions; the source article discusses tokens and scopes but does not define them. A token’s practical reach depends on the permissions the relevant provider and service recognize.
In RabbitMQ’s affected login flow, the management plugin’s proxy forwarded token requests to an identity provider. The vulnerable proxy accepted unauthenticated callers, added the broker’s stored client secret when one was missing, and passed the requested scope through unchanged. An anonymous caller could thus have RabbitMQ act as its OAuth2 client and ask for a token.
The requested scope did not guarantee that the provider would grant it. The article states that token capabilities depended on the identity provider, and full administrator access required a provider that granted the broker client administrator scopes. A token accepted over AMQP could then reach queues and messages across all virtual hosts.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web