CVE-2026-135208 in Kerberos Agent
Summary
by MITRE • 11/23/2026
Kerberos Agent before 3.14.4 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge administrator tokens because JWTMiddleWare() falls back to the hard-coded key TOBECHANGED. Attackers can sign HS256 tokens with arbitrary username and role claims to access /api and /config routes, exposing RTSP, ONVIF, Hub and encryption keys, rewriting configuration, and stopping the camera.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/23/2026
The vulnerability identified in Kerberos Agent versions prior to 3.14.4 represents a critical authentication bypass flaw rooted in improper handling of JSON Web Token (JWT) verification mechanisms. Specifically, the JWTMiddleWare() function contains a logic error that causes it to fall back to using a hard-coded default secret key when standard configuration is missing or invalid. This fallback mechanism utilizes the string TOBECHANGED as the signing key for HMAC-SHA256 signatures. Because this value is static and widely known within the context of development templates, it effectively nullifies the security guarantees provided by asymmetric cryptography or strong symmetric keys. An attacker can exploit this weakness to forge valid administrator tokens without possessing any legitimate credentials, thereby bypassing all intended access controls on the system.
From a technical perspective, this flaw allows an unauthenticated actor to craft malicious JWTs containing arbitrary claims for username and role attributes. By signing these tokens with the known hard-coded key TOBECHANGED using the HS256 algorithm, the attacker generates signatures that are accepted as valid by the middleware. This capability grants the adversary immediate administrative privileges within the application layer. The exploitation does not require complex network manipulation or privilege escalation techniques beyond simple HTTP request forgery, making it highly accessible to low-skilled attackers who can leverage automated tools to generate and submit these forged tokens against vulnerable endpoints.
The operational impact of this vulnerability is severe due to the breadth of administrative functions exposed through the affected API routes. Once authenticated as an administrator via a forged token, an attacker gains full control over critical system components including RTSP streams, ONVIF interfaces, and central hub configurations. This access enables several destructive actions such as intercepting or manipulating video feeds by accessing encryption keys, rewriting device configuration files to alter network settings or security policies, and executing commands that can stop the camera service entirely. The exposure of sensitive data like encryption keys further compromises confidentiality, while the ability to rewrite configurations impacts integrity, and stopping services affects availability, collectively resulting in a complete compromise of the CIA triad for devices running this software version.
This vulnerability aligns with CWE-287 Improper Authentication, as the system fails to correctly verify the identity of users attempting to access protected resources. Additionally, it relates to CWE-916 Use of Hard-coded Password or Key in a Security Critical Context, which highlights the danger of embedding secret values directly into source code rather than managing them through secure configuration management systems. In terms of adversary tactics, this exploitation method corresponds to MITRE ATT&CK technique T1078 Valid Accounts, where attackers use legitimate credentials or forged tokens that mimic valid accounts to maintain persistence and move laterally within the network environment without triggering typical intrusion detection alerts associated with brute-force attacks.
Mitigation strategies must prioritize immediate software updates as the primary defense vector. Organizations operating Kerberos Agent devices should upgrade to version 3.14.4 or later, where this fallback mechanism has been removed or secured against such bypasses. For systems that cannot be immediately patched, network segmentation is recommended to restrict access to the /api and /config routes from untrusted networks. Furthermore, implementing strict input validation on JWT middleware configurations can prevent the application from falling back to insecure defaults if environment variables are not properly set during deployment. Regular security audits should also include checks for hard-coded secrets in configuration files and source code to ensure that no fallback keys remain exposed or predictable.