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 AdvisorySubject: OpenServer: vi /tmp vulnerability
Advisory number: CSSA-2001-SCO.17
Issue date: 2001 September 19
Cross reference:
___________________________________________________________________________1. Problem DescriptionThe vi editor uses temporary names that are predictable. A user could use this vulnerability to write arbitrary files.
2. Vulnerable VersionsOperating System Version Affected Files
------------------------------------------------------------------
OpenServer All /usr/bin/{ex,vi,edit,vedit,view}/usr/lib/expreserve
/usr/lib/exrecover3. WorkaroundNone.4. OpenServer4.1 Location of Fixed Binariesftp://stage.sco.com/pub/security/openserver/CSSA-2001-SCO.17/4.2 Verificationmd5 checksums:e82e73b8fa21426c19d82fb9cd2988e1 usr.bin.vi.tar.Zmd5 is available for download from:ftp://stage.sco.com/pub/security/tools/4.3 Installing Fixed BinariesUpgrade 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.tar5. ReferencesThis and other advisories are located at:
[link no longer available]This advisory addresses SCO Security internal incident sr847935.
6. DisclaimerSCO, 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.
___________________________________________________________________________