# This script was automatically generated from 
#  http://www.gentoo.org/security/en/glsa/glsa-200404-15.xml
# It is released under the Nessus Script Licence.
# The messages are release under the Creative Commons - Attribution /
# Share Alike license. See http://creativecommons.org/licenses/by-sa/2.0/
#
# Avisory is copyright 2001-2004 Gentoo Foundation, Inc.
# GLSA2nasl Convertor is copyright 2004 Michel Arboi

if (! defined_func('bn_random')) exit(0);

if (description)
{
 script_id(14480);
 script_version("$Revision: 1.1 $");
 script_xref(name: "GLSA", value: "200404-15");

 desc = 'The remote host is affected by the vulnerability described in GLSA-200404-15
(XChat 2.0.x SOCKS5 Vulnerability)


    The SOCKS 5 proxy code in XChat is vulnerable to a remote exploit. Users
    would have to be using XChat through a SOCKS 5 server, enable SOCKS 5
    traversal which is disabled by default and also connect to an attacker\'s
    custom proxy server.
  
Impact

    This vulnerability may allow an attacker to run arbitrary code within the
    context of the user ID of the XChat client.
  
Workaround

    A workaround is not currently known for this issue. All users are advised
    to upgrade to the latest version of the affected package.
  
References:
    http://mail.nl.linux.org/xchat-announce/2004-04/msg00000.html


Solution: 
    All XChat users should upgrade to the latest stable version:
    # emerge sync
    # emerge -pv ">=net-irc/xchat-2.0.8-r1"
    # emerge ">=net-irc/xchat-2.0.8-r1"
    Note that users of the gtk1 version of xchat (1.8.*) should upgrade to
    xchat-1.8.11-r1:
    # emerge sync
    # emerge -pv "=net-irc/xchat-1.8.11-r1"
    # emerge "=net-irc/xchat-1.8.11-r1"
  

Risk Factor : Low
';
 script_description(english: desc);
 script_copyright(english: "(C) 2004 Michel Arboi");
 script_name(english: "[GLSA-200404-15] XChat 2.0.x SOCKS5 Vulnerability");
 script_category(ACT_GATHER_INFO);
 script_family(english: "Gentoo Local Security Checks");
 script_dependencies("ssh_get_info.nasl");
 script_require_keys('Host/Gentoo/qpkg-list');
 script_summary(english: 'XChat 2.0.x SOCKS5 Vulnerability');
 exit(0);
}

include('qpkg.inc');
if (qpkg_check(package: "net-irc/xchat", unaffected: make_list("ge 2.0.8-r1"), vulnerable: make_list("lt 2.0.8-r1")
)) { security_warning(0); exit(0); }
