5565 : MIMAnet viewsrc.cgi Arbitrary File Access
Printer | http://osvdb.org/5565 | Email This | Edit Vulnerability

Views This Week

1

Views All Time

31

Info

Last Modified

7 months ago

Percent Complete

100%

Disclosure

May 23, 2001

Discovery

May 01, 2001

Dates

Exploit

May 23, 2001

Solution

Unknown

Description

MIMAnet Source Viewer 2.0 contains a flaw that allows a remote attacker to read files outside of the web path. The issue is due to the viewsrc.cgi script not properly sanitizing user input, specifically traversal style attacks (../../) supplied via the 'loc' variable.

Classification

Location: Remote/Network Access Required
Attack Type: Information Disclosure, Input Manipulation
Impact: Loss of Confidentiality, Loss of Integrity
Exploit: Exploit Available
Disclosure: OSVDB Verified

Solution

Currently, there are no known workarounds or upgrades to correct this issue. However, Joe Testa has released a patch to address this vulnerability.

Apply the following patch to viewsrc.cgi:

53a54,56
> $FORM{'loc'} =~ s/\.\.//g;
> $FORM{'loc'} =~ s/\\//g;
> $FORM{'loc'} =~ s/\///g;
65c68
< open (INHTML, "$predo") or die &err_loc;
---
> open (INHTML, "<$predo") or die &err_loc;

This patch removes any '..', '/', or '\'s present in the $FORM{'loc'}
variable. It also makes the open() command safer by using the '<'
read-only specifier.

Products

MIMAnet
Watch-list
Source Viewer
Watch-list
2.0

References

Credit

  • Joe Testa - joetestaBrand New Doo Doohushmail.com - Personal page

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use