Skip to content
Low 2.3

RabbitMQ 4.4.0 auth-cache accepts expired OAuth JWTs for new management operations

GHSA-6q46-pxw7-rfv2 First seen on SecPulse

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

PackageAffected → Fixed
otherrabbitmq-server
>= 4.4.0, < 4.4.1→ 4.4.1
otherrabbitmq-server
>= 4.3.0, < 4.3.8→ 4.3.8
otherrabbitmq-server
>= 4.2.0, < 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:

  1. A fresh POST /api/queues/%2F/expiry_lab_primed/get with 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.
  2. A fresh PUT /api/users/synthetic_paired_post_expiry_admin with 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/users endpoint 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

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