Lucene search
K

Apache Struts2 'XWork' Information Disclosure Vulnerability

🗓️ 23 May 2011 00:00:00Reported by Copyright (c) 2010 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 18 Views

This host is running Apache Struts and is prone to information disclosure vulnerability. The flaw is due to error in XWork when handling the 's:submit' element and a nonexistent method, which leaks sensitive information about internal Java class paths. Successful exploitation will allow attackers to obtain potentially sensitive information. The affected version is XWork 2.2.1 in Apache Struts 2.2.1. Upgrade to Struts version 2.2.3 or later

Related
Refs
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2011-2088
13 May 201117:00
cve
Cvelist
CVE-2011-2088
13 May 201117:00
cvelist
EUVD
EUVD-2022-3350
3 Oct 202520:07
euvd
Github Security Blog
XWork in Apache Struts Reveals Sensitive Information
14 May 202202:55
github
NVD
CVE-2011-2088
13 May 201117:05
nvd
OSV
GHSA-9CCM-G362-2R35 XWork in Apache Struts Reveals Sensitive Information
14 May 202202:55
osv
Prion
Security feature bypass
13 May 201117:05
prion
securityvulns
Apache Struts 2, XWork, OpenSymphony WebWork Java Class Path Information Disclosure
21 May 201100:00
securityvulns
securityvulns
Web applications security vulnerabilities summary (PHP, ASP, JSP, CGI, Perl)
21 May 201100:00
securityvulns
SUSE CVE
SUSE CVE-2011-2088
15 Feb 202305:53
susecve
Rows per page
##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_apache_struts_xwork_info_disc_vuln.nasl 5497 2017-03-06 10:23:23Z teissa $
#
# Apache Struts2 'XWork' Information Disclosure Vulnerability
#
# Authors:
# Antu Sanadi <[email protected]>
#
# Copyright:
# Copyright (c) 2011 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.
###############################################################################

CPE = "cpe:/a:apache:struts";
if(description)
{
  script_id(801940);
  script_version("$Revision: 5497 $");
  script_cve_id("CVE-2011-2088");
  script_tag(name:"last_modification", value:"$Date: 2017-03-06 11:23:23 +0100 (Mon, 06 Mar 2017) $");
  script_tag(name:"creation_date", value:"2011-05-23 15:31:07 +0200 (Mon, 23 May 2011)");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"qod_type", value:"remote_vul");
  script_name("Apache Struts2 'XWork' Information Disclosure Vulnerability");

  script_tag(name: "summary" , value:"This host is running Apache Struts and is
  prone to information disclosure vulnerability.");

  script_tag(name: "vuldetect" , value:"Send a crafted SNMP request and
  check whether it is able read the sensitive information");

  script_tag(name: "insight" , value:"The flaw is due to error in XWork, when handling
  the 's:submit' element and a nonexistent method, which gives sensitive information
  about internal Java class paths.");

  script_tag(name: "impact" , value:"Successful exploitation will allow attackers to obtain potentially sensitive
  information about internal Java class paths via vectors involving an s:submit
  element and a nonexistent method,

  Impact Level: Application.");

  script_tag(name: "affected" , value:"XWork version 2.2.1 in Apache Struts 2.2.1");

  script_tag(name: "solution" , value:"Upgrade to Struts version 2.2.3 or later
  For updates refer to http://struts.apache.org/download.cgi");

  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name : "URL" , value : "https://issues.apache.org/jira/browse/WW-3579");
  script_xref(name : "URL" , value : "http://www.ventuneac.net/security-advisories/MVSA-11-006");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (c) 2010 Greenbone Networks GmbH");
  script_dependencies("gb_apache_struts2_detection.nasl");
  script_mandatory_keys("ApacheStruts/installed");
  script_family("Web application abuses");
  script_require_ports("Services/www", 8080);
  exit(0);
}


include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

## Get HTTP Port
if(!port = get_app_port(cpe:CPE)){
 exit(0);
}

if(!dir = get_app_location(cpe:CPE, port:port))
{
  exit(0);
}

## Send and Receive the response
req = http_get(item:string(dir,"/example/HelloWorld.action"), port:port);
res = http_keepalive_send_recv(port:port, data:req);

## Confirm the application
if("<title>Struts" >< res)
{
  ## Construct the request to get no existing methods
  req = http_get(item:string(dir,"/Nonmethod.action"), port:port);
  res = http_keepalive_send_recv(port:port, data:req);

  ##  Confirm the exploit
  if("Stacktraces" >< res &&  "Nonmethod" >< res)
  {
    security_message(port);
    exit(0);
  }
}

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