
Proof-of-concept exploit for CVE-2026-21994, demonstrating unauthenticated admin session forgery via a hardcoded Flask SECRET_KEY and SSH host verification bypass in Oracle OKIT.
Oracle OKIT (oci-designer-toolkit) version 0.3.0 contains two critical misconfigurations that chain into an unauthenticated full takeover. A hardcoded Flask SECRET_KEY exposed in the public repository allows any attacker to forge a valid admin session cookie — no credentials required. Separately, the Docker image disables SSH host verification entirely, enabling a network attacker to intercept OCI API keys and private keys during infrastructure deployments.
1. Hardcoded SECRET_KEY — okitclassic/okitserver/config.py:4
SECRET_KEY='8980ffsd675747jjjh'
Flask uses this key to sign session cookies. Since it is hardcoded in a public repo, an attacker can forge a valid admin cookie and access the OKIT dashboard with zero credentials.
2. SSH Host Verification Disabled — Dockerfile:41
&& echo ' StrictHostKeyChecking no' >> /etc/ssh/ssh_config \
&& echo ' UserKnownHostsFile=/dev/null' >> /etc/ssh/ssh_config \
The container never checks SSH host fingerprints. A network attacker can MitM deployments and steal OCI credentials.
Run exploit.py inside the cloned repo directory:
python3 exploit.py
[*] Scanning okitclassic/okitserver/config.py ...
[!] VULNERABLE — Hardcoded SECRET_KEY found: 8980ffsd675747jjjh
[+] Authentication bypass possible with zero credentials.
[*] Scanning Dockerfile ...
[!] VULNERABLE — SSH host verification is DISABLED.
[+] Network attacker can MitM deployments and steal OCI credentials.
[*] Forging admin session cookie ...
[!] SUCCESS — Forged cookie: .eJwlzj0OgkAQBeC7bG1...
| CVE ID | CVE-2026-21994 |
| GitHub Advisory | GHSA-g6qw-3gmw-m78m |
| CWE | CWE-284 — Improper Access Control |
| Oracle Advisory Mapping | oracle.com/security-alerts/public-vuln-to-advisory-mapping |
| Oracle CVE Reference | oracle.com/security-alerts/all-oracle-cves |
| Fix | oracle/oci-designer-toolkit#780 |
Discovered and reported by Gouri Sankar A — g0w6y