Drupal: a second installer flaw exploited, the Fail2Install fix was not enough on sites in an incomplete installation state
SIGMA Planted PHP file run through the .htaccess bypass /modules/<file>.php/core/x.php (Drupal) Apache or reverse proxy access logs in front of Drupal · high Threat Brief · experimental
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
Successful request to a /modules/<file>.php/core/... path, the trick described by StepSecurity to run a PHP file planted in web/modules despite the Drupal .htaccess. New compared with the 20/11 rule: the fixed releases leave the .htaccess rule unchanged. False positives: scanners or internal tests reproducing the StepSecurity check.
2 quotes from the 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 .php file written under a modules directory by Apache (Drupal, Cortex XDR) Cortex XDR endpoint telemetry (xdr_data) on the Drupal web server · high Threat Brief · experimental
// 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
Creation of a .php file under a /modules/ directory by the Apache process: this is how the reopened installer plants a SQLite database named .php (e.g. web/modules/x.php) that holds PHP code. Complements the 20/11 query on settings.php. False positives: module installed or updated from the Drupal web interface (Update Manager).
2 quotes from the 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