Lucene search
K

Apache Struts Cross Site Scripting Vulnerability

🗓️ 23 Apr 2009 00:00:00Reported by Copyright (C) 2009 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 23 Views

Apache Struts Cross Site Scripting Vulnerability. Improper sanitization in user input and action attribute causes XSS attacks. Successful exploitation can inject malicious URL/ codes

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2008-6682
9 Apr 200915:00
cve
Cvelist
CVE-2008-6682
9 Apr 200915:00
cvelist
EUVD
EUVD-2022-4358
3 Oct 202520:07
euvd
Github Security Blog
Apache Struts is vulnerable to Cross-site Scripting
17 May 202205:52
github
NVD
CVE-2008-6682
9 Apr 200915:08
nvd
OpenVAS
Apache Struts Security Update (S2-002, S2-003)
23 Apr 200900:00
openvas
OSV
GHSA-JGCR-9C2Q-RVP8 Apache Struts is vulnerable to Cross-site Scripting
17 May 202205:52
osv
Prion
Cross site scripting
9 Apr 200915:08
prion
Tenable Nessus
Apache Struts 2 s:a / s:url Tag href Element XSS
29 Apr 200900:00
nessus
SUSE CVE
SUSE CVE-2008-6682
15 Feb 202306:05
susecve
Rows per page
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_apache_struts_xss_vuln.nasl 4865 2016-12-28 16:16:43Z teissa $
#
# Apache Struts Cross Site Scripting Vulnerability
#
# Authors:
# Sujit Ghosal <[email protected]>
#
# Copyright:
# Copyright (c) 2009 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_impact = "Successful exploitation will let the attacker issue malicious URL or can inject
  malicious codes inside the web page contents to gain sensitive information.
  Impact Level: Application";
tag_affected = "Apache Struts version 2.0 and prior to 2.0.11.1
  Apache Struts version 2.1 and prior to 2.1.1";
tag_insight = "This flaw is due to improper sanitization of the user supplied input
  in '<s:url>' and '<s:a ...>' tag which doesn't encode the URL parameter when
  specified in the action attribute which causes XSS attacks.";
tag_solution = "Upgrade to Apache Struts version 2.1.1 or 2.0.11.1.
  http://struts.apache.org/download.cgi";
tag_summary = "This host is running Apache Struts and is prone to Cross Site Scripting
  Vulnerability.";

if(description)
{
  script_id(800278);
  script_version("$Revision: 4865 $");
  script_tag(name:"last_modification", value:"$Date: 2016-12-28 17:16:43 +0100 (Wed, 28 Dec 2016) $");
  script_tag(name:"creation_date", value:"2009-04-23 08:16:04 +0200 (Thu, 23 Apr 2009)");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_cve_id("CVE-2008-6682");
  script_name("Apache Struts Cross Site Scripting Vulnerability");
  script_xref(name : "URL" , value : "https://issues.apache.org/struts/browse/WW-2414");
  script_xref(name : "URL" , value : "https://issues.apache.org/struts/browse/WW-2427");

  script_tag(name:"qod_type", value:"remote_banner_unreliable");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_apache_struts2_detection.nasl");
  script_require_ports("Services/www", 8080);
  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "summary" , value : tag_summary);
  exit(0);
}


include("http_func.inc");
include("version_func.inc");

strutsPort = get_http_port(default:8080);
if(!strutsPort){
  exit(0);
}

strutsVer = get_kb_item("www/" + strutsPort + "/Apache/Struts");
strutsVer = eregmatch(pattern:"^(.+) under (/.*)$", string:strutsVer);
if(!strutsVer[1]){
  exit(0);
}

if(version_in_range(version:strutsVer[1], test_version:"2.0", test_version2:"2.0.11") ||
   version_in_range(version:strutsVer[1], test_version:"2.1", test_version2:"2.1.0")){
  security_message(strutsPort);
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation