CSVForm (Perl CGI) 远程命令可执行漏洞发布时间:2001-12-12 更新时间:2001-12-12 严重程度:高 威胁程度:普通用户访问权限 错误类型:输入验证错误 利用方式:服务器模式 受影响系统 CSVForm.pl v0.1详细描述 CSVForm是设计用来增加记录到CSV数据库文件的CGI PERL脚本程序。CSV数据库文件使用html隐含的标签(tag)来选择,其中没有没有对传递给脚本的数据进行检查如: sub modify_CSV { if(open(CSV,$_[0])){ } else{ goto &produce_error( "Can't open CSV file.\n", "Please, check that you have provided the cgi script with correct CSV file", " path in the HTML form.\n" ); } 可以导致任意命令被执行: 测试代码 http://server/cgi-bin/csvform.pl?file=COMMAND_GOES_HERE%00| 解决方案 临时方法: 固定csv数据文件,或者控制用户输入 相关信息 jasong@home.com 参考:http://archives.neohapsis.com/archives/bugtraq/2001-12/0102.html 脚本主页:http://www.ezscripting.com/scripts/csvform.html |