Rapid7 Vulnerability & Exploit Database

DataLife Engine preview.php PHP Code Injection

Back to Search

DataLife Engine preview.php PHP Code Injection

Disclosed
01/28/2013
Created
05/30/2018

Description

This module exploits a PHP code injection vulnerability DataLife Engine 9.7. The vulnerability exists in preview.php, due to an insecure usage of preg_replace() with the e modifier, which allows to inject arbitrary php code, when there is a template installed which contains a [catlist] or [not-catlist] tag, even when the template isn't in use currently. The template can be configured with the TEMPLATE datastore option.

Author(s)

  • EgiX
  • juan vazquez <juan.vazquez@metasploit.com>

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

;