J-Security Center

Title: Gnut Gnutella Client Arbitrary Script Code Execution Vulnerability

Severity: HIGH

Description:

Gnut is a free, open-source console-based Gnutella file-sharing client for Microsoft Windows and Linux systems.

A problem exists with Gnut's web interface. Webfrontend allows users to perform searches, but when the results of a search are returned the interface will not strip HTML tags from filenames. An attacker could exploit this issue by embedding script code in a filename. Webfrontend is often viewed on "localhost", so therefore the malicious script code may also be executed in the system context rather than Internet context, circumventing the browser-based zone security settings.

This is an example of a filename that will display an alert when it comes up in a search query:

exam<script>alert!</script>ple.mp3

This issue may allow the attacker to gain unauthorized access to resources on the system of the Gnut user.

Affected Products:

  • Robert Munafo Gnut 0.4.20
  • Robert Munafo Gnut 0.4.21
  • Robert Munafo Gnut 0.4.22
  • Robert Munafo Gnut 0.4.23
  • Robert Munafo Gnut 0.4.24
  • Robert Munafo Gnut 0.4.25
  • Robert Munafo Gnut 0.4.26
  • Robert Munafo Gnut 0.4.27

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.