IRIX cgi-bin wrap Vulnerability

BID:373

Info

IRIX cgi-bin wrap Vulnerability

Bugtraq ID: 373
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Apr 19 1997 12:00AM
Updated: Apr 19 1997 12:00AM
Credit: This vulnerability was first reported to the Bugtraq mailing list by J.A. Gutierrez <[email protected]> on April 29, 1997
Vulnerable: SGI IRIX 6.2
Not Vulnerable:

Discussion

IRIX cgi-bin wrap Vulnerability

A vulnerability exists in the cgi-bin program 'wrap', as included with Irix 6.2 from SGI. A failure to validate input results in a vulnerability that allows any remote attacker to view the contents of any world readable directory remotely. This can be used to gain information that may be helpful in carrying out other attacks.

Exploit / POC

IRIX cgi-bin wrap Vulnerability

http://sgi.victim/cgi-bin/wrap?/../../../../../etc

Solution / Fix

IRIX cgi-bin wrap Vulnerability

Solution:
A suitable patch was included with the exploit when it was reported on the Bugtraq mailing list.
*** /var/www/cgi-bin/wrap Sat Apr 19 23:08:03 1997
--- /var/www/cgi-bin/wrap.O Sat Apr 19 23:07:44 1997
***************
*** 66,74 ****
$doc = $ROOT.$PATH ;

&DefaultMesg if ! defined $PATH || $PATH eq "" ; # Get a base listing =)
-
- $_ = $PATH;
-
&ErrBadPath unless &ValidPath ; # Check for server spoofing
&ErrBadPath unless -e $doc ; # Check to see it exists
&HandleDownload if -f $doc ; # Do the right thing
--- 66,71 ----

Please go to SGI support at http://support.sgi.com for official patches from Silicon Graphics for this any other vulnerabilities.

References

IRIX cgi-bin wrap Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report