CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS
Percentile
79.9%
The remote host is running a version of Icecast that suffers from two flaws in its XSL parser.
A Locally-Exploitable Buffer Overflow Vulnerability The XSL parser does not check the size of XSL ‘when’, ‘if’, and ‘value-of’ tag values before copying them into a finite buffer in process memory. An attacker may potentially be able to exploit this vulnerability to execute arbitrary code if he can have a specially crafted XSL file placed in an Icecast folder.
An Information Disclosure Vulnerability The XSL parser fails to parse XSL files when the request ends with a dot (‘.’) and instead simply returns the contents.
An attacker can exploit this to uncover sensitive information contained in XSL files.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description) {
script_id(17592);
script_version("1.23");
script_cve_id("CVE-2005-0837", "CVE-2005-0838");
script_bugtraq_id(12849);
script_name(english:"Icecast XSL Parser Multiple Vulnerabilities (OF, ID)");
script_set_attribute(attribute:"synopsis", value:
"The remote media streaming server is affected by multiple issues." );
script_set_attribute(attribute:"description", value:
"The remote host is running a version of Icecast that suffers from two
flaws in its XSL parser.
- A Locally-Exploitable Buffer Overflow Vulnerability
The XSL parser does not check the size of XSL 'when', 'if',
and 'value-of' tag values before copying them into a finite
buffer in process memory. An attacker may potentially be
able to exploit this vulnerability to execute arbitrary
code if he can have a specially crafted XSL file placed in
an Icecast folder.
- An Information Disclosure Vulnerability
The XSL parser fails to parse XSL files when the request ends
with a dot ('.') and instead simply returns the contents.
An attacker can exploit this to uncover sensitive information
contained in XSL files." );
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/393705" );
script_set_attribute(attribute:"see_also", value:"http://lists.xiph.org/pipermail/icecast/2005-March/008882.html" );
script_set_attribute(attribute:"solution", value:
"Unknown at this time." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:ND");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"plugin_publication_date", value: "2005/03/22");
script_set_attribute(attribute:"vuln_publication_date", value: "2005/03/19");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
summary["english"] = "Checks for XSL parser vulnerabilities in Icecast";
script_summary(english:summary["english"]);
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2005-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("http_version.nasl");
script_require_ports("Services/www", 8000);
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
port = get_http_port(default:8000);
w = http_send_recv3(method:"GET", port:port, item:"/status.xsl.");
if (isnull(w)) exit(1, "The web server on port "+port+" did not answer");
res = w[2];
# If it looks like XSL, there's a problem.
if (egrep(string:res, pattern:'<xsl:template match *= *"/icestats" *>'))
security_warning(port);