Skip to content
Access control Write-up Beginner

Hardcoded Auth Token in RustFS (CVE-2025-68926)

RustFS uses a hardcoded static token for gRPC authentication that is publicly visible in the source code and identical across all deployments. An attacker with network access to the gRPC port can use this token to bypass authentication and execute privileged operations such as deleting buckets, reading credentials, and modifying cluster configuration.

github.com

Published on github.com

loverustfs published GHSA-h956-rh7x-ppgj Dec 30, 2025

The author, on github.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

Root cause

The gRPC authentication check compares the client-supplied token against a hardcoded string literal that is identical in all deployments and cannot be configured or rotated.

Impact

An attacker could read arbitrary data, delete buckets and volumes, harvest credentials, modify policies, and disrupt the cluster, though the report notes that network access to the gRPC port is required and no additional controls such as mTLS or IP whitelisting are typically present.

What the attacker needed

Network access to the gRPC port; knowledge of the hardcoded token

The fix

The hardcoded token should be replaced with a securely generated, configurable secret that can be rotated and is not stored in the source code.

How it was found

  1. Send a gRPC request without an authorization token and observe it is rejected.
  2. Send a gRPC request with an incorrect token and observe it is rejected.
  3. Clone the public source code and search for the hardcoded token string.
  4. Send a gRPC request with the extracted hardcoded token and observe successful authentication.
  5. Call the ServerInfo method with the hardcoded token to retrieve server configuration.
  6. Call the DiskInfo method with the hardcoded token to confirm authenticated access to system information.

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.

A hardcoded token is a password written directly into the program's code, so anyone who can read the code knows the password. Here, the same password is used on every installation and cannot be changed. An attacker who can reach the service's network port can simply send that password and gain full control.

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.