Rapid7 Vulnerability & Exploit Database

LotusCMS 3.0 eval() Remote Command Execution

Back to Search

LotusCMS 3.0 eval() Remote Command Execution

Disclosed
03/03/2011
Created
05/30/2018

Description

This module exploits a vulnerability found in Lotus CMS 3.0's Router() function. This is done by embedding PHP code in the 'page' parameter, which will be passed to a eval call, therefore allowing remote code execution. The module can either automatically pick up a 'page' parameter from the default page, or manually specify one in the URI option. To use the automatic method, please supply the URI with just a directory path, for example: "/lcms/". To manually configure one, you may do: "/lcms/somepath/index.php?page=index"

Author(s)

  • dflah_ <dflah_@alligatorteam.org>
  • sherl0ck_ <sherl0ck_@alligatorteam.org>
  • sinn3r <sinn3r@metasploit.com>

Platform

PHP

Architectures

php

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

;