Drupal
Last updated
Last updated
Footprinting:
Version Enumeration:
Would not work on later versions of Drupal.
Automated Scan:
droopescan:
Require Admin access.
PHP Filter Module:
Before version 8:
It is possible to login as admin and enable the PHP filer module to allow embedded PHP codes to be executed.
Under Module. Then save configuration
Then we can create a new page under Content, and place our web shell code:
Then visit the php page with ?cmd=<command>
Make suer the Text format drop down is set to PHP Code.
After version 8:
We would have to install the module ourselves by uploading the module archive.
Uploading a Backdoored Module:
Download and extract a normal module:
Create a php web shell:
Create a .htaccess
file:
Drupal in default does not allow access to /module
folder.
Move all files into the Module and Create an archive:
Then install this new module on Drupal.
Executing the web shell:
Known Vulnerabilities:
Versions 7.0 up to 7.31 - CVE-2014-3704 (Drupalgeddon) Pre-auth SQL injection
Versions 7.58 to 8.5 - CVE-2018-7600 (Drupalgeddon2) Remote Code Execution
Multiple Versions 7.x and 8.x. - CVE-2018-7602 (Drupalgeddon3) Remote Code Execution