efek.me/blog

HAVELSAN — 3 CVEs: Liman Render Engine (CVE-2026-77707, CVE-2026-77703) & Sef AI Platform (CVE-2026-80443)

October 10, 2026•15 min read•Cybersecurity
HAVELSAN — 3 CVEs: Liman Render Engine (CVE-2026-77707, CVE-2026-77703) & Sef AI Platform (CVE-2026-80443)

Overview

During a security assessment of HAVELSAN's Liman Render Engine (2 vulnerabilities) and Sef AI Platform (1 vulnerability), I discovered and responsibly reported 3 security vulnerabilities that were officially validated and assigned CVE identifiers credited to Efe Kırbaş:

#ProductVulnerabilityCVECWECVSSResearcher
1Liman Render EngineTLS Certificate Validation Disabled (Keycloak)CVE-2026-77707CWE-2955.9 (Medium)Efe Kırbaş
2Liman Render EngineSSH Host Key Verification BypassCVE-2026-77703CWE-3225.9 (Medium)Efe Kırbaş
3Sef AI PlatformInsecure TLS Certificate Validation (API Tool Runner)CVE-2026-80443CWE-2957.4 (High)Efe Kırbaş

CVE-2026-77707: TLS Certificate Validation Disabled for Keycloak Connections

Product: Liman Render Engine (github.com/limanmys/fiber-render-engine)
File: internal/auth/keycloak.go (Lines 41–50, L44-46)
Parameter: client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})
Vulnerability Type: CWE-295 (Improper Certificate Validation) / CWE-297 (Improper Validation of Certificate with Host Mismatch)
CVSS: 5.9 (Medium)

Description

Liman Render Engine communicates with the Keycloak identity provider to authenticate user sessions and execute OAuth2 refresh token operations. Source code analysis revealed that when configuring the Keycloak client, TLS certificate verification was globally disabled using the InsecureSkipVerify: true parameter.

Source Code Evidence and Vulnerable Point

Liman Render Engine Keycloak TLS Verification Vulnerability and Audit Output

// internal/auth/keycloak.go (Lines 41–50)
func RefreshTokenIfNecessary(user_id string) error {
    token, err := GetOauth2Token(user_id)
    if err != nil {
        return errors.New("an error occured while getting keycloak token")
    }
    if keycloak.Client == nil {
        keycloak.Client = gocloak.NewClient(helpers.Env("KEYCLOAK_BASE_URL", ""))
        client := resty.New()
        client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true}) // ← VULNERABLE LINE
        keycloak.Client.SetRestyClient(client)
        keycloak.Ctx = context.Background()
    }
    // ...
}

Trigger Chain (Call Stack / Trace)

  1. Endpoint / Request: An API operation requiring session refresh or authorization validation is triggered in the system.
  2. Authentication Layer: RefreshTokenIfNecessary() or RefreshToken() inside internal/auth/keycloak.go is invoked.
  3. HTTP Client: gocloak.GoCloak client sends an HTTPS request to the Keycloak server through resty.Client configured with InsecureSkipVerify: true in the background.
  4. Vulnerability Triggered: The client does not verify whether the server's TLS/SSL certificate is valid (skips CA validation, expiration check, and hostname matching); any untrusted or counterfeit certificate is accepted unconditionally.

Exploit Scenario and Impact Analysis

+---------------------+             +-------------------------+             +-------------------+
| Liman Render Engine |  ======>    | Adversary-in-the-Middle |  ======>    | Keycloak IDP      |
| (HTTPS Client)      |  (HTTPS)    | (Fake TLS Certificate)  |  (HTTPS)    | (Identity Server) |
+---------------------+             +-------------------------+             +-------------------+
          |                                      |
          +--- InsecureSkipVerify: true -------->+ [Encrypted Traffic Decrypted]
               bypasses CA trust chain &          [Client Secret, Access Token &
               hostname validation                Refresh Token Intercepted]

Attack Vector:
An adversary positioned on the network (LAN/VLAN) via DNS poisoning or ARP spoofing acts as an Adversary-in-the-Middle (AiTM), serving a self-signed or invalid TLS certificate for the Keycloak endpoint.

Validation Bypass:
Because the InsecureSkipVerify: true flag is active, the client completes the TLS handshake successfully and transmits authentication requests to the interceptor without warnings.

Impact:

  • KEYCLOAK_CLIENT_SECRET, user AccessToken, and RefreshToken values transmitted during authentication can be decrypted in plaintext and captured by the attacker.
  • Intercepted tokens allow unauthorized session creation and full administrative access to protected system resources.

Lab Verification Code (poc_keycloak_tls.go)

This code can be placed in your workspace root as poc_keycloak_tls.go and executed with go run poc_keycloak_tls.go to confirm that the client unconditionally trusts an untrusted endpoint:

package main

import (
    "crypto/rand"
    "crypto/rsa"
    "crypto/tls"
    "crypto/x509"
    "crypto/x509/pkix"
    "fmt"
    "log"
    "math/big"
    "net/http"
    "net/http/httptest"
    "time"

    "github.com/go-resty/resty/v2"
)

func main() {
    fmt.Println("[*] Liman Render Engine - Keycloak Insecure TLS Verification PoC")

    // 1. Generate an untrusted / self-signed TLS certificate
    priv, err := rsa.GenerateKey(rand.Reader, 2048)
    if err != nil {
        log.Fatalf("Failed to generate RSA key: %v", err)
    }

    template := x509.Certificate{
        SerialNumber: big.NewInt(1),
        Subject: pkix.Name{
            Organization: []string{"Untrusted Fake CA"},
            CommonName:   "fake.keycloak.local",
        },
        NotBefore:             time.Now(),
        NotAfter:              time.Now().Add(time.Hour),
        BasicConstraintsValid: true,
    }

    derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv)
    if err != nil {
        log.Fatalf("Failed to create certificate: %v", err)
    }

    tlsCert := tls.Certificate{
        Certificate: [][]byte{derBytes},
        PrivateKey:  priv,
    }

    // 2. Start mock HTTPS server presenting invalid certificate
    ts := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
        w.Header().Set("Content-Type", "application/json")
        fmt.Fprintln(w, `{"access_token": "intercepted_token_xyz", "expires_in": 3600}`)
    }))
    ts.TLS = &tls.Config{
        Certificates: []tls.Certificate{tlsCert},
    }
    ts.StartTLS()
    defer ts.Close()

    fmt.Printf("[*] Mock Keycloak HTTPS Endpoint started: %s (Untrusted/Self-Signed Certificate)\n", ts.URL)

    // 3. Test vulnerable Resty configuration (internal/auth/keycloak.go:45)
    client := resty.New()
    client.SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true})

    resp, err := client.R().Get(ts.URL)
    if err != nil {
        fmt.Printf("[-] TLS Verification ENFORCED (Not vulnerable): %v\n", err)
        return
    }

    fmt.Printf("[+] Request Completed Successfully! HTTP Status: %d\n", resp.StatusCode())
    fmt.Printf("[+] Response Received From Server: %s", string(resp.Body()))
    fmt.Println("[!] VULNERABILITY CONFIRMED: Client accepted untrusted TLS certificate without validation!")
    fmt.Println("[!] Result: Keycloak OAuth2 authentication traffic is vulnerable to Man-in-the-Middle (AiTM) attacks.")
}

Keycloak Insecure TLS PoC Verification Output

Remediation

The InsecureSkipVerify: true parameter must be removed. If internal private certificates are utilized, they should be added to the operating system's root certificate store (Root CAs):

// Recommended Secure Configuration:
client := resty.New()
client.SetTLSClientConfig(&tls.Config{
    InsecureSkipVerify: false, // Enforce strict TLS validation
})
keycloak.Client.SetRestyClient(client)

CVE-2026-77703: SSH Host Key Verification Bypass

Product: Liman Render Engine (github.com/limanmys/fiber-render-engine)
Files & Lines:

  • internal/bridge/ssh.go (Lines 20, 64, 99, 140)
  • internal/bridge/ssh_tunnel.go (Line 386)
    Parameter: HostKeyCallback: ssh.InsecureIgnoreHostKey()
    Vulnerability Type: CWE-295 (Improper Certificate Validation) / CWE-322 (Key Exchange without Entity Authentication)
    CVSS: 5.9 (Medium)

Description

Liman Render Engine is the core background service executing remote commands across edge nodes via SSH through a central management system. Source code review identified that SSH client configurations establishing outbound connections to remote servers explicitly disable host key verification using ssh.InsecureIgnoreHostKey().

Source Code Evidence and Vulnerable Points

Liman Render Engine SSH Host Key Verification Bypass and MitM Listener

A) internal/bridge/ssh.go (Password and Certificate Connection Handlers)

// internal/bridge/ssh.go:17-23 (InitShellWithPassword)
config := &ssh.ClientConfig{
    User: creds["username"],
    Auth: []ssh.AuthMethod{
        ssh.Password(creds["password"]),
    },
    HostKeyCallback: ssh.InsecureIgnoreHostKey(), // ← VULNERABLE POINT
    Timeout:         time.Second * 5,
}

// internal/bridge/ssh.go:61-67 (InitShellWithCert)
config := &ssh.ClientConfig{
    User: creds["username"],
    Auth: []ssh.AuthMethod{
        ssh.PublicKeys(signer),
    },
    HostKeyCallback: ssh.InsecureIgnoreHostKey(), // ← VULNERABLE POINT
    Timeout:         time.Second * 5,
}

// Functions VerifySSH (lines 96-102) and VerifySSHCertificate (lines 137-143)
// also implement the identical insecure callback.

B) internal/bridge/ssh_tunnel.go (Tunneling Service)

// internal/bridge/ssh_tunnel.go:384-388 (bindTunnel)
tunnel.Config = &ssh.ClientConfig{
    User:            tunnel.Auth.User,
    Auth:            auth,
    HostKeyCallback: ssh.InsecureIgnoreHostKey(), // ← VULNERABLE POINT
    Timeout:         tunnel.Timeout,
}

Trigger Chain (Call Stack / Trace)

Active execution flow through the production code:

  1. Endpoint / Request: A remote node operation or SSH tunnel is initialized via the Render Engine.
  2. Bridge Layer: GetSession() or CreateTunnel() within internal/bridge/connection.go is invoked.
  3. SSH Session: bridge.InitShellWithPassword() or bridge.InitShellWithCert() constructs ssh.ClientConfig.
  4. Vulnerability Triggered: During ssh.Dial(), the client checks HostKeyCallback. Since InsecureIgnoreHostKey() is configured, the server's public host key is never validated against known_hosts or a trusted certificate authority; connections are established with unconditional trust.

Exploit Scenario and Impact Analysis

+---------------------+             +-------------------------+             +-------------------+
| Liman Render Engine |  ======>    | Adversary-in-the-Middle |  ======>    | Target Node       |
| (Root Client)       |  (SSH Req)  | (Fake Host Key Served)  |             | (Remote Linux VM) |
+---------------------+             +-------------------------+             +-------------------+
          |                                      |
          +--- InsecureIgnoreHostKey() --------->+ [Connection Accepted]
               bypasses server identity           [Steals credentials &
               verification                       injects commands]

Attack Vector:
An adversary on the network path intercepts SSH traffic aimed at edge infrastructure and redirects it to a rogue SSH listener presenting a counterfeit host key.

Validation Bypass:
Standard SSH clients abort connections when encountering an unknown or mismatched host key. Because InsecureIgnoreHostKey() is used, the Render Engine connects without warnings or prompts.

Impact:

  • SSH usernames, passwords, and private key sessions transmitted by Liman Render Engine can be intercepted.
  • Because Render Engine operations run with root or administrative privileges, remote management commands can be manipulated, intercepted, or injected maliciously.

Lab Verification Code (poc_verify.go)

Save this file as poc_verify.go in your workspace and run go run poc_verify.go to test against a mock SSH listener:

package main

import (
    "crypto/rand"
    "crypto/rsa"
    "fmt"
    "log"
    "net"
    "time"

    "golang.org/x/crypto/ssh"
)

func main() {
    fmt.Println("[*] Liman Render Engine - SSH Insecure Host Key Verification PoC")

    // 1. Generate an untrusted, temporary mock Host Key
    privateKey, err := rsa.GenerateKey(rand.Reader, 2048)
    if err != nil {
        log.Fatalf("Failed to generate RSA key: %v", err)
    }
    signer, err := ssh.NewSignerFromKey(privateKey)
    if err != nil {
        log.Fatalf("Failed to create signer: %v", err)
    }

    serverConfig := &ssh.ServerConfig{
        NoClientAuth: true,
    }
    serverConfig.AddHostKey(signer)

    // 2. Start a local mock SSH listener
    listener, err := net.Listen("tcp", "127.0.0.1:0")
    if err != nil {
        log.Fatalf("Failed to start listener: %v", err)
    }
    defer listener.Close()
    serverAddr := listener.Addr().String()

    go func() {
        nConn, err := listener.Accept()
        if err != nil {
            return
        }
        _, _, _, _ = ssh.NewServerConn(nConn, serverConfig)
    }()

    time.Sleep(100 * time.Millisecond)

    // 3. Connect using vulnerable Render Engine client configuration
    clientConfig := &ssh.ClientConfig{
        User:            "test_user",
        Auth:            []ssh.AuthMethod{ssh.Password("test_pass")},
        HostKeyCallback: ssh.InsecureIgnoreHostKey(), // VULNERABLE LINE
        Timeout:         3 * time.Second,
    }

    fmt.Printf("[*] Connecting to host serving unknown/untrusted Host Key (%s)...\n", serverAddr)
    client, err := ssh.Dial("tcp", serverAddr, clientConfig)
    if err != nil {
        fmt.Printf("[-] Connection rejected: %v\n", err)
        return
    }
    defer client.Close()

    fmt.Println("[!] VULNERABILITY CONFIRMED: Client connected without validating server Host Key!")
    fmt.Println("[!] Result: Configuration is entirely vulnerable to Man-in-the-Middle (AiTM) interception.")
}

Liman Render Engine SSH PoC Verification Output

Remediation

Replace InsecureIgnoreHostKey() with a trusted known-hosts repository or fingerprint database using knownhosts.New() or ssh.FixedHostKey():

// Recommended Secure Implementation:
import "golang.org/x/crypto/ssh/knownhosts"

hostKeyCallback, err := knownhosts.New("/root/.ssh/known_hosts")
if err != nil {
    return err
}
config := &ssh.ClientConfig{
    User:            creds["username"],
    Auth:            authMethods,
    HostKeyCallback: hostKeyCallback, // Enforce strict host key verification
    Timeout:         time.Second * 5,
}

CVE-2026-80443: Insecure TLS Certificate Validation in API Tool Runner

Product: HAVELSAN Sef — AI Chatbot Platform
File: backend/pkg/toolrunners/api.go
Function: APIToolRunner.ExecuteWithContext
Lines: 66-68
Parameter: InsecureSkipVerify: true
CVSS: 7.4 (High)

Description

The API Tool Runner component in the Sef AI Chatbot Platform disables TLS certificate validation when issuing external API requests. As a result, outbound TLS connections initiated by AI tools towards external endpoints are vulnerable to Man-in-the-Middle (AiTM) interception.

Insecure TLS Certificate Validation in API Tool Runner (CVE-2026-80443)

Vulnerable Code

// backend/pkg/toolrunners/api.go (Lines 66-68)
transport := &http.Transport{
    TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // ← VULNERABLE POINT
}
client := &http.Client{
    Timeout:   timeout,
    Transport: transport,
}

Impact Mechanism

  1. When a user or LLM Agent triggers a configured API tool, APIToolRunner.ExecuteWithContext is invoked.
  2. http.Client transmits HTTPS requests without verifying certificate validity, trust chains, or expiration dates.
  3. Untrusted, expired, or self-signed proxy certificates are accepted unconditionally, allowing adversaries to intercept sensitive data, hijack tool actions, or forge API responses.

Remediation

transport := &http.Transport{
    TLSClientConfig: &tls.Config{
        MinVersion: tls.VersionTLS12,
    },
}

Auxiliary Tools & PoC Scripts

Lab scripts developed to reproduce, test, and verify these vulnerabilities in isolated environments:

ToolPurpose / DescriptionTarget Vulnerability
poc_keycloak_tls.goMock Keycloak HTTPS server & TLS verification bypass testCVE-2026-77707
poc_verify.goSSH host key validation bypass lab PoC verificationCVE-2026-77703
generate_cert.pyGenerate self-signed certificate with invalid CN (no OpenSSL required)CVE-2026-80443
invalid_cert.pyHTTPS test server with invalid certificate (API Tool Runner PoC)CVE-2026-80443

generate_cert.py

"""
generate_cert.py
Generates a self-signed certificate on Windows systems without OpenSSL installed.
Output: cert.pem, key.pem (must be in the same folder as invalid_cert.py)
"""
import datetime
from cryptography import x509
from cryptography.x509.oid import NameOID
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa

print("Generating RSA key pair...")
key = rsa.generate_private_key(public_exponent=65537, key_size=2048)

subject = issuer = x509.Name([
    x509.NameAttribute(NameOID.COMMON_NAME, "invalid-hostname-does-not-match.test"),
])

cert = (
    x509.CertificateBuilder()
    .subject_name(subject)
    .issuer_name(issuer)
    .public_key(key.public_key())
    .serial_number(x509.random_serial_number())
    .not_valid_before(datetime.datetime.utcnow())
    .not_valid_after(datetime.datetime.utcnow() + datetime.timedelta(days=1))
    .sign(key, hashes.SHA256())
)

with open("key.pem", "wb") as f:
    f.write(key.private_bytes(
        encoding=serialization.Encoding.PEM,
        format=serialization.PrivateFormat.TraditionalOpenSSL,
        encryption_algorithm=serialization.NoEncryption(),
    ))

with open("cert.pem", "wb") as f:
    f.write(cert.public_bytes(serialization.Encoding.PEM))

print("Completed: cert.pem and key.pem generated.")
print("CN = invalid-hostname-does-not-match.test (deliberately invalid)")

invalid_cert.py

"""
invalid_cert_server.py
Harmless HTTPS test server for Sef TLS bypass (CWE-295) PoC verification.
Deliberately serves an invalid certificate (hostname mismatch).

Usage:
  1) Run generate_cert.py first to create cert.pem/key.pem in current directory
  2) python invalid_cert_server.py
"""
import http.server
import ssl
from datetime import datetime

class Handler(http.server.BaseHTTPRequestHandler):
    def do_GET(self):
        print(f"[{datetime.utcnow().isoformat()}] TLS PoC: Connection accepted with invalid certificate")
        print(f"  Source IP: {self.client_address[0]}")
        self.send_response(200)
        self.send_header("Content-Type", "application/json")
        self.end_headers()
        self.wfile.write(b'{"poc_status": "tls_validation_bypassed", "note": "Sef should have rejected this invalid certificate but did not"}')

    def log_message(self, format, *args):
        pass  # Suppress default noise, using custom logger

if __name__ == "__main__":
    httpd = http.server.HTTPServer(("127.0.0.1", 8998), Handler)
    ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
    ctx.load_cert_chain("cert.pem", "key.pem")
    httpd.socket = ctx.wrap_socket(httpd.socket, server_side=True)

    print("HTTPS server running on 127.0.0.1:8998 with invalid certificate...")
    httpd.serve_forever()

Timeline & Coordinated Disclosure

DateEvent
August 2026Vulnerabilities discovered in Liman Render Engine & Sef AI by Efe Kırbaş
August 2026Coordinated disclosure initiated with HAVELSAN
September 24, 2026CVE-2026-77703 assigned to Efe Kırbaş (SSH Host Key Verification Bypass)
October 2, 2026CVE-2026-80443 assigned to Efe Kırbaş (API Tool Runner)
October 10, 2026Technical advisory & coordinated disclosure writeup published by Efe Kırbaş

Conclusion

All 3 vulnerabilities identified across HAVELSAN's Liman Render Engine and Sef AI Platform stem from disabling certificate and host key verification in transport-layer security protocols:

  • CVE-2026-77707: Keycloak TLS verification disabled (InsecureSkipVerify: true)
  • CVE-2026-77703: SSH host key verification bypassed (InsecureIgnoreHostKey())
  • CVE-2026-80443: API Tool Runner TLS validation disabled (InsecureSkipVerify: true)

Security protocols (TLS/SSH) must never disable certificate or host verification in production environments.


References