# This script was automatically generated from the dsa-249
# Debian Security Advisory
# It is released under the Nessus Script Licence.
# Advisory is copyright 1997-2004 Software in the Public Interest, Inc.
# See http://www.debian.org/license
# DSA2nasl Convertor is copyright 2004 Michel Arboi

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

desc = '
Hironori Sakamoto, one of the w3m developers, found two security
vulnerabilities in w3m and associated programs.  The w3m browser does
not properly escape HTML tags in frame contents and img alt
attributes.  A malicious HTML frame or img alt attribute may deceive a
user to send their local cookies which are used for configuration.  The
information is not leaked automatically, though.
For the stable distribution (woody) these problems have been fixed in
version 0.3.p23.3-1.5.  Please note that the update also contains an
important patch to make the program work on the powerpc platform again.
The old stable distribution (potato) is not affected by these
problems.
For the unstable distribution (sid) these problems have been fixed in
version 0.3.p24.17-3 and later.
We recommend that you upgrade your w3mmee packages.


Solution : http://www.debian.org/security/2003/dsa-249
Risk factor : High';

if (description) {
 script_id(15086);
 script_version("$Revision: 1.5 $");
 script_xref(name: "DSA", value: "249");
 script_bugtraq_id(6793);
 script_cve_id("CAN-2002-1335", "CVE-2002-1348");

 script_description(english: desc);
 script_copyright(english: "This script is (C) 2004 Michel Arboi");
 script_name(english: "[DSA249] DSA-249-1 w3mmee");
 script_category(ACT_GATHER_INFO);
 script_family(english: "Debian Local Security Checks");
 script_dependencies("ssh_get_info.nasl");
 script_require_keys("Host/Debian/dpkg-l");
 script_summary(english: "DSA-249-1 w3mmee");
 exit(0);
}

include("debian_package.inc");

w = 0;
if (deb_check(prefix: 'w3mmee', release: '3.0', reference: '0.3.p23.3-1.5')) {
 w ++;
 if (report_verbosity > 0) desc = strcat(desc, '\nThe package w3mmee is vulnerable in Debian 3.0.\nUpgrade to w3mmee_0.3.p23.3-1.5\n');
}
if (deb_check(prefix: 'w3mmee-img', release: '3.0', reference: '0.3.p23.3-1.5')) {
 w ++;
 if (report_verbosity > 0) desc = strcat(desc, '\nThe package w3mmee-img is vulnerable in Debian 3.0.\nUpgrade to w3mmee-img_0.3.p23.3-1.5\n');
}
if (deb_check(prefix: 'w3mmee', release: '3.2', reference: '0.3.p24')) {
 w ++;
 if (report_verbosity > 0) desc = strcat(desc, '\nThe package w3mmee is vulnerable in Debian sid.\nUpgrade to w3mmee_0.3.p24\n');
}
if (deb_check(prefix: 'w3mmee', release: '3.0', reference: '0.3.p23.3-1.5')) {
 w ++;
 if (report_verbosity > 0) desc = strcat(desc, '\nThe package w3mmee is vulnerable in Debian woody.\nUpgrade to w3mmee_0.3.p23.3-1.5\n');
}
if (w) { security_hole(port: 0, data: desc); }
