Dedecms latest two vulnerabilities and repair methods

Source: Internet
Author: User

DedeCms is well known for its simplicity, practicality, and open source. DedeCms is the most well-known PHP open source website management system in China and the most popular php cms system, after more than two years of development, the current version has made great strides in terms of functionality and ease of use. The main target users of the DedeCms free version are locked in personal webmasters, the function is more focused on the construction of personal websites or small and medium-sized portals. Of course, there are also enterprise users and schools who are using the system. Based on the technical architecture of PHP + MySQL, DedeCms is fully open-source and powerful and stable technical architecture, So that you plan to build a small website, we still want to ensure that the system can be expanded at will after the website continues to grow. Dedecms latest injection dede patch vulnerability in July is a principle plus/guestbook. inc. php require (dirname (_ FILE __). '/.. /.. /include/common. inc. php '); require_once (DEDEINC. "/filter. inc. php "); plus/guestbook. inc. php require_once (dirname (_ FILE __). '/guestbook. inc. php ');............ $ Query = "insert into 'dede _ guestbook '(title, tid, mid, uname, email, homepage, qq, face, msg, ip, dtime, ischeck) VALUES ('$ title',' $ tid', '{$ g_mid}', '$ uname',' $ email ',' $ homepage', '$ qq ', '$ img', '$ msg', '$ ip',' $ dtime', '$ needCheck'); '; "; copy the code $ catid variable and $ typeid variable without initialization. Plus/bookfeedback. php. require_once (dirname (_ FILE __). "/.. /include/common. inc. php "); require_once (DEDEINC. "/filter. inc. php "); require_once (DEDEINC. "/channelunit. func. php ");.............. // Save the comment content

If ($ comtype = 'comments') {$ arctitle = addslashes ($ arcRow ['artle tle']); $ arctitle = $ arcRow ['arctitle']; if ($ msg! = ") {$ Inquery =" insert into 'dede _ bookfeedback' ('aid ', 'catid', 'username', 'artle TLE', 'IP', 'ischeck ', 'dtime', 'mid ', 'bad', 'good', 'ftype', 'face', 'msg') VALUES ('$ aid', '$ catid ', '$ username',' $ bookname', '$ ip',' $ ischeck', '$ dtime',' {$ hour _ml-> M_ID} ', '0 ′, '0', '$ feedbacktype',' $ face', '$ msg'); "; $ rs = $ dsql-> ExecuteNoneQuery ($ inquery); if (! $ Rs) {echo $ dsql-> GetError (); exit () ;}}// reference reply

Elseif ($ comtype = 'reply') {$ row = $ dsql-> GetOne ("Select * from 'dede _ bookfeedback' where id = '$ fid '"); $ arctitle = $ row ['artle tle']; $ aid = $ row ['aid ']; $ msg = $ quotemsg. $ msg; $ msg = HtmlReplace ($ msg, 2); $ inquery = "insert into 'dede _ bookfeedback' ('aid ', 'typeid', 'username ', 'artitle', 'IP', 'ischeck', 'dtime', 'mid, 'bad', 'good', 'ftype', 'face', 'msg ') VALUES ('$ aid', '$ typeid',' $ username', '$ Artle TLE ', '$ Ip',' $ ischeck', '$ dtime',' {$ cfg_ml-> M_ID} ', '0', '0',' $ feedbacktype ', '$ face',' $ msg ') "; $ dsql-> ExecuteNoneQuery ($ inquery);} $ img variable is not initialized.Solution:

Wait for the official patch.

Related Article

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.