DataLife Engine 9.7 (preview. php) PHP code injection

Source: Internet
Author: User

Title: DataLife Engine 9.7 (preview. php) PHP Code Injection Vulnerability software connection: http://dleviet.com/ Affected Version: 9.7 defect overview is located in/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. www.2cto.com 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: patch: http://dleviet.com/ Dle/bug-fix/3281-security-patches-for-dle-97.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.