Emlog: Missing CSRF protection in AI Assistant execute_tool leads to full database compromise and admin account takeover
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Tampering, Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-352 and CWE-798.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-73847
More emlog vulnerabilities
- TI-2026-51872 emlog allows unauthenticated reinstallation via `install.php?action=reinstall`. CVSS 3.1CRITICAL 9.8
- TI-2026-30598 Emlog: SQL Injection Vulnerability in log_model.php within addLog() and updateLog() Functions CVSS 4.0CRITICAL 10.0
- TI-2025-21066 An arbitrary file upload vulnerability in the component /views/plugin.php of emlog pro… CVSS 3.1CRITICAL 9.8
- TI-2025-19139 An arbitrary file upload vulnerability in the component admin\plugin.php of Emlog Pro… CVSS 3.1CRITICAL 9.8
- TI-2023-24041 An arbitrary file upload vulnerability in the component /admin/plugin.php of Emlog Pro… CVSS 3.1CRITICAL 9.8
- TI-2023-23173 Deserialization of Untrusted Data in emlog pro v.2.1.15 and earlier allows a remote… CVSS 3.1CRITICAL 9.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences