RabbitMQ 4.4.0 auth-cache accepts expired OAuth JWTs for new management operations
Summary
RabbitMQ 4.4.0 auth-cache accepts expired OAuth JWTs for new management operations
Summary
When rabbitmq_auth_backend_cache wraps rabbit_auth_backend_oauth2, a previously accepted signed JWT remains usable for new management HTTP requests after its exp timestamp, until the cache ent...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherrabbitmq-server |
>= 4.4.0, < 4.4.1→ 4.4.1 |
4.4.1 |
| otherrabbitmq-server |
>= 4.3.0, < 4.3.8→ 4.3.8 |
4.3.8 |
| otherrabbitmq-server |
>= 4.2.0, < 4.2.13→ 4.2.13 |
4.2.13 |
Original description The description as published by the source.
RabbitMQ 4.4.0 auth-cache accepts expired OAuth JWTs for new management operations
Summary
When rabbitmq_auth_backend_cache wraps rabbit_auth_backend_oauth2, a previously accepted signed JWT remains usable for new management HTTP requests after its exp timestamp, until the cache entry's independent TTL elapses. The default cache TTL is 15,000 ms. This affects only deployments that explicitly enable this plugin combination and only the exact token whose successful result was cached before expiry.
I reproduced two consequences on RabbitMQ 4.4.0 in isolated loopback Docker containers:
- A fresh
POST /api/queues/%2F/expiry_lab_primed/getwith an expired read-scoped JWT returned a synthetic message published after the JWT expired. The identical request to a same-image direct-OAuth2 control returned 401. This is a new HTTP request, not persistence of an already-open AMQP or STOMP consumer. - A fresh
PUT /api/users/synthetic_paired_post_expiry_adminwith an expired administrator JWT created an administrator-tagged internal user. With an internal authentication backend configured after cached OAuth2, that user's Basic credentials still accessed the admin-only/api/usersendpoint after the JWT cache entry expired. The same JWT on a direct-OAuth2 control could not create the user. This durable-login consequence requires the explicitly mixed backend configuration and Basic authentication.
No JWT was forged, no initially invalid token succeeded, and no lower-p…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY rabbitmq/rabbitmq-server