System Security Enhancement (SSE) 022 - 4th March 1999 Problem: The enclosed System Security Enhancement (SSE) SSE022, installs a patched version of sendmail. Sendmail version 8.8.8 (on OpenServer) and 8.8.7 (on UnixWare 7.0.0 and 7.0.1) are vulnerable to a known denial of service attack concerning header information in messages. This patch addresses this problem. Patch: A replacement sendmail (8.8.7) binary and m4 prototype file is provided for UnixWare 7.0.0 and UnixWare 7.0.1 systems. A custom installable is provided for SCO OpenServer Operating System Releases 5.0.0, 5.0.2, 5.0.4 and 5.0.5, as well as SCO Internet FastStart Releases 1.0.0 and 1.1.0, running SCO's distribution of Sendmail. Note that for SCO OpenServer 5.0.0,5.0.2,5.0.4 and 5.0.5, the default mail system is MMDF (Multi-Channel Memorandum Distribution Facility). SCO Internet FastStart uses only sendmail. Hence, this SSE is applicable to all SCO Internet FastStart systems. However, this SSE should only be installed on SCO OpenServer 5.0.0,5.0.2,5.0.4 and 5.0.5 if you have specifically chosen sendmail as the mail system during or after the installation process. This patched release of sendmail allows you to limit the number of headers allowed on a message, and the maximum line length for a header. This is controlled by the "MaxHeaderLines" option in /usr/lib/sendmail.cf on OpenServer systems or /etc/sendmail.cf on UnixWare systems. The maximum number of header lines allowable in a message is by default 1000. The maximum length of a header line is by default 990 characters. If you wish to modify this, please add a line in the following format to your sendmail.cf file: O MaxHeaderLines=maxlines/maxlen This line is not needed to specify the default case of 1000/990. If you wish to specify a maximum of 100 header lines and a maximum header line length of 1024 characters, the entry in sendmail.cf would look like the following: O MaxHeaderLines=100/1024 Be sure to restart sendmail after making such a change. Preparation: 1. Create a temporary directory, and copy sse022 into it: # mkdir /tmp/sse022 # cp sse022.tar /tmp/sse022 2. Extract files from the tar file: # cd /tmp/sse022 # tar xvf sse022.tar Installation (For UnixWare 7.0.0, 7.0.1): 1. Disable the existing binary and move it aside. # /etc/mail/sendmailrc stop # mv /usr/lib/sendmail /usr/lib/sendmail.old # chmod 000 /usr/lib/sendmail.old # mv /etc/mail/cf/m4/proto.m4 /etc/mail/cf/m4/proto.m4.old # chmod 000 /etc/mail/cf/m4/proto.m4.old 2. Move the correct replacement binaries into place: # mv sendmail /usr/lib/sendmail # chown root:bin /usr/lib/sendmail # chmod 4555 /usr/lib/sendmail # mv proto.m4 /etc/mail/cf/m4/proto.m4 # chown bin:bin /etc/mail/cf/m4/proto.m4 # chmod 644 /etc/mail/cf/m4/proto.m4 # /etc/mail/sendmailrc start 3. The replacement binary is now installed - it is not necessary to reboot your system. Installation (For OpenServer): 1. Execute the command: # scoadmin software or double click on the Software Manager icon on the desktop. 2. Pull down the "Software" menu and select "Install New". 3. You will see the "What host (machine) do you want to install from?" menu. Be sure the local machine name is selected and choose "Continue". 4. You will see the "Select Media" menu. Pull down the "Media Device" menu and select "Media Images", then choose "Continue". You will then see the "Enter Image Directory" menu. Enter /tmp and choose "OK". 5. You will see the "Install Preference" menu. Choose "Full". 6. You will see the "Upgrading Components Warning" menu. Choose "Continue". Note that the upgrade does not change your current Sendmail configuration files. 7. You will see the "Install Progress" window. If the supplement loads successfully, you will see a "Message" window that states "Installation Complete". Choose "OK". You are then returned to the main Software Manager window. Sendmail will now restart with the new version of Sendmail active. You will see "SCO SendMail (ver 8.8.8d)" in the installed software list. 8. To exit the Software Manager now, select "Exit" from the "Host" menu. To Remove the OpenServer Supplement: 1. Log in as root. 2. Execute the command: # scoadmin software or double click on the Software Manager icon in the desktop. 3. Select "SCO SendMail (ver 8.8.8d)" 4. Pull down the "Software" menu and select "Remove Software". 5. You will see the "Confirm Selected Software" menu. Choose "Continue". 6. You will see the "Remove Software Progress" window. 7. If the supplement has been removed successfully, you will see "Software Removal Complete" message. Choose "OK" and you will be returned to the Software Manager's main menu. Exit the Software Manager by choosing "Exit" from the "Host" menu. At this point Sendmail will be removed and there will be no configured version of Sendmail on your system. Disclaimer: SCO believes that this patch addresses the reported vulnerability. 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.