Vulnerabilities > CVE-2003-0416 - Cross-Site Scripting vulnerability in Bandmin 1.4

047910
CVSS 6.8 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
bandmin
nessus
exploit available

Summary

Cross-site scripting (XSS) vulnerability in index.cgi for Bandmin 1.4 allows remote attackers to insert arbitrary HTML or script via (1) the year parameter in a showmonth action, (2) the month parameter in a showmonth action, or (3) the host parameter in a showhost action.

Vulnerable Configurations

Part Description Count
Application
Bandmin
1

Exploit-Db

descriptionBandmin 1.4 Cross-Site Scripting Vulnerability. CVE-2003-0416. Webapps exploit for cgi platform
idEDB-ID:22669
last seen2016-02-02
modified2003-05-28
published2003-05-28
reportersilent needel
sourcehttps://www.exploit-db.com/download/22669/
titleBandmin 1.4 - Cross-Site Scripting Vulnerability

Nessus

NASL familyCGI abuses : XSS
NASL idBANDMIN_XSS.NASL
descriptionThe remote host is running the Bandmin CGI suite. There is a cross-site scripting issue in this suite that may allow an attacker to steal your users cookies. The flaw lies in the cgi bandwitdh/index.cgi
last seen2020-06-01
modified2020-06-02
plugin id11672
published2003-05-29
reporterThis script is Copyright (C) 2003-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/11672
titleBandmin 1.4 index.cgi Multiple Parameter XSS
code
#
# (C) Tenable Network Security, Inc.
#

#
# Date: 28 May 2003 16:38:40 -0000
# From: silent needel <[email protected]>
# To: [email protected]
# Subject: Bandmin 1.4 XSS Exploit



include("compat.inc");

if(description)
{
 script_id(11672);
 script_version ("1.27");
 script_cve_id("CVE-2003-0416");
 script_bugtraq_id(7729);

 script_name(english:"Bandmin 1.4 index.cgi Multiple Parameter XSS");

 script_set_attribute(attribute:"synopsis", value:
"The remote host contains a CGI script that is vulnerable to a
cross-site scripting issue." );
 script_set_attribute(attribute:"description", value:
"The remote host is running the Bandmin CGI suite. 

There is a cross-site scripting issue in this suite that may allow an
attacker to steal your users cookies. 

The flaw lies in the cgi bandwitdh/index.cgi" );
 script_set_attribute(attribute:"solution", value:
"None at this time.  You are advised to remove this CGI." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

 script_set_attribute(attribute:"plugin_publication_date", value: "2003/05/29");
 script_set_attribute(attribute:"vuln_publication_date", value: "2003/05/28");
 script_cvs_date("Date: 2018/06/27 18:42:24");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();


 script_summary(english:"Checks for Bandmin");
 script_category(ACT_ATTACK);
 script_copyright(english:"This script is Copyright (C) 2003-2018 Tenable Network Security, Inc.");
 script_family(english:"CGI abuses : XSS");
 script_dependencie("http_version.nasl", "no404.nasl", "cross_site_scripting.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 exit(0);
}

# The script code starts here
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80);

if(!get_port_state(port))exit(0);
if(get_kb_item(string("www/", port, "/generic_xss"))) exit(0);

foreach d (make_list(  cgi_dirs()))
{
 r = http_send_recv3(port: port, method: 'GET', 
 item:string(d, "/bandwidth/index.cgi?action=showmonth&year=<script>foo</script>&month=<script>foo</script>"));
 if (isnull(r)) exit(0);
 if(r[0] =~ "^HTTP/[0-9]\.[0-9] +200 " &&
    egrep(pattern:"<script>foo</script>", string: r[2])) {
 	security_warning(port);
	set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
	exit(0);
 }
}