Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
Critical 9.1

RabbitMQ 4.4.0で認証なしにトークン発行、4.4.1で修正

GHSA-cfvg-5q96-8mhm First seen on SecPulse

Summary

RabbitMQ 4.4.0の管理プラグインで、OAuth2連携を使う環境のブローカーが、認証のない要求にも代わってトークンを発行してしまいます。修正版へ更新し、管理画面ポートの公開範囲と身に覚えのないユーザーを確認してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

RabbitMQ 4.4.0の管理プラグインで、OAuth2連携を使う環境のブローカーが、認証のない要求にも代わってトークンを発行してしまいます。修正版へ更新し、管理画面ポートの公開範囲と身に覚えのないユーザーを確認してください。

Affected packages

PackageAffected → Fixed
otherrabbitmq-server
>= 4.4.0, < 4.4.1→ 4.4.1
otherrabbitmq-server
>= 4.3.3, < 4.3.8→ 4.3.8
otherrabbitmq-server
>= 4.2.9, < 4.2.13→ 4.2.13
Original description The description as published by the source.

Summary

The management plugin in RabbitMQ 4.4.0 exposes the OAuth2 token-endpoint proxy at
/js/oidc-oauth/token-endpoint/ without any caller authentication.

Incriminated source code (tag v4.4.0)

  • deps/rabbitmq_management/src/rabbit_mgmt_dispatcher.erl:52-55 — the token-endpoint
    route is registered without an authentication context.
  • deps/rabbitmq_management/src/rabbit_mgmt_oauth_token_proxy.erl:88-131 —
    handle_token/forward_token_request read the unauthenticated request body and
    forward it to the provider's token endpoint. The module does not implement the
    is_authorized/3 callback that every authenticated management resource implements,
    so it is reachable anonymously.
  • Same file, inject_client_secret (lines 125-131 on v4.4.0) — the configured
    management.oauth_client_secret is appended to the request body whenever the caller
    did not supply one. All other caller-supplied form parameters (including scope)
    are relayed verbatim.

Effect

On deployments configured per the documented OAuth2 management setup, the broker acts
as a confidential OAuth2 client on behalf of any anonymous network peer. With a
permissive provider (such as the reference setups in the OAuth2 guide that grant
administrator scopes), an unauthenticated POST with grant_type=client_credentials
(or password) returns a signed JWT with attacker-chosen scope.

The minted token is accepted by the management API, and also by the AMQP 0-9-1
listener wh…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details