Technical article 125812

What is SCOSA-2004.3, concerning "Xsco contains a buffer overflow that could be exploited to gain root privileges."?

OpenServer 5.0.6OpenServer 5.0.7

Written

Problem

A buffer overflow in ReadFontAlias from dirfile.c of Xsco may allow local users and remote attackers to execute arbitrary code via a font alias file with a long token.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0083 to this issue.

Buffer overflow in the ReadFontAlias function in Xsco, when using the CopyISOLatin1Lowered function, may allow local or remote authenticated users to execute arbitrary code via a malformed entry in the font alias file.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0084 to this issue.

Multiple flaws in reading font files.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0106 to these issues.

Solution

______________________________________________________________________________
SCO Security Advisory
Subject:                OpenServer 5.0.6 OpenServer 5.0.7 : Xsco contains a
buffer overflow that could be exploited to gain root privileges.
Advisory number:        SCOSA-2004.3
Issue date:             2004 July 29
Cross reference:        sr889371 fz528866 erg712547 CAN-2004-0083 CAN-2004-
0084 CAN-2004-0106
______________________________________________________________________________
1. Problem Description

A buffer overflow in ReadFontAlias from dirfile.c of Xsco may allow local users and remote attackers to execute arbitrary code via a font alias file with a long token.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0083 to this issue.

Buffer overflow in the ReadFontAlias function in Xsco, when using the CopyISOLatin1Lowered function, may allow local or remote authenticated users to execute arbitrary code via a malformed entry in the font alias file.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0084 to this issue.

Multiple flaws in reading font files.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0106 to these issues.

2. Vulnerable Supported Versions
System                          Binaries
----------------------------------------------------------------------
OpenServer 5.0.6                /usr/bin/X11/Xsco
OpenServer 5.0.7                /usr/bin/X11/Xsco
3. Solution

The proper solution is to install the latest packages.

4. OpenServer 5.0.6
4.1 Location of Fixed Binaries
https://ftp.scoexpert.com/updates/OpenServer/SCOSA-2004.3
4.2 Verification
MD5 (VOL.000.000) = 7341b2e45bfc55b838009d8a1c49d000
md5 is available for download from
        https://ftp.scoexpert.com/security/tools
4.3 Installing Fixed Binaries

Upgrade the affected binaries with the following sequence:

1) Download the VOL* files to a directory

2) Run the custom command, specify an install from media images, and specify the directory as the location of the images.

5. OpenServer 5.0.7
5.1 Location of Fixed Binaries
https://ftp.scoexpert.com/updates/OpenServer/SCOSA-2004.3
The fixes are also available in SCO OpenServer Release 5.0.7
Maintenance Pack 3 or later.  See
http://www.sco.com/support/update/download/osr507list.html.
5.2 Verification
MD5 (VOL.000.000) = 7341b2e45bfc55b838009d8a1c49d000
MD5 (507mp3_vol.tar) = c927aefdd50b50aca5d29e08c1562aec
md5 is available for download from
        https://ftp.scoexpert.com/security/tools
5.3 Installing Fixed Binaries

Upgrade the affected binaries with the following sequence:

1) Download the VOL* files to the /tmp directory

2) Run the custom command, specify an install from media images, and specify the /tmp directory as the location of the images.

Or see the Maintenance Pack 3 Release and Installation Notes at

https://ftp.scoexpert.com/openserver5/507/mp/mp3/osr507mp3.txt
6. References
Specific references for this advisory:
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0083
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0084
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0106
SCO security resources:
        http://www.sco.com/support/security/index.html
SCO security advisories via email:
        http://www.sco.com/support/forums/security.html

This security fix closes SCO incidents sr889371 fz528866 erg712547.

7. Disclaimer

SCO is not responsible for the misuse of any of the information we provide on this 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.

8. Acknowledgments
Greg MacManus (iDEFENSE Labs) is credited with the discovery
of this vulnerability.  Additionally David Dawes discovered
further flaws in reading font files.

From the Xinuos technical article database, record 125812. Reproduced with permission. The original is at www.sco.com/ta/125812, which is reachable but blocked from search engines.

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.