phpcms2008漏洞
下面是官方到目前为止还没有打补丁的几个漏洞
http://www.tmdsb.com/flash_upload.php?modelid=1
注入漏洞
<?php require dirname(__FILE__).'/include/common.inc.php'; if($PHPSESSID) { session_id($PHPSESSID); session_start(); } if($auth) set_cookie('auth', $auth); if(!get_cookie('cookietime') && $cookietime) set_cookie('cookietime', $cookietime); require_once 'admin/model_field.class.php'; $field = new model_field($modelid); $info = $field->get($fieldid);
问题就出在标红的。。跟进去看下
function __construct($modelid) { global $db; $this->db = &$db; $this->table = DB_PRE.'model_field'; echo($modelid); $model = $this->db->get_one("SELECT * FROM ".DB_PRE."model WHERE modelid=$modelid"); $this->modelid = $model['modelid']; $this->modelname = $model['name']; $this->fields = cache_read($modelid.'_fields.inc.php', CACHE_MODEL_PATH); $this->tablename = DB_PRE.'c_'.$model['tablename']; }
构造方法中调用了select...所以忘了过滤。。。
相关推荐
xiaoemo0 2020-08-09
重善奉行 2020-06-17
重善奉行 2020-06-16
lqadam 2020-06-04
csxiaoqiang 2020-06-03
zcy 2020-11-16
nodid 2020-10-29
VinFOSSIDce 2020-10-28
nodid 2020-10-28
关于学习本身 2020-09-24
网络菜市场 2020-09-23
机器之心 2020-09-22
cynthiachf 2020-09-18
Veechange 2020-09-01
zcc 2020-08-26
hjding 2020-08-25
simonzhao0 2020-08-17
shayuchaor 2020-08-17
智链ChainNova 2020-08-17