Exploiting RCE Vulnerabilities in Drupal: A Comprehensive Guide
HackTricks has published a detailed guide on exploiting Remote Code Execution (RCE) vulnerabilities in older versions of Drupal, specifically through the PHP Filter module. The article outlines methods to enable the PHP Filter module in Drupal 7 and demonstrates how to create and leverage backdoor modules in Drupal 8 and newer versions.
It explains how to manipulate the configuration synchronization feature to allow insecure file uploads and execute malicious code. Attackers can gain control over the server while evading detection by injecting PHP code into otherwise benign files like LICENSE.txt. This guide serves as both a warning and a resource for developers to understand and mitigate such vulnerabilities.
