Vulnerabilities > CVE-2006-2311 - Cross-Site Scripting vulnerability in BlueDragon Server Error Page

047910
CVSS 2.6 - LOW
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
high complexity
new-atlanta-communications
nessus

Summary

Cross-site scripting (XSS) vulnerability in BlueDragon Server and Server JX 6.2.1.286 for Windows allows remote attackers to inject arbitrary web script or HTML via the filename in a request to a (1) .cfm or (2) .cfml file, which reflects the result in the default error page.

Nessus

NASL familyCGI abuses
NASL idBLUEDRAGON_621.NASL
descriptionThe remote host is running BlueDragon Server / Server JX, Java-based servers for stand-alone deployment of CFML (ColdFusion Markup Language) pages. The version of BlueDragon Server / Server JX installed on the remote host fails to sanitize user-supplied input passed as part of the filename before using it in a dynamically-generated error page. An unauthenticated attacker can exploit this issue to execute arbitrary HTML and script code in a user
last seen2020-06-01
modified2020-06-02
plugin id21748
published2006-06-23
reporterThis script is Copyright (C) 2006-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/21748
titleBlueDragon 6.2.1 Multiple Remote Vulnerabilities (XSS, DoS)
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if (description)
{
  script_id(21748);
  script_version("1.26");

  script_cve_id("CVE-2006-2310", "CVE-2006-2311");
  script_bugtraq_id(18623, 18624);

  script_name(english:"BlueDragon 6.2.1 Multiple Remote Vulnerabilities (XSS, DoS)");
  script_summary(english:"Checks for an XSS flaw in BlueDragon Server");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote web server is prone to denial of service and cross-site
scripting attacks." );
 script_set_attribute(attribute:"description", value:
"The remote host is running BlueDragon Server / Server JX, Java-based
servers for stand-alone deployment of CFML (ColdFusion Markup
Language) pages. 

The version of BlueDragon Server / Server JX installed on the remote
host fails to sanitize user-supplied input passed as part of the
filename before using it in a dynamically-generated error page.  An
unauthenticated attacker can exploit this issue to execute arbitrary
HTML and script code in a user's browser within the context of the
affected application. 

In addition, the server reportedly stops responding when it tries to
handle a request containing an MS-DOS device name with the '.cfm'
extension." );
 # https://secuniaresearch.flexerasoftware.com/secunia_research/2006-18/advisory/
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?edca57c9");
 script_set_attribute(attribute:"solution", value:
"Unknown at this time." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
 script_set_attribute(attribute:"exploit_available", value:"true");
 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: "2006/06/23");
 script_set_attribute(attribute:"vuln_publication_date", value: "2006/06/23");
 script_cvs_date("Date: 2018/11/28 22:47:41");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:new_atlanta_communications:bluedragon_server");
script_end_attributes();

 
  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");
  script_copyright(english:"This script is Copyright (C) 2006-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_dependencies("http_version.nasl", "cross_site_scripting.nasl");
  script_require_ports("Services/www", 8080);

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("url_func.inc");


port = get_http_port(default:8080);
if (get_kb_item("www/"+port+"/generic_xss")) exit(0);

# Make sure the banner looks like BlueDragon.
banner = get_http_banner(port:port);
if (!banner || "BlueDragon" >!< banner) exit(0);


# Try to exploit the flaw.
xss = string("<script>alert('", SCRIPT_NAME, "')</script>");
r = http_send_recv3(method:"GET", item:string("/", urlencode(str:xss), ".cfm"), port:port);
if (isnull(r)) exit(0);
# nb: keepalives seem to sometimes cause the script to fail.
res = strcat(r[0], r[1], '\r\n', r[2]);

# There's a problem if we see our XSS.
if (string("Request</TD><TD>/", xss) >< res)
{
 security_warning(port);
 set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
}