Cross-vhost Stream consumer virtual-host existence disclosure
Summary
Advisory Details
Title: Cross-vhost Stream consumer virtual-host existence disclosure
Description:
Summary
The Stream management endpoint GET /api/stream/consumers/:vhost allows an authenticated management user with no permissions for a target virtual host to distingu...
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: Cross-vhost Stream consumer virtual-host existence disclosure
Description:
Summary
The Stream management endpoint GET /api/stream/consumers/:vhost allows an authenticated management user with no permissions for a target virtual host to distinguish whether that vhost exists. The endpoint performs only general management authentication before checking vhost existence, returning 200 OK for an existing inaccessible vhost and 404 Not Found for an absent one. This is a low-severity cross-tenant information disclosure.
Details
The affected handler is deps/rabbitmq_stream_management/src/rabbit_stream_consumers_mgmt.erl. It registers a vhost-scoped route but uses rabbit_mgmt_util:is_authorized/2, which verifies general management API access and does not enforce access to the vhost supplied in the URL.
resource_exists(ReqData, Context) ->
{case rabbit_mgmt_util:vhost(ReqData) of
not_found -> false;
none -> true;
_ -> true
end,
ReqData, Context}.
is_authorized(ReqData, Context) ->
rabbit_mgmt_util:is_authorized(ReqData, Context).
rabbit_mgmt_util:vhost/1 resolves the attacker-controlled :vhost path value through rabbit_vhost:exists/1. Therefore, the REST resource-existence callback exposes the result of the existence check before a vhost authorization decision is made. Later filtering of consumer records does not remove the response-status oracle…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY rabbitmq/rabbitmq-server