Technical article 115392

What is CSSA-2001-SCO.17, concerning "vi /tmp vulnerability"?

OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

The vi editor uses temporary names that are predictable. A user could use this vulnerability to write arbitrary files.

Solution

          Please see the advisory below for details.
___________________________________________________________________________
SCO, Inc. Security Advisory
Subject:                OpenServer: vi /tmp vulnerability
Advisory number:        CSSA-2001-SCO.17
Issue date:             2001 September 19
Cross reference:
___________________________________________________________________________
1. Problem Description

The vi editor uses temporary names that are predictable. A user could use this vulnerability to write arbitrary files.

2. Vulnerable Versions
Operating System        Version         Affected Files
------------------------------------------------------------------
OpenServer              All             /usr/bin/{ex,vi,edit,vedit,view}
/usr/lib/expreserve
/usr/lib/exrecover
3. Workaround
None.
4. OpenServer
4.1 Location of Fixed Binaries
ftp://stage.sco.com/pub/security/openserver/CSSA-2001-SCO.17/
4.2 Verification
md5 checksums:
e82e73b8fa21426c19d82fb9cd2988e1        usr.bin.vi.tar.Z
md5 is available for download from:
ftp://stage.sco.com/pub/security/tools/
4.3 Installing Fixed Binaries

Upgrade the affected binaries with the following commands:

# cp /usr/bin/ex /usr/bin/ex-
# cp /usr/lib/expreserve /usr/lib/expreserve-
# cp /usr/lib/exrecover /usr/lib/exrecover-
# uncompress /tmp/usr.bin.vi.tar.Z
# cd /
# tar xvf /tmp/usr.bin.vi.tar
5. References

This and other advisories are located at:

[link no longer available]

This advisory addresses SCO Security internal incident sr847935.

6. Disclaimer

SCO, Inc. is not responsible for the misuse of any of the information we provide on our website and/or through our security advisories. Our advisories are a service to our customers intended to promote secure installation and use of SCO products.

7. Acknowledgements
        SCO wishes to thank KF <dotslash@snosoft.com>
        for discovering and reporting this problem.
___________________________________________________________________________

From the Xinuos technical article database, record 115392. Reproduced with permission. The original is at www.sco.com/ta/115392, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.