search menu icon-carat-right cmu-wordmark

CERT Coordination Center

UMN Gopher vulnerable to buffer overflow via overly long "+VIEWS:"

Vulnerability Note VU#619812

Original Release Date: 2005-09-02 | Last Revised: 2005-09-02

Overview

The University of Minnesota Gopher client may be vulnerable to a buffer overflow when handling overly long "+VIEWS:" reply messages sent from a malicious server.

Description

The UMN Gopher suite includes a Gopher client for navigating Gopherspace. However, the Gopher client may incorrectly handle a reply message from the server with overly long "+VIEWS:" content. The VIfromLine() function contains a boundary error when copying input to a buffer on the stack, which may cause a stack-based buffer overflow condition.

Successful exploitation may allow remote arbitrary code execution. If the user is running the gopher client with elevated privileges, the system may be compromised to the point of the attacking taking total control.

The Gopher protocol is generally disused at present and is disabled or not included in many popular web browsers and operating systems. However, the UMN Gopher code may be present in other clients, and as such may be exploitable by clicking on a seemingly-benign web link on a modern web browser.

Impact

A remote unauthenticated attacker may be able to execute arbitrary code on the remote system by convincing the user to follow a gopher link.

Solution

Disable Gopher support
Unless a specific need is known for Gopher support in your web browser or operating system, either disable support in the application or remove the Gopher application(s) from the system. This will help to mitigate future attacks should the Gopher code in question not be updated in a timely fashion.

Only connect to trusted hosts
As a best practice, do not connect to Gopher hosts or follow web links you are unfamiliar with. This may not mitigate the vulnerability exposure completely as it is not possible to be certain a server has not been compromised.

Apply an update
Contact your vendor for updates, fixes, and workarounds.

Vendor Information

619812
 

UMN Gopher Affected

Updated:  September 01, 2005

Status

Affected

Vendor Statement

We have not received a statement from the vendor.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

UMN Gopher is not actively developed at this time. Users are urged to find an alternative solution or discontinue use.

If you have feedback, comments, or additional information about this vulnerability, please send us email.


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Thanks to vade79 for reporting this vulnerability.

This document was written by Ken MacInnis.

Other Information

CVE IDs: None
Severity Metric: 1.27
Date Public: 2005-08-30
Date First Published: 2005-09-02
Date Last Updated: 2005-09-02 16:27 UTC
Document Revision: 7

Sponsored by CISA.