[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: Can extra processing threads help in this case?
    ... computers installed in the White House. ... after the installation, hordes of NSA-types descended on the White House to track down the ... This is yet a different form of physical security: the early "smart cards" had encryption ... Bandwidth for connected servers, the path of the data, ...
    (microsoft.public.vc.mfc)
  • 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: Software Distribution Service 3
    ... to a checkpoint prior to that installation. ... to restore prior to the checkpoint before this Windows Update was applied I ... your best bet would be to open a free support incident. ... security updates. ...
    (microsoft.public.windowsupdate)
  • Macro security N Custom Maintenance wizard
    ... Then I try to figure out whether it is possible to enforce macro security ... Office Security Settings page of either the Custom Installation Wizard or the ... Custom Maintenance Wizard. ...
    (microsoft.public.office.misc)
  • 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)