// Güvenlik

A JWT Vulnerability with a 9.3 Score in Kerberos Agent

Versions of the open-source camera software Kerberos Agent prior to 3.14.4 can completely bypass authentication because a hard-coded JWT key was exposed in the source code. In the default configuration, an attacker can access the camera with administrator privileges.

Kerberos Agent, the open-source camera agent in the Kerberos.io ecosystem, has a serious authentication flaw in versions prior to 3.14.4. According to the security advisory published on GitHub, the issue is tracked as CVE-2026-135208 and rated critical, with a CVSS 4.0 score of 9.3. At its core, the product uses a fallback key that’s visible to everyone in its own source code.

The key is right there in the code

The agent protects its REST interface with JWT bearer tokens. The signing key is read from the AGENT_JWT_SECRET environment variable; if the variable isn’t set, the code falls back directly to TOBECHANGED. None of the project’s own deployment files (docker-compose, Kubernetes, snap, balena) include a line that sets this variable. That means anyone who installs the product with its default configuration ends up with an agent signing tokens using the same key published in the source tree.

In this scenario, an attacker doesn’t need any credentials. They can generate their own token using HS256, set role: admin inside it, and access the /api and /config endpoints as an administrator. The advisory also notes that the default username and password are root/root. But the hardcoded key is the real danger: even if an operator changes the password, token forgery still works.

Access extends to camera credentials

The panel accessed with a forged token isn’t just a configuration screen. The RTSP and ONVIF usernames and passwords stored by the agent, Kerberos Hub keys, and recording encryption key can also be read through these endpoints. With the same privileges, an attacker can change the configuration, point the camera to another address, stop recording, or shut down the agent entirely. Confidentiality, integrity, and availability are all compromised at once.

The exposure isn’t limited to a narrow attack surface, either. By default, the agent listens on port 80 across all network interfaces, and the published docker-compose examples expose that port externally. For anyone setting up a home or small-office surveillance system, this is like leaving an internet-accessible camera’s admin panel open to everyone.

What to do

The issue is fixed in version 3.14.4: AGENT_JWT_SECRET is now generated randomly and stored on first startup, and startup is refused if the default value is used. If you can’t update, at least take these steps: set a long, random signing key in the environment variable, change AGENT_USERNAME and AGENT_PASSWORD, and don’t expose the agent’s port to the internet. If you need external access, put it behind a VPN or reverse proxy.

In small installations, this kind of software is often set up once and then left unupdated for years. A hardcoded key can quietly wait in the background for exactly that scenario. Upgrading to 3.14.4 takes just a few minutes and is the simplest way to protect your recordings and cameras.

Source: GitHub Security Advisory · NVD

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎