Technical article 126333

What is SCOSA-2006.7, concerning "Lynx Multiple Vulnerabilities"?

OpenServer 6.0.0OpenServer 5.0.7

Written

Problem

	Lynx NNTP Buffer Overflow Vulnerability:

Ulf Harnhammar has reported a vulnerability in Lynx, which can be exploited by malicious people to compromise a user's system.

The vulnerability is caused due to a boundary error in the "HTrjis()" function in the handling of article headers sent from NNTP (Network News Transfer Protocol) servers. This can be exploited to cause a stack-based buffer overflow by e.g. tricking a user into visiting a malicious web site which redirects to a malicious NNTP server via the "nntp:" URI handler.

Successful exploitation allows execution of arbitrary code.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2005-3120 to this issue.

	Lynx Command Injection Vulnerability:
	Remote exploitation of a command injection vulnerability  could
	allow attackers to execute arbitrary commands with the
	privileges of the underlying user.

The problem specifically exists within the feature to execute local cgi-bin programs via the "lynxcgi:" URI handler. The handler is generally intended to be restricted to a specific directory or program(s). However, due to a configuration error on multiple platforms, the default settings allow for arbitrary websites to specify commands to run as the user running Lynx.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2005-2929 to this issue.

Solution

______________________________________________________________________________
SCO Security Advisory
Subject:                OpenServer 5.0.7 OpenServer 6.0.0 : Lynx Multiple
                        Vulnerabilities
Advisory number:        SCOSA-2006.7
Issue date:             2006 January 10
Cross reference:        fz533159 fz533314
                        CVE-2005-2929 CVE-2005-3120
______________________________________________________________________________
1. Problem Description
Lynx NNTP Buffer Overflow Vulnerability:

Ulf Harnhammar has reported a vulnerability in Lynx, which can be exploited by malicious people to compromise a user's system.

The vulnerability is caused due to a boundary error in the "HTrjis()" function in the handling of article headers sent from NNTP (Network News Transfer Protocol) servers. This can be exploited to cause a stack-based buffer overflow by e.g. tricking a user into visiting a malicious web site which redirects to a malicious NNTP server via the "nntp:" URI handler.

Successful exploitation allows execution of arbitrary code.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2005-3120 to this issue.

Lynx Command Injection Vulnerability:
Remote exploitation of a command injection vulnerability  could
allow attackers to execute arbitrary commands with the
privileges of the underlying user.

The problem specifically exists within the feature to execute local cgi-bin programs via the "lynxcgi:" URI handler. The handler is generally intended to be restricted to a specific directory or program(s). However, due to a configuration error on multiple platforms, the default settings allow for arbitrary websites to specify commands to run as the user running Lynx.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2005-2929 to this issue.

2. Vulnerable Supported Versions
System                          Binaries
----------------------------------------------------------------------
OpenServer 5.0.7                /usr/bin/lynx
OpenServer 6.0.0                /usr/bin/lynx
3. Solution

The proper solution is to install the latest packages.

4. OpenServer 5.0.7
4.1 Location of Fixed Binaries
https://ftp.scoexpert.com/updates/OpenServer/SCOSA-2006.7
4.2 Verification
MD5 (p533159.507_vol.tar) = f86e8cb4941d567eedfd0ce761f890b3
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 p533159.507_vol.tar file to a directory.

2) Extract VOL* files.
# tar xvf p533159.507_vol.tar

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

5. OpenServer 6.0.0
5.1 Location of Fixed Binaries
https://ftp.scoexpert.com/updates/OpenServer/SCOSA-2006.7
5.2 Verification
MD5 (p533159.600_vol.tar) = 8819b849a7463563a50e9575beb15755
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 p533159.600_vol.tar file to a directory.

2) Extract VOL* files.
# tar xvf p533159.600_vol.tar

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

6. References

Specific references for this advisory: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-2929 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3120 http://lists.grok.org.uk/pipermail/full-disclosure/2005-October/038019.html http://secunia.com/advisories/17216 http://securitytracker.com/id?1015065 http://securitytracker.com/id?1015195 http://www.idefense.com/application/poi/display?id=338&type=vulnerabilities [SecurityFocus — site closed]

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 fz533159 fz533314.

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

SCO would like to thank Ulf Harnhammar for reporting the NNTP buffer overflow vulnerability.

______________________________________________________________________________

From the Xinuos technical article database, record 126333. Reproduced with permission. The original is at www.sco.com/ta/126333, 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.