System Security Enhancement (SSE) SSE072C - 30-AUG-2001 NOTE: This patch supersedes SSE072B. It should be installed on --any system with SSE072B or SSE072 already applied, unless that system is a 5.0.6 system with RS506A applied --any system running a release of OpenServer 5 up to and including 5.0.6, which does not have SSE072B or SSE072 already applied Problem: Buffer overflows have been found in the following SCO OpenServer 5 utilities: /usr/bin/accept /usr/bin/cancel /usr/mmdf/bin/deliver /usr/bin/disable /usr/bin/enable /usr/lib/libcurses.a /usr/bin/lp /usr/lib/lpadmin /usr/lib/lpfilter /usr/lib/lpforms /usr/lib/lpmove /usr/lib/lpshut /usr/bin/lpstat /usr/lib/lpusers /usr/bin/recon /usr/bin/reject /usr/bin/rmail /usr/lib/sendmail /usr/bin/tput NOTE: the accept, reject, enable, and disable commands are symbolically linked to the same binary. Running any of the above utilities with a very large argument can result in a core dump. For example: /usr/bin/recon -T `perl -e 'print "A" x 3000'` Patch: This patch is applicable to all releases of OpenServer 5 up to and including 5.0.6. Removal of previous versions of this patch (SSE072B and SSE072) before installation of SSE072C is not necessary. However, there is no need to install SSE072C on a system which has RS506A installed _AND_ which already has either SSE072B or SSE072 installed. This patch contains replacements for all binaries listed above. NOTE: The patched /usr/lib/sendmail furnished with SSE072C (and also SSE072 and SSE072B) is only for the version that is installed on a system which is using MMDF. If your system is using Sendmail, the installed /usr/lib/sendmail should not be replaced by the SSE072C version. The installation procedure below, however, does not distinguish between the Sendmail and MMDF versions of this binary, and simply replaces whatever binary is there. To work around this problem, if you are actually using Sendmail, then first copy the original /usr/lib/sendmail (or retrieve it from /opt/K/SCO/sse/sse072c, if you have installed SSE072C) and replace, with this copy, the SSE072C version of /usr/lib/sendmail after you have installed the patch. NOTE: In previous versions of this patch, the replacement /usr/bin/tput was not compatible with pre-5.0.6 releases of OpenServer 5--the error "dynamic linker: tput: symbol not found: strlcpy" was obtained, and the user would not be prompted for, and would not be able to set, the TERM type for the session. Numerous other binaries furnished with these previous versions can also exhibit similar problems. Installation of SSE072C will fix these problems. There is no need to remove a previously installed version before installing SSE072C. Installation: 1. We recommend you drop into single user mode to install this SSE (though this is only enforced if the installation script detects that /usr/lib/libc.so.1 will be replaced during install). 2. Uncompress and extract the SSE into a temporary directory of the server (eg. /tmp/sse072c). # uncompress sse072c.tar.Z OR # bunzip2 sse072c.tar.bz2 # tar xvf sse072c.tar 3. Execute the install script. Follow the instructions at the prompt. # ./install-sse072c.sh Note: "Warning" messages simply explain that because a specific file was not found on the current server, it was not replaced. If a system has custom binaries or paths, this patch may not succeed. 4. Clean up. A backup of the orginal binaries will be saved in: /opt/K/SCO/sse/sse072c The following files will be left over after patch installation and can be removed: ./install-sse072c.sh ./sse072c.files.tar The following files will be left over after patch installation and can be moved to an archival directory in case the patches are needed again: ./sse072c.tar ./sse072c.doc Checksums: `sum -lr ./sse072c.files.tar`: 3608825831 4501 MD5 checksum: 267f686e7620286fef8d7790aaaa556c `sum -lr ./sse072c.tar`: 2356036257 4527 MD5 checksum: a111a7eddaf340e2b6e167e04d852d5c References: Most of the vulnerabilities addressed in this patch were found by: Kevin Finisterre For more details, see the following BUGTRAQ archives: http://www.securityfocus.com/archive/1/171949 http://www.securityfocus.com/archive/1/171947 http://www.securityfocus.com/archive/1/171942 http://www.securityfocus.com/archive/1/171939 http://www.securityfocus.com/archive/1/171935 http://www.securityfocus.com/archive/1/171934 http://www.securityfocus.com/archive/1/171933 Disclaimer: SCO believes that this patch addresses the reported vulnerabilities. However, in order that it be released as soon as possible, this patch has not been fully tested or packaged to SCO's normal exacting standards. For that reason, this patch is not officially supported. Official supported and packaged fixes for current SCO products will be available in due course.