Kerberos Agent's Default JWT Key Turns Configuration Drift into Admin Access
A default secret becomes especially dangerous when the application silently uses it as a fallback. Kerberos Agent CVE-2026-135208 shows how an unset environment variable can become administrative access.
The vulnerability
The Kerberos Agent advisory GHSA-3c52-7fc8-c39j covers versions before 3.14.4. The JWT middleware falls back to the hard-coded key TOBECHANGED when AGENT_JWT_SECRET is not set. An attacker who knows that fallback can create signed tokens with arbitrary user and role claims. The advisory also notes that default login credentials can fall back to root/root, but the signing key remains the stronger issue because it bypasses login even after the password has changed.
The authority behind the token
The agent protects /config and the /api route group with the JWT middleware. On a configured camera, administrative API access can expose RTSP and ONVIF credentials, Kerberos Hub keys, and a recording encryption key. The same token can reach state-changing routes for configuration, camera control, and relay output. This is a compact example of why signing keys need the same protection as passwords: possession changes the identity the service accepts.
Find the fallback in production
Inventory Kerberos Agent versions and identify every deployment where AGENT_JWT_SECRET is absent, empty, or merely inherited from an old image. Check whether the agent is reachable from untrusted networks and whether its web preview or recording paths are exposed separately. Search edge logs for requests to /config and /api from unexpected sources, then compare them with valid session and administrator activity. Do not treat a changed root password as proof that the JWT issue was mitigated.
Remediation
Upgrade to Kerberos Agent 3.14.4 or later. Set a unique, high-entropy AGENT_JWT_SECRET for every deployment and invalidate existing tokens by rotating the secret. Restrict the agent and its management API to a dedicated management network. If the service was exposed, rotate the camera credentials, Hub credentials, and recording encryption key that the agent could read. Review camera configuration, relay state, and saved recordings for unauthorized changes.
Design lesson
A missing secret is an error condition. Production authentication libraries should reject startup or all protected requests when required key material is absent. A fallback string makes deployment easier for a lab and much harder to defend in an estate with uneven configuration management.
Top comments (0)