CVE-2026-104070: SPIP Crayons Plugin Missing Authorization Unauthenticated Remote Code Execution
HERMES THREAT SCORE & WEB CMS INFRASTRUCTURE COMPROMISE EVALUATION
Target:SPIP CMS โ Crayons In-Place Editing Extension (action/crayons_store.php) Both CVSS v4.0 (9.3 Critical) and the Hermes Threat Score (96 CRITICAL) rate CVE-2026-104070 as a catastrophic unauthenticated remote code execution vulnerability in enterprise publishing infrastructure. SPIP is extensively deployed throughout public administrations, academic institutions, and media publications across Europe and the francophone world. The Crayons extension enables in-place frontend editing for articles and site content. In versions prior to 3.5.0, omitting the secu_ anti-forgery parameter in crayons_store.php causes the authorization dispatcher to bypass privilege checks entirely, resolving an unconditionally-true handler. Remote unauthenticated adversaries can modify arbitrary database records, inject malicious skeleton template files, forge signed AJAX execution contexts, and achieve immediate server-side PHP command execution.
CVE-2026-104070: SPIP Crayons Plugin Missing Authorization Unauthenticated Remote Code ExecutionVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in SPIP CMS & Crayons Plugin documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Technical Context & Affected Software Matrix
Section titled โ1. Technical Context & Affected Software MatrixโSPIP uses an event-driven template pipeline called โsquelettesโ (.html files compiled into PHP cache objects) and manages content via relational database models.
| Parameter | Technical Specification | Operational Details |
|---|---|---|
| CVE Identifier | CVE-2026-104070 | International security tracking identifier |
| Software Platform | SPIP CMS & Crayons Plugin | Open-source publishing system and inline editing suite |
| Vulnerable Component | action/crayons_store.php | Crayons asynchronous data persistence handler |
| Vulnerability Class | CWE-862 / CWE-285 | Missing Authorization / Logic Bypass to RCE |
| Attack Vector | Network (Port 80/443 TCP) | HTTP POST to spip.php?action=crayons_store omitting secu_ |
| Remediation Release | Crayons v3.5.0 | Mandatory token verification and strict authorization enforcement |
[ Unauthenticated Remote Attacker ] | Sends HTTP POST to spip.php?action=crayons_store CRITICAL: Deliberately omits 'secu_' parameter! | v +------------------------------------------+ | SPIP Web Application Endpoint (:443) | | action/crayons_store.php Handler | +------------------------------------------+ | [ secu_ Parameter Missing in POST data ] Dispatcher authorization check omitted! Falls back to unconditionally-true handler! | v +------------------------------------------+ | Unrestricted In-Place Modification | | Overwrites article / config records | | Plants crafted malicious .html skeleton| +------------------------------------------+ | v +------------------------------------------+ | Signed AJAX Context Execution | | Triggers template compilation engine | | Executes embedded PHP code | +------------------------------------------+ | v +------------------------------------------+ | Full Web Server User Compromise | | RCE as www-data / local persistence | +------------------------------------------+2. Root Cause Analysis & Vulnerable Code Anatomy
Section titled โ2. Root Cause Analysis & Vulnerable Code AnatomyโThe root cause resides in action/crayons_store.php. In normal operation, Crayons verifies the authenticity of inline edits using an anti-forgery token passed in secu_:
// Vulnerable dispatch logic in action/crayons_store.php (Crayons < 3.5.0)function action_crayons_store_dist() { $secu = _request('secu_'); $modifs = _request('content');
// FLAW: If $secu is missing, the code assumes non-interactive context // or falls through without invoking autoriser('modifier', ...) if ($secu) { if (!crayons_verif_secu($secu)) { die('Access denied: invalid token'); } } // If $secu is NULL, execution proceeds directly to the update dispatcher! foreach ($modifs as $objet => $valeurs) { // The authorization check autoriser('modifier', $type, $id) was gated // by the token validator; with no token, it defaults to TRUE: crayons_update_object($objet, $valeurs); }}Because crayons_verif_secu() was the sole barrier validating user identity and intent, omitting secu_ entirely allowed the code to fall through to crayons_update_object().
3. Attack Vectors & Real-World Exploitation Scenarios
Section titled โ3. Attack Vectors & Real-World Exploitation ScenariosโMulti-Stage RCE Weaponization Chain:
Section titled โMulti-Stage RCE Weaponization Chain:โ- Field Modification via Crayons: The attacker issues a crafted POST request omitting
secu_to modify a target database field or upload content into a template field:POST /spip.php?action=crayons_store HTTP/1.1Host: target-spip-portal.orgContent-Type: application/x-www-form-urlencodedcontent[article][1][texte]=<BOUCLE_a(ARTICLES)>[(#EVAL{system($_GET['cmd']);})]</BOUCLE_a> - Configuration Extraction: The adversary updates an exposed page section to output the value of
_DIR_RACINE . 'config/ecran_securite.php'or the site secret key stored in the database. - Template Compilation Trigger: Using the leaked secret or SPIPโs standard AJAX context mechanism (
spip.php?page=...&var_ajax=...), the attacker requests the modified template. - Code Execution: SPIP compiles the template into native PHP code and evaluates the
#EVALtag, granting immediate interactive shell access to the host.
4. Forensic Triage & Behavioral Signatures
Section titled โ4. Forensic Triage & Behavioral Signaturesโtitle: SPIP Crayons Missing Secu Token Authorization Bypassid: b3949821-1254-4789-9142-88491c94b721status: experimentaldescription: Detects HTTP POST requests targeting SPIP crayons_store action where the mandatory secu_ token parameter is missing.references: - https://vulncheck.com/advisories/spip-crayons-plugin-authorization-bypass-rce - https://git.spip.net/spip-contrib-extensions/crayonsauthor: Hermes Codex CTI Teamdate: 2026-10-07logsource: category: webserverdetection: selection_endpoint: cs-method: 'POST' cs-uri-query|contains: - 'action=crayons_store' condition_post: c-body|contains: - 'content[' filter_valid: c-body|contains: - 'secu_=' condition: selection_endpoint and condition_post and not filter_validfields: - c-ip - cs-method - cs-uri-stem - cs-uri-querylevel: criticaltags: - attack.initial_access - attack.privilege_escalation - attack.t1190// Azure Sentinel: Detect SPIP Crayons Exploit ActivityW3CIISLog| where csMethod == "POST"| where csUriQuery has "crayons_store"| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, scStatus, csUserAgent| extend ThreatFlag = "SPIP Crayons Unauthenticated Authorization Bypass (CVE-2026-104070)"| order by TimeGenerated desc#!/usr/bin/env bash# Audit SPIP web server access logs for anomalous crayons_store requestsLOG_FILE="/var/log/nginx/access.log"
echo "[*] Searching for crayons_store requests in access logs..."grep -E "POST .*action=crayons_store" "$LOG_FILE" | awk '{print $1, $4, $6, $7, $9}'
echo "[*] Checking for recently modified template skeleton files in SPIP squelettes..."find /var/www/html/squelettes -type f -name "*.html" -mtime -2 -ls 2>/dev/null5. Defense-in-Depth & Remediation Strategy
Section titled โ5. Defense-in-Depth & Remediation Strategyโ- Upgrade Crayons Extension: Update the Crayons plugin to version 3.5.0 or later via the SPIP administrative backend (
SVPpackage manager) or by pulling from Git:Terminal window cd /var/www/html/plugins/crayonsgit pull origin mastergit checkout v3.5.0 - Emergency Mitigation (Apache/Nginx): If immediate upgrading is not possible, block unauthenticated requests to
crayons_storeat the web server layer:# Nginx mitigation ruleif ($args ~* "action=crayons_store") {return 403;} - Database Audit: Check the
spip_articles,spip_rubriques, andspip_metatables for unexpected edits or#EVALtags added recently:SELECT id_article, titre, maj FROM spip_articles WHERE texte LIKE '%#EVAL%' OR texte LIKE '%<?php%'; - Deploy ecran_securite.php: Ensure the latest version of SPIPโs
ecran_securite.phpis active in theconfig/directory to block known template injection signatures.