# RabbitMQ Management Plugin OAuth2 Token Proxy Missing Authentication (GHSA-cfvg-5q96-8mhm) Allows Unauthenticated Admin Access

> A missing-authentication flaw (CWE-306) in the RabbitMQ management plugin's OAuth2 token-endpoint proxy accepts unauthenticated requests and appends the broker's configured management.oauth_client_secret before relaying them to the identity provider, letting an anonymous peer mint a privileged JWT. In the reporter's testing the token created an administrator account through the management API and was accepted by the AMQP 0-9-1 listener. No in-the-wild exploitation is reported and no CVE has been assigned.

- **Author:** Threadlinqs Team
- **Published:** 2026-11-30T11:15:11Z
- **Last updated:** 2026-11-30T11:15:11Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7071
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7071.png
- **ID:** TL-2026-7071
- **Severity:** CRITICAL (CVSS 9.1)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 11
- **CVEs:** CVE-2026-57219, CVE-2026-67410

## Description

GHSA-cfvg-5q96-8mhm (titled 'Unauthenticated OAuth2 token-endpoint proxy allows anonymous privileged token minting') was published by RabbitMQ maintainer michaelklishin on 2026-11-27 and credits reporter shanz0ng. The management plugin exposes an OAuth2 token-endpoint proxy at /js/oidc-oauth/token-endpoint/<resource-server-id> without authenticating the caller. The route is defined in rabbit_mgmt_dispatcher.erl, and the proxy module rabbit_mgmt_oauth_token_proxy.erl lacks the is_authorized/3 callback. The proxy forwards the unauthenticated request body to the identity provider's token endpoint and, when the caller supplies no client secret, appends the configured management.oauth_client_secret. The broker therefore acts as a confidential OAuth2 client for anyone who can reach the management port, and an anonymous peer can obtain a signed JWT with attacker-chosen scope from a permissive identity provider.

Exploitation requires the documented OAuth2 management integration: rabbitmq_management and rabbitmq_auth_backend_oauth2 enabled, management.oauth_enabled = true with a client ID and management.oauth_client_secret set, an OAuth2 provider with a resource server, and a provider that grants the client administrator scopes. The advisory states no operator misconfiguration is required beyond this documented setup. Token privileges depend on what the identity provider allows that client to request.

The reporter validated the issue on the official rabbitmq:4.4.0-management Docker image in three stages: minting a token with no credentials, confirming administrator privileges through the management API, and using the token for a privileged write (creating an administrator account, which persists beyond token lifetime) and for AMQP data-plane access. The AMQP 0-9-1 listener accepted the token supplied as the SASL PLAIN password because audience validation is not bound to the listening plane, giving access across all vhosts (reading queued messages, publishing fraudulent messages, purging queues). The full standalone PoC was sent privately and is not public.

The fix (PR #17937) restricts the relayed grant types to authorization_code and refresh_token and ships in 4.4.1, with backports 4.3.8 and 4.2.13. Interim mitigations are removing management.oauth_client_secret (after checking SSO impact) or placing an authentication layer in front of the management port. Scoring: CVSS v4.0 9.1 (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N) per the advisory; the reporter suggested CVSS 3.1 9.8. Two related observations (provider responsibility for fabricated code or refresh-token relays, and an iss assertion) were triaged separately. This flaw is distinct from earlier RabbitMQ management OAuth client-secret disclosure issues (e.g., CVE-2026-57219 / GHSA-pj24-8j6m-vq9q and CVE-2026-67410 / GHSA-f9f2-q3jf-wfj3).

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1078 Valid Accounts
- T1528 Steal Application Access Token
- T1550.001 Application Access Token
- T1136 Create Account
- T1098 Account Manipulation
- T1213 Data from Information Repositories
- T1565 Data Manipulation
- T1485 Data Destruction

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**RabbitMQ Management OAuth2 Token-Endpoint Proxy POST (GHSA-cfvg-5q96-8mhm) — Exploitation** (`TL-2026-7071-SPL-001`)

Detects POST requests to the RabbitMQ management plugin's OAuth2 token-endpoint proxy (/js/oidc-oauth/token-endpoint/<resource-server-id>). On vulnerable builds (4.4.0, 4.3.3-4.3.7, 4.2.9-4.2.12) this route performs no caller authentication and appends management.oauth_client_secret before relaying to the identity provider, letting an anonymous peer mint a privileged JWT. Requests are scoped by internal/external source so externally sourced hits can be triaged first. Legitimate SSO logins via the management UI also use this route, so baseline against known admin sources.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1528
- **Data sources:** web_access_logs, reverse_proxy_logs, rabbitmq_management_http_log
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=web sourcetype=access_combined earliest=-24h method=POST uri_path="/js/oidc-oauth/token-endpoint/*" | eval src_scope=if(cidrmatch("10.0.0.0/8",clientip) OR cidrmatch("172.16.0.0/12",clientip) OR cidrmatch("192.168.0.0/16",clientip),"internal","external") | stats count AS requests min(_time) AS first_seen max(_time) AS last_seen values(status) AS http_status values(useragent) AS user_agents values(uri_path) AS token_proxy_paths BY clientip src_scope host | eval first_seen=strftime(first_seen,"%Y-%m-%dT%H:%M:%SZ"), last_seen=strftime(last_seen,"%Y-%m-%dT%H:%M:%SZ"), detection="TL-2026-7071 GHSA-cfvg-5q96-8mhm RabbitMQ OAuth2 token-endpoint proxy POST (T1190/T1528)" | sort - requests
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestMethod =~ "POST"
| where RequestURL contains "/js/oidc-oauth/token-endpoint/"
| summarize Requests = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), UserAgents = make_set(RequestClientApplication, 10), Urls = make_set(RequestURL, 10) by SourceIP, DestinationIP, DestinationPort
| project FirstSeen, LastSeen, SourceIP, DestinationIP, DestinationPort, Requests, UserAgents, Urls
| order by Requests desc
```

### Sigma

```yaml
title: RabbitMQ Management OAuth2 Token-Endpoint Proxy POST (GHSA-cfvg-5q96-8mhm)
id: 7c1e4a52-3b9d-4f6a-8e21-5d0a9b7c3f01
status: experimental
description: Detects POST requests to the RabbitMQ management OAuth2 token-endpoint proxy. On vulnerable versions the route is unauthenticated and the broker injects management.oauth_client_secret, allowing anonymous minting of a privileged JWT.
references:
    - https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm
    - https://github.com/rabbitmq/rabbitmq-server/pull/17937
author: Threadlinqs Team
date: 2026/11/30
tags:
    - attack.initial-access
    - attack.t1190
    - attack.credential-access
    - attack.t1528
logsource:
    category: webserver
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem|contains: '/js/oidc-oauth/token-endpoint/'
    condition: selection
falsepositives:
    - Legitimate interactive SSO logins through the RabbitMQ management UI (authorization_code exchange)
    - Authorized vulnerability scanning of the management listener
level: high
```

**Known false positives:**

- Legitimate interactive SSO logins through the RabbitMQ management UI also POST to the token-endpoint proxy
- Authorized vulnerability scans or red-team activity against the management listener on TCP 15672

**Tuning notes:** RabbitMQ does not write HTTP access logs by default; enable management.http_log_dir or log at the authenticating reverse proxy in front of port 15672 and point index/sourcetype at that source. Baseline known admin source IPs and browser user agents, then alert on external sources or non-browser clients. Prioritize hosts running 4.4.0, 4.3.3-4.3.7 or 4.2.9-4.2.12 with management.oauth_enabled = true. Patched builds (4.4.1, 4.3.8, 4.2.13) still show the route, so keep this as a hunting signal after patching.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- RabbitMQ Three-Stage Exploit Chain: Token Mint, whoami Check, Privileged User Write (locked: unlock with TL Creds)
- RabbitMQ Queue Purge via Management API (Data Destruction With Token Session) (locked: unlock with TL Creds)
- Identity Provider Token Issuance to RabbitMQ Management Client From Unexpected Source (locked: unlock with TL Creds)
- Scripted Client POST to RabbitMQ OAuth2 Token-Endpoint Proxy (locked: unlock with TL Creds)
- RabbitMQ Management API User, Tag or Permission Write (locked: unlock with TL Creds)
- RabbitMQ Management API Message Read or Publish (Data Access and Tampering) (locked: unlock with TL Creds)
- RabbitMQ New User Created or Administrator Tag Set (Persistence After Token Minting) (locked: unlock with TL Creds)
- RabbitMQ AMQP 0-9-1 Login by Unexpected Principal or Broad Vhost Spread (Minted JWT Reuse) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [RabbitMQ GHSA-cfvg-5q96-8mhm: Unauthenticated OAuth2 token-endpoint proxy allows anonymous privileged token minting](https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm)
- [Critical RabbitMQ Vulnerability Lets Hackers Gain Admin Access Without Authentication (GBHackers)](https://gbhackers.com/critical-rabbitmq-vulnerability/)
- [RabbitMQ fix PR #17937 'Improve OAuth 2 login' (restrict proxied grant types; merged as cf3a94c)](https://github.com/rabbitmq/rabbitmq-server/pull/17937)
- [Related: CVE-2026-57219 RabbitMQ management OAuth client secret disclosure (OSV)](https://osv.dev/vulnerability/CVE-2026-57219)
- [Related: GHSA-pj24-8j6m-vq9q RabbitMQ advisory](https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-pj24-8j6m-vq9q)
- [Related: CVE-2026-67410 OAuth2 client secret exposed via unauthenticated JavaScript endpoint (Tenable)](https://www.tenable.com/cve/CVE-2026-67410)
- [RabbitMQ flaws could leak OAuth secrets (The Hacker News)](https://thehackernews.com/2026/07/rabbitmq-flaws-could-leak-oauth-secrets.html)
- [What four RabbitMQ advisories reveal about broker security boundaries (Cantina)](https://www.cantina.security/blog/what-four-rabbitmq-advisories-reveal-about-broker-security-boundaries)
- [RabbitMQ OAuth 2.0 Authentication Examples](https://www.rabbitmq.com/docs/oauth2-examples)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7071
