MODULE

CmsMadeSimple Authenticated File Manager RCE

Try Surface Command Get a continuous 360° view of your attack surface
Back to Search

CmsMadeSimple Authenticated File Manager RCE

Disclosed
06/07/2023
Created
03/28/2025

Description

CMS Made Simple <= v2.2.21 allows an authenticated administrator to upload files with the .phar or .phtml extensions, enabling execution of PHP code leading to RCE. The file can be executed by accessing its URL in the /uploads/ directory. Tested on v2.2.21, v2.2.18, v2.2.17, v2.2.16, v2.2.15, v2.2.14.

Author(s)

  • Okan Kurtuluş
  • Mirabbas Ağalarov
  • tastyrice

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

;