Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-67598 — CVE-2026-67598 — Emlog Pro: disabled TLS certificate validation in AI assistant (MITM → API-key theft). CWE-295, CVSS 9.1. Reported by @IlhomjonR. | Kitploit
Tools/GitHubGitHub/ilhomjonr/cve-2026-67598
Vulnerability AnalysisCode AnalysisWeb SecurityLearning & EducationAPI SecurityAI Security
GitHubilhomjonr/cve-2026-67598

CVE-2026-67598

CVE-2026-67598 — Emlog Pro: disabled TLS certificate validation in AI assistant (MITM → API-key theft). CWE-295, CVSS 9.1. Reported by @IlhomjonR.

View Repository
31 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-67598

Emlog Pro — Disabled TLS Certificate Validation in the AI Assistant

Network-adjacent MITM → LLM-provider API-key theft & AI-response injection

CVE CVSS 4.0 CVSS 3.1 CWE

Product CNA Status Published

Researcher

Summary · Attack Flow · Affected Code · Proof · Remediation · Timeline · References


📋 At a glance

CVE IDCVE-2026-67598
Productemlog/emlog — Emlog Pro
AffectedEmlog Pro through 2.6.23
WeaknessCWE-295: Improper Certificate Validation
CVSS v4.09.1 — Critical
CVSS v3.17.4 — High
VectorNetwork-adjacent · No privileges · MITM
CNAVulnCheck · GHSA-hf85-99vj-m4c5
Reserved / Published2026-07-29 / 2026-08-03
ResearcherIlhomjon Rustamov (@IlhomjonR)

🔎 Summary

Emlog Pro ships an admin-facing AI assistant (admin/ai.php + include/service/ai.php) that makes outbound HTTPS calls to a configured LLM provider — chat, streaming, image generation — plus a Bing-scraping helper for the @em-help command.

Every outbound request helper unconditionally disables TLS certificate validation:

root@kitploit:~
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

Verification is off regardless of the configured provider URL or network path, so any network-adjacent / man-in-the-middle attacker sitting between the Emlog server and the api_url can transparently intercept the TLS session with a forged certificate and:

  • 🔑 Steal the Authorization: Bearer <apiKey> header — the site's paid LLM-provider API key.
  • 💉 Inject a malicious AI response back into the assistant, which drives an LLM that holds query_database and update_config tool access.

This is a pure transport-security defect — it is not gated behind the AI tool-calling confirmation UI.


🧭 Attack Flow

root@kitploit:~
flowchart LR
    A["🖥️ Emlog server<br/>AI assistant"] -->|"HTTPS request<br/>Bearer &lt;apiKey&gt;"| M{"😈 MITM attacker<br/>(forged cert)"}
    M -->|"TLS verify DISABLED<br/>→ accepted"| P["☁️ LLM provider"]
    M -.->|"🔑 reads API key"| X["Key exfiltrated"]
    M -.->|"💉 forged response"| A
    A -->|"acts on injected<br/>AI output"| T["⚙️ query_database /<br/>update_config tools"]

    classDef bad fill:#7f1d1d,stroke:#ef4444,color:#fff;
    classDef ok  fill:#1e3a8a,stroke:#3b82f6,color:#fff;
    class M,X bad;
    class A,P,T ok;

💥 Impact

  • API-key disclosure — theft and financial abuse of the site's paid LLM-provider key.
  • Response injection — attacker-controlled content enters the AI assistant's stream.
  • Low bar to exploit — any network-adjacent position (shared hosting, hostile Wi-Fi, compromised router, malicious egress proxy) is enough; no credentials on the Emlog install are required.

📂 Affected Code

include/service/ai.php — the CURLOPT_SSL_VERIFYPEER / CURLOPT_SSL_VERIFYHOST calls in:

FunctionPurpose
send()LLM chat request
sendStream()Streaming chat response
sendImageRequest()AI image generation
fetchSearchHtml()Bing scrape for @em-help

🧪 Proof / Verification

root@kitploit:~
# 1. Configure the AI assistant with any OpenAI-compatible provider URL + API key.
# 2. Put a MITM proxy with an UNTRUSTED CA between Emlog and the provider:
mitmproxy --mode reverse:https://api.provider.example -p 8443

# 3. Trigger any AI chat / image-gen / @em-help request from the admin panel.
# 4. Result: request succeeds despite the untrusted cert, and the
#    "Authorization: Bearer ..." header is readable in the proxy log
#    → certificate validation is confirmed disabled.
📸 Tested instance (screenshots)

Screenshots of the audited Emlog Pro 2.6.23 instance live in screenshots/ — home page and admin login.


🛠️ Remediation

Enable TLS verification for all outbound calls in include/service/ai.php:

root@kitploit:~
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);

Self-hosted / OpenAI-compatible endpoints with a private CA should be supported via a custom CA bundle (CURLOPT_CAINFO) — never by disabling verification globally.


🔗 Related note (same feature, separate hardening)

While auditing the same AI feature, Ai::queryDatabase() was found to specially block direct SQL writes to the blog table but not the user table (which holds role / password). Combined with the indirect-prompt-injection path via @em-help (live Bing results + scraped FAQ fed into a model that has query_database / update_config tool access), this is worth hardening by routing user / options writes through narrowly-scoped tools — the way write_article already handles blog posts. Full details in REPORT.md (tracked separately from the CVE above).


🗓️ Timeline

DateEvent
2026-07-24Vulnerability identified during audit of Emlog Pro 2.6.23 (commit ff5637e)
2026-07-29CVE reserved via VulnCheck
2026-08-03CVE-2026-67598 published

📚 References

  • 🆔 CVE Record — https://www.cve.org/CVERecord?id=CVE-2026-67598
  • 🛡️ NVD — https://nvd.nist.gov/vuln/detail/CVE-2026-67598
  • 📢 GitHub Advisory — GHSA-hf85-99vj-m4c5
  • 📦 Vendor — https://github.com/emlog/emlog
  • 📝 Full write-up — REPORT.md

Published for educational and defensive-security purposes as part of coordinated disclosure.
Discovered & reported by Ilhomjon Rustamov (@IlhomjonR) · CNA: VulnCheck

Download Tool