Description
Emlog is an open source website building system. In 2.6.26 and earlier, missing CSRF protection on the AI Assistant execute_tool action in admin/ai.php lets a remote unauthenticated attacker submit a forged cross-site request from an attacker-controlled page to a recently logged-in administrator. The authentication cookie set in include/lib/loginauth.php has no explicit SameSite attribute, enabling Chrome's temporary Lax+POST grace window. The query_database case passes attacker-controlled sql and confirm_code values to Ai::queryDatabase in include/service/ai.php; read queries need no confirmation, write queries accept the public confirm string, only the blog table is write-protected, and aliasing password as pwd_hash bypasses output redaction. A successful request can read every database table and write every table except blog, including changing the user table to take over an administrator account. No fixed version is available as of this review.
Published: 2026-08-14
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An attacker can forge a cross‑site request to the AI Assistant execute_tool action in admin/ai.php. Because the authentication cookie lacks a SameSite attribute, a logged‑in administrator is vulnerable when visiting a malicious page. The request passes attacker‑controlled SQL and confirmation strings to a back‑end service that executes without thorough validation. Consequently, a remote unauthenticated attacker can read all database tables and write to every table except the blog, allowing the attacker to modify the user table and take over an administrator account.

Affected Systems

The vulnerable product is emlog, a website building system. Versions 2.6.26 and older are affected. The flaw exists in the admin/ai.php script, with the sensitive logic located in include/service/ai.php.

Risk and Exploitability

The CVSS score of 6.8 indicates a moderate to high severity. Because the exploit requires only a forged request and a logged‑in administrator, the potential impact is significant, though a recent login is necessary. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, but the combination of CSRF and unsanitized SQL injection provides a clear attack path for attackers familiar with the app.

Generated by OpenCVE AI on August 14, 2026 at 19:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Limit administrator sessions by setting a SameSite attribute on authentication cookies and enforce CSRF tokens for the execute_tool endpoint
  • Disable or remove the AI Assistant execute_tool functionality if it is not required until an official patch is released
  • Require explicit confirmation tokens or passwords for all write operations in the AI Assistant to prevent unauthorized modifications

Generated by OpenCVE AI on August 14, 2026 at 19:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Emlog
Emlog emlog
Vendors & Products Emlog
Emlog emlog

Fri, 14 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 14 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Emlog is an open source website building system. In 2.6.26 and earlier, missing CSRF protection on the AI Assistant execute_tool action in admin/ai.php lets a remote unauthenticated attacker submit a forged cross-site request from an attacker-controlled page to a recently logged-in administrator. The authentication cookie set in include/lib/loginauth.php has no explicit SameSite attribute, enabling Chrome's temporary Lax+POST grace window. The query_database case passes attacker-controlled sql and confirm_code values to Ai::queryDatabase in include/service/ai.php; read queries need no confirmation, write queries accept the public confirm string, only the blog table is write-protected, and aliasing password as pwd_hash bypasses output redaction. A successful request can read every database table and write every table except blog, including changing the user table to take over an administrator account. No fixed version is available as of this review.
Title Emlog: Missing CSRF protection in AI Assistant execute_tool leads to full database compromise and admin account takeover
Weaknesses CWE-1275
CWE-352
CWE-798
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T19:29:11.588Z

Reserved: 2026-08-13T17:44:28.644Z

Link: CVE-2026-73847

cve-icon Vulnrichment

Updated: 2026-08-14T19:29:06.266Z

cve-icon NVD

Status : Received

Published: 2026-08-14T18:19:09.843

Modified: 2026-08-14T20:16:58.217

Link: CVE-2026-73847

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T20:30:04Z

Weaknesses
  • CWE-1275

    Sensitive Cookie with Improper SameSite Attribute

  • CWE-352

    Cross-Site Request Forgery (CSRF)

  • CWE-798

    Use of Hard-coded Credentials