Home page logo

bugtraq logo Bugtraq mailing list archives

BearShare Directory Traversal Issue Resurfaces
From: "Aviram Jenik" <aviram () beyondsecurity com>
Date: Thu, 3 Oct 2002 22:12:31 +0200

  BearShare Directory Traversal Issue Resurfaces

Article reference:


A while back BearShare 2.2.2 was  
<http://www.securiteam.com/windowsntfocus/5SP0P2K40U.html> reported to
have a directory traversal vulnerability in it. This issue was fixed by
the company, now a different variant of the same issue seems to have
resurfaced, allowing a remote attacker to view any file he desires by
issuing a specially crafted HTTP request.

Despite a correction attempt in part of the vendor, the updated version
is still vulnerable.


Vulnerable systems:
 * BearShare version 4.0.5
 * BearShare version 4.0.6 (second variant)

Vendor response:
"The fix for the directory traversal issue you reported to us has been
released as part of BearShare 4.0.6. All users will be notified by the
application itself that a new version is available."

Users that do not upgrade are recommend to deactivate the built in
personal web server by choosing Setup->Uploads and un-checking the
"Activate the built in personal web server" check box.

Example (first variant):
Issuing the following request:

Would translate into:\..\..\..\windows\win.ini

Returning the win.ini file.

Second variant:
Following the release of BearShare version 4.0.6, Gluck has informed us
that this version is still vulnerable to a simple variant of the attack
which indicates bearshare has not done a good job of fixing the problem.
This time issuing the following request would work:

The information has been provided by  <mailto:gluck () securedream net>
and  <mailto:mario () freepeers com> Mario Solares.

Aviram Jenik
Beyond Security Ltd.

Know that you're safe:

  By Date           By Thread  

Current thread:
  • BearShare Directory Traversal Issue Resurfaces Aviram Jenik (Oct 04)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]