YiDaCms v3.2 sql注入+逻辑错误
admin\CheckAdmin.asp
username = request.Cookies("username") password = request.Cookies("password") cookies_md5 = request.Cookies("cookies_md5") dim admin_name,admin_pass,admin_qx,admin_aqx set rs = server.createobject("adodb.recordset") sql="select * from shuaiweb_vipadministrator where username='"&username&"'" rs.open sql,dbok,1,1 admin_name = rs("username") admin_pass = rs("password") admin_qx = rs("wait_ader") admin_aqx = rs("wait_adyi") rs.Close set rs=nothing response.write sql if cookies_md5 <> left(MD5(username&password),10) then response.write "登录超时,请重新登录!" response.cookies("username") = "" response.cookies("password") = "" response.end end if 对于cookie的 username没有防范。 Powered by YidaCms! X3.2 |
-
上一篇: 安全测试-跨站脚本攻击(xss) - 网站安全 - 自学
下一篇: YouYaX_V5.66 SQL注入漏洞 - 网站安全 - 自学php
还没有人抢沙发呢~