Drupal : une seconde faille de l'installeur exploitée, le correctif Fail2Install ne suffisait pas sur les sites en état d'installation incomplet
SIGMA Fichier PHP planté exécuté par le contournement .htaccess /modules/<fichier>.php/core/x.php (Drupal) journaux d'accès Apache ou reverse proxy devant Drupal · high Threat Brief · expérimentale
title: Drupal planted PHP file executed through the .htaccess core path bypass (/modules/<file>.php/core/x.php)
id: 0afb1e89-f2d2-4046-b6e0-44b270634d72
status: experimental
description: Request whose path contains /modules/ followed by a .php file and /core/, the trick described by StepSecurity to run a PHP file planted in web/modules despite the stock Drupal .htaccess. The fixed releases do not change this rule, so it still applies after the Fail2Install (CVE-2026-132165) and CVE-2026-136716 patches.
references:
- https://www.stepsecurity.io/blog/fail2install-cve-2026-132165
author: Threat Brief (tlpclear.fr)
date: 2026-11-27
tags:
- attack.persistence
- attack.t1505.003
- attack.initial-access
- attack.t1190
- cve.2026-132165
- cve.2026-136716
logsource:
category: webserver
detection:
selection:
cs-uri-stem|contains|all:
- '/modules/'
- '.php/core/'
filter_blocked:
sc-status:
- 403
- 404
condition: selection and not filter_blocked
falsepositives:
- Security scanners or internal tests reproducing the StepSecurity check
level: high
Requête aboutie vers un chemin /modules/<fichier>.php/core/..., l'astuce décrite par StepSecurity pour exécuter un fichier PHP déposé dans web/modules malgré le .htaccess de Drupal. Élément nouveau par rapport à la règle du 20/11 : la règle .htaccess n'est pas modifiée par les versions corrigées. Faux positifs : scanners ou tests internes qui reproduisent la vérification de StepSecurity.
2 citations des sources
- « A request for /modules/x.php/core/x.php ends in /core/x.php » www.stepsecurity.io
- « The request GET /modules/<file>.php/core/x.php returned 200 and ran the PHP » www.stepsecurity.io
Conversions
"cs-uri-stem"="*/modules/*" "cs-uri-stem"="*.php/core/*" NOT ("sc-status" IN (403, 404))(cs-uri-stem:*\/modules\/* AND cs-uri-stem:*.php\/core\/*) AND (NOT (sc-status:(403 OR 404)))
XQL Fichier .php écrit sous un dossier modules par Apache (Drupal, Cortex XDR) télémétrie endpoint Cortex XDR (xdr_data) du serveur web Drupal · high Threat Brief · expérimentale
// Threat Brief 2026-11-27 · Drupal CVE-2026-132165 / CVE-2026-136716 · experimental
// .php file written under a modules directory by the web server (SQLite database file planted through the installer)
config case_sensitive = false
| dataset = xdr_data
| filter event_type = ENUM.FILE and action_file_path contains "/modules/" and action_file_name ~= "\.php$" and actor_process_image_name in ("apache2", "httpd")
| fields _time, agent_hostname, actor_effective_username, actor_process_image_name, actor_process_command_line, action_file_path, action_file_name
Création d'un fichier .php dans un dossier /modules/ par le processus Apache : c'est ainsi que l'installeur rouvert dépose une base SQLite nommée en .php (ex. web/modules/x.php) contenant du code PHP. Complète la requête du 20/11 sur settings.php. Faux positifs : module installé ou mis à jour depuis l'interface web de Drupal (Update Manager).
2 citations des sources
- « give a database file path that ends in .php inside the web root, such as web/modules/x.php » www.stepsecurity.io
- « from Apache workers whose database connection was refused mid-page » www.stepsecurity.io