Discuz v63 point mall plug-in SQL Injection Vulnerability

Source: Internet
Author: User

Today, the webscan security team intercepted a Discuz Forum v63 points mall plug-in injection vulnerability, which exists in the config of the plug-in. ini. function getGoods ($ id) {$ query = DB: query ('select * from '. DB: table ('v63 _ goods '). 'where' id' = '. $ id); // $ the id parameter is not filtered and directly imported into the SQL statement for execution $ goods = DB: fetch ($ query ); $ goods ['endtime2'] = date ('Y-m-d', $ goods ['endtime']); $ goods ['price2'] = $ goods ['price']; if ($ goods ['sort '] = 2) {$ goods ['endtime2'] = date ('Y-m-d H: I: s', $ goods ['endtime' ]); $ Query = DB: query ("select * from ". DB: table ('v63 _ pm '). "where gid = '$ goods [id] 'order by id desc"); $ last = DB: fetch ($ query); if (is_array ($ last )) {$ goods ['price'] = $ last ['chujia ']; $ goods ['uid'] = $ last ['uid']; $ goods ['username'] = $ last ['username']; $ goods ['ps'] = $ last; if (time () + 600> $ goods ['endtime']) {$ goods ['endtime'] = $ last [time] + 600; $ goods ['endtime2'] = date ('Y-m-d H: I: s', $ last [ti Me] + 600) ;}}return $ goods;} the vulnerability directly threatens the security of website data and website servers, this eventually leads to serious consequences such as "de-Database" and "Trojan". Because the plug-in is a plug-in released by netizens online and has been updated, there is no official patch for the time being, webmasters can use the following temporary solutions to fix vulnerabilities and avoid the risk of website intrusion. Modify the config. ini. 29 rows in the PHP File $ query = DB: query ('select * from '. DB: table ('v63 _ goods '). 'where' id' = '. $ id); change to $ query = DB: query ('select * from '. DB: table ('v63 _ goods '). 'where' id' = '. intval ($ id ));

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.