Skip to content
Access control Write-up Intermediate

CVSS 10.0. No Patch. The Admin Endpoint Is Just Open.

The restoreTenant administrative mutation in Dgraph was left out of the authentication middleware, so the endpoint can be reached without any credentials. An attacker with network access could overwrite the database, probe local files, perform SSRF, or steal Kubernetes service account tokens.

medium.com

Published on medium.com

Not every critical vulnerability involves sophisticated exploitation. Some involve an authentication check that was simply never wired up.

Ilias Armenakis, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An unauthenticated attacker with network access could overwrite the database, probe local files, perform SSRF, and in Kubernetes steal service account tokens; exposure depends on network reachability and segmentation.

What the attacker needed

Network access to the admin endpoint; Dgraph up to v25.3.0; admin port reachable (default 8080)

The fix

No patch is available; mitigation should restrict the admin endpoint to trusted networks, block metadata access from Dgraph, and monitor outbound connections until a patched version is released.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Dgraph is a database. One of its admin functions was never added to the list of functions that require a login, so anyone who can reach that endpoint can use it without proving who they are. Because the function accepts web addresses as input, an attacker could use it to replace data, read local files, or reach internal services.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.