Rapid7 Vulnerability & Exploit Database

Drupal CODER Module Remote Command Execution

Back to Search

Drupal CODER Module Remote Command Execution

Disclosed
07/13/2016
Created
05/30/2018

Description

This module exploits a Remote Command Execution vulnerability in the Drupal CODER Module. Unauthenticated users can execute arbitrary commands under the context of the web server user. The CODER module doesn't sufficiently validate user inputs in a script file that has the PHP extension. A malicious unauthenticated user can make requests directly to this file to execute arbitrary commands. The module does not need to be enabled for this to be exploited. This module was tested against CODER 2.5 with Drupal 7.5 installed on Ubuntu Server.

Author(s)

  • Nicky Bloor <nick@nickbloor.co.uk>
  • Mehmet Ince <mehmet@mehmetince.net>

Platform

Unix

Architectures

cmd

Development

References

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/unix/webapp/drupal_coder_exec
msf exploit(drupal_coder_exec) > show targets
    ...targets...
msf exploit(drupal_coder_exec) > set TARGET < target-id >
msf exploit(drupal_coder_exec) > show options
    ...show and set options...
msf exploit(drupal_coder_exec) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;