Rapid7 Vulnerability & Exploit Database

Moodle Admin Shell Upload

Back to Search

Moodle Admin Shell Upload

Disclosed
04/28/2019
Created
10/12/2021

Description

This module will generate a plugin which can receive a malicious payload request and upload it to a server running Moodle provided valid admin credentials are used. Then the payload is sent for execution, and the plugin uninstalled. You must have an admin account to exploit this vulnerability. Successfully tested against 3.6.3, 3.8.0, 3.9.0, 3.10.0, 3.11.2

Author(s)

  • AkkuS <Özkan Mustafa Akkuş>
  • h00die

Platform

PHP

Architectures

php

Development

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/multi/http/moodle_admin_shell_upload
msf exploit(moodle_admin_shell_upload) > show targets
    ...targets...
msf exploit(moodle_admin_shell_upload) > set TARGET < target-id >
msf exploit(moodle_admin_shell_upload) > show options
    ...show and set options...
msf exploit(moodle_admin_shell_upload) > 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

;