tmpwatch任意命令可执行漏洞发布时间:2000-10-13 更新时间:2000-09-13 严重程度:高 威胁程度:普通用户访问权限 错误类型:输入验证错误 利用方式:服务器模式 受影响系统 RedHat Linux 7.0详细描述 tmpwatch是一个自动清理临时文件的工具,tmpwatch中的fuser选项没有正确 处理参数到system()库调用,如果攻击者建立一个包含SHELL META字符的文件 名,并使用-fuser来运行这个文件,攻击者就可以运行任何命令。 测试代码 可以下载如下测试代码: http://www.securityfocus.com/data/vulnerabilities/exploits/tmpwatch.c 解决方案 不要使用-fuser和 -s选项。 后者下载补丁程序:Red Hat Linux 6.2: alpha: ftp://updates.redhat.com/6.2/alpha/tmpwatch-2.6.2-1.6.2.alpha.rpm sparc: ftp://updates.redhat.com/6.2/sparc/tmpwatch-2.6.2-1.6.2.sparc.rpm i386: ftp://updates.redhat.com/6.2/i386/tmpwatch-2.6.2-1.6.2.i386.rpm sources: ftp://updates.redhat.com/6.2/SRPMS/tmpwatch-2.6.2-1.6.2.src.rpm Red Hat Linux 7.0: i386: ftp://updates.redhat.com/7.0/i386/tmpwatch-2.6.2-1.7.i386.rpm sources: ftp://updates.redhat.com/7.0/SRPMS/tmpwatch-2.6.2-1.7.src.rpm Immunix: Immunix OS 6.2 (StackGuarded versions of the RedHat packages.) They can be found at: http://www.immunix.org:8080/ImmunixOS/6.2/updates/RPMS/tmpwatch-2.6.2-1.6.2_StackGuard.i386.rpm or http://www.immunix.org:8080/ImmunixOS/6.2/updates/SRPMS/tmpwatch-2.6.2-1.6.2_StackGuard.src.rpm Trustix: All users of TSL should upgrade to the new rpm: tmpwatch-2.6.2-1tr.i586.rpm (MD5sum: 3200b3812bfe6e87f326e240fed0686a) This file can be found at: http://www.trustix.net/download/Trustix/updates/1.1/RPMS/ or ftp://ftp.trustix.com/pub/Trustix/updates/1.1/RPMS/ 相关信息 |