Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a vulnerability in the RabbitMQ management plugin that allows unauthenticated attackers to mint security tokens, potentially granting unauthorized access to broker management APIs and the message queuing system. The issue stems from a lack of caller authentication on a specific proxy endpoint that relays requests to an OAuth2 provider using the broker's client secret. This could enable attackers to impersonate legitimate users or gain elevated privileges within the RabbitMQ environment.
- Unauthorized access to sensitive broker functions.
- Critical for environments using RabbitMQ management.
- Confirm relevance and assess exposure.
Attack Path
How an attacker could exploit the issue
An attacker could target the RabbitMQ management plugin's token endpoint, which lacks authentication, to impersonate legitimate clients. By sending specially crafted requests to this endpoint, an attacker can obtain a JSON Web Token (JWT) that grants them access to both the management API and the AMQP 0-9-1 listener, effectively bypassing authentication.
- Unauthenticated access to a proxy endpoint.
- POSTing to the token endpoint with grant types.
- Minting JWTs for unauthorized access.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow unauthenticated attackers to impersonate legitimate clients and gain unauthorized access to the RabbitMQ management API and AMQP listener by minting their own JSON Web Tokens (JWTs). This is possible when the management plugin's token endpoint proxy is exposed and configured to interact with an OAuth2 provider.
- Unauthorized access to management API.
- Unauthenticated requests to token endpoint.
- Potential for broker control or data access.
Operational Fix
Recommended remediation, mitigation, and detection steps
The RabbitMQ management plugin is likely managed by the platform or infrastructure team, as it's integral to the messaging service's operation and often exposed externally for administrative access. The first step is to confirm the presence of the affected RabbitMQ versions, ascertain their network reachability and criticality, and identify the specific team accountable for their upkeep. Once this is established, a remediation plan can be developed based on the identified risk.
- Platform/Infrastructure team should own the issue.
- Verify network exposure and asset criticality.
- Plan remediation based on identified risk.