Lucene search
K

DataLife Engine 9.7 (preview.php) PHP Code Injection Vulnerability

🗓️ 29 Jan 2013 00:00:00Reported by EgiXType 
zdt
 zdt
🔗 0day.today👁 40 Views

DataLife Engine 9.7 PHP Code Injection Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
0day.today
DataLife Engine preview.php PHP Code Injection
1 Feb 201300:00
zdt
Circl
CVE-2013-1412
28 Jan 201300:00
circl
Check Point Advisories
DataLife Engine preview.php PHP Code Injection (CVE-2013-1412)
6 Jun 201300:00
checkpoint_advisories
CVE
CVE-2013-1412
2 Jun 201415:00
cve
Cvelist
CVE-2013-1412
2 Jun 201415:00
cvelist
Exploit DB
DataLife Engine 9.7 - 'preview.php' PHP Code Injection
28 Jan 201300:00
exploitdb
Exploit DB
DataLife Engine - 'preview.php' PHP Code Injection (Metasploit)
1 Feb 201300:00
exploitdb
exploitpack
DataLife Engine 9.7 - preview.php PHP Code Injection
28 Jan 201300:00
exploitpack
Metasploit
DataLife Engine preview.php PHP Code Injection
31 Jan 201315:09
metasploit
NVD
CVE-2013-1412
2 Jun 201415:55
nvd
Rows per page
------------------------------------------------------------------
DataLife Engine 9.7 (preview.php) PHP Code Injection Vulnerability
------------------------------------------------------------------
 
[-] Software Link:
 
http://dleviet.com/
 
 
[-] Affected Version:
 
9.7 only.
 
 
[-] Vulnerability Description:
 
The vulnerable code is located in the /engine/preview.php script:
 
246.    $c_list = implode (',', $_REQUEST['catlist']);
247.
248.    if( strpos( $tpl->copy_template, "[catlist=" ) !== false ) {
249.        $tpl->copy_template = preg_replace( "#\\[catlist=(.+?)\\](.*?)\\[/catlist\\]#ies", "check_category('\\1', '\\2', '{$c_list}')", $tpl->copy_template );
250.    }
251.       
252.    if( strpos( $tpl->copy_template, "[not-catlist=" ) !== false ) {
253.        $tpl->copy_template = preg_replace( "#\\[not-catlist=(.+?)\\](.*?)\\[/not-catlist\\]#ies", "check_category('\\1', '\\2', '{$c_list}', false)", $tpl->copy_template );
254.    }
 
User supplied input passed through the $_REQUEST['catlist'] parameter is not properly
sanitized before being used in a preg_replace() call with the e modifier at lines 249 and 253.
This can be exploited to inject and execute arbitrary PHP code. Successful exploitation of
this vulnerability requires a template which contains a “catlist” (or a “not-catlist”) tag.
 
 
[-] Solution:
 
Apply the vendor patch: http://dleviet.com/dle/bug-fix/3281-security-patches-for-dle-97.html
 
 
[-] Disclosure Timeline:
 
[16/01/2013] - Vendor notified
[19/01/2013] - Vendor patch released
[20/01/2013] - CVE number requested
[21/01/2013] - CVE number assigned
[28/01/2013] - Public disclosure
 
 
[-] CVE Reference:
 
The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2013-1412 to this vulnerability.
 
 
[-] Credits:
 
Vulnerability discovered by Egidio Romano.

#  0day.today [2018-01-05]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation