RabbitMQ Stream Publisher Management API Discloses Unauthorized Vhost and Stream Existence
Summary
Advisory Details
Title: RabbitMQ Stream Publisher Management API Discloses Unauthorized Vhost and Stream Existence
Description:
Summary
RabbitMQ's Stream Management publisher endpoints return distinguishable responses for existing versus nonexistent vhosts and Stream queu...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rabbitmqrabbitmq-server |
>= 4.3.0, < 4.3.6→ 4.3.6 |
4.3.6 |
| rabbitmqrabbitmq-server |
>= 4.2.0, < 4.2.11→ 4.2.11 |
4.2.11 |
Original description The description as published by the source.
Advisory Details
Title: RabbitMQ Stream Publisher Management API Discloses Unauthorized Vhost and Stream Existence
Description:
Summary
RabbitMQ's Stream Management publisher endpoints return distinguishable responses for existing versus nonexistent vhosts and Stream queues before verifying whether the authenticated management user can access the requested vhost. A management-tagged user with no permissions on the target vhost receives 200 [] for an existing target and 404 for an absent target, enabling vhost and Stream queue name enumeration.
Details
The affected routes are GET /api/stream/publishers/:vhost and GET /api/stream/publishers/:vhost/:queue, implemented by rabbit_stream_publishers_mgmt.
At the highest affected release, RabbitMQ 4.3.2, is_authorized/2 uses only the general management authorization helper:
is_authorized(ReqData, Context) ->
rabbit_mgmt_util:is_authorized(ReqData, Context).
That check authenticates the caller and verifies a management-capable user tag, but it does not enforce access to the vhost provided in the route. The handler subsequently executes resource_exists/2, which looks up the supplied vhost and, for the queue-specific route, the supplied queue. The existence result determines whether Cowboy continues with a 200 response or returns 404.
The later filter_user/2 call suppresses publisher entries belonging to other users, but it cannot hide the status code selected earlier.…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY rabbitmq/rabbitmq-server