[UNIX] Dangerous Temp File Creation During Netscape 6 Installation

From: support@securiteam.com
Date: 09/01/01


From: support@securiteam.com
To: list@securiteam.com
Subject: [UNIX] Dangerous Temp File Creation During Netscape 6 Installation
Message-Id: <20010901171822.21A57138BF@mail.der-keiler.de>
Date: Sat,  1 Sep 2001 19:18:22 +0200 (CEST)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Dangerous Temp File Creation During Netscape 6 Installation
------------------------------------------------------------------------

SUMMARY

A security flaw in the way Netscape 6 installs on UNIX machines allows
local users to overwrite any other system file whenever the installation
process is done by the root user.

DETAILS

Vulnerable systems:
Netscape version 6.01a (Solaris)

During installation of Netscape 6.01a for Solaris 2.7/8 Sparc, the file
/tmp/admin.3842 is created with mode 644. If this package is installed by
root in multi-user mode, a malicious user could use this to overwrite
system files etc.

Here is the dangerous code:

# grep tmp ns6install
cat >/tmp/admin.$$ <<EOF
                        /usr/sbin/pkgrm -n -a /tmp/admin.$$ ${pkg}.* 2>&1
        /usr/sbin/pkgadd -n -a /tmp/admin.$$ -d `pwd` $pkg 2>&1
#

Workaround:
A temporary workaround would be to shut the system down into single user
mode, clean out /tmp and then install.

ADDITIONAL INFORMATION

The information has been provided by <mailto:lwc@Vapid.dhs.org> Larry W.
Cashdollar.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • Re: lighting---hacked!
    ... the only possible security measure one might take. ... I made to turn off ipchains which we have only been running for about ... Take, in particular, the installation of ipchains, which is what ... >From the GUI interface and what documentation I had ...
    (comp.os.linux.security)
  • Re: Recent Zone Alarm changes
    ... it's possible it is a different server. ... receive and send e-mail on all three of my active addresses in Netscape ... still can't browse when security is on "High" -- even with both ... And I've tried calling ATTBI support, ...
    (comp.security.firewalls)
  • Re: cannot set custom security level with XPsp2
    ... The installation of SP2 can detect some types of scumware that had been able ... I believe that SP2 will only allow you to set the security no lower ... Error Message When You Browse the Web: An Error Has Occurred in the Script ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • SSRT3521 rev.2 HP-UX OpenSSL CBC timing attack in SSL and TLS
    ... SECURITY BULLETIN: HPSBUX0303-248 ... The information in the following Security Bulletin should be ... Check for Apache Installation ...
    (comp.sys.hp.hpux)
  • SSRT3521 rev.2 HP-UX OpenSSL CBC timing attack in SSL and TLS
    ... SECURITY BULLETIN: HPSBUX0303-248 ... The information in the following Security Bulletin should be ... Check for Apache Installation ...
    (comp.security.misc)