Lucene search
+L

Tomcat 4.x JSP Source Exposure - Active Check

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2002 Felix HuberType 
openvas
 openvas
🔗 plugins.openvas.org👁 39 Views

Tomcat 4.x JSP Source Exposure - Active Check. Vulnerability in Tomcat 4.x versions allows source code exposure via org.apache.catalina.servlets.DefaultServlet

Related
Refs
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Apache Tomcat 4.0.x < 4.0.5 / 4.1.x < 4.1.11 JSP Source Code Disclosure
20 Aug 200400:00
nessus
nessus
Tenable Nessus
Debian DSA-170-1 : tomcat4 - source code disclosure
29 Sep 200400:00
nessus
nessus
Tenable Nessus
Debian DSA-225-1 : tomcat4 - source disclosure
29 Sep 200400:00
nessus
nessus
Tenable Nessus
Apache Tomcat Catalina org.apache.catalina.servlets.DefaultServlet Source Code Disclosure
28 Nov 200200:00
nessus
cve
CVE
CAN-2002-1148
6 Aug 202410:44
cve
cve
CVE
CAN-2002-1394
6 Aug 202410:45
cve
cve
CVE
CVE-2002-1148
1 Sep 200404:00
cve
cve
CVE
CVE-2002-1394
1 Sep 200404:00
cve
cvelist
Cvelist
CVE-2002-1148
1 Sep 200404:00
cvelist
cvelist
Cvelist
CVE-2002-1394
1 Sep 200404:00
cvelist
Rows per page
# SPDX-FileCopyrightText: 2002 Felix Huber
# 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-only

CPE = "cpe:/a:apache:tomcat";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.11176");
  script_version("2024-04-11T05:05:26+0000");
  script_tag(name:"last_modification", value:"2024-04-11 05:05:26 +0000 (Thu, 11 Apr 2024)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2002-1148", "CVE-2002-1394");
  script_name("Tomcat 4.x JSP Source Exposure - Active Check");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2002 Felix Huber");
  script_family("Web Servers");
  script_dependencies("gb_apache_tomcat_consolidation.nasl", "webmirror.nasl");
  script_require_ports("Services/www", 8080);
  script_mandatory_keys("apache/tomcat/http/detected");

  script_xref(name:"URL", value:"http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210215033857/http://www.securityfocus.com/bid/5786");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210131000012/http://www.securityfocus.com/bid/6562/");

  script_tag(name:"summary", value:"Tomcat 4.0.4 and 4.1.10 (probably all other earlier versions
  also) are vulnerable to source code exposure by using the default servlet
  org.apache.catalina.servlets.DefaultServlet.");

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

  script_tag(name:"solution", value:"Update to version 4.0.5, 4.1.12 or later.");

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

  exit(0);
}

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

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
  exit( 0 );

host = http_host_name( dont_add_port:TRUE );

files = http_get_kb_file_extensions( port:port, host:host, ext:"jsp" );

if( ! isnull( files ) ) {
  files = make_list( files );
  file = files[0];
} else {
  file = "/index.jsp";
}

url = "/servlet/org.apache.catalina.servlets.DefaultServlet" + file;
req = http_get( item:url, port:port );
res = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );
if( isnull( res) ) exit( 0 );

if( "<%@" >< res ) {
  report = http_report_vuln_url( port:port, url:url );
  security_message( port:port, data:report );
  exit( 0 );
}

if( res =~ "^HTTP/1\.[01] 200" ) {
  if( "Server: Apache Tomcat/4\." >< res ) {
    report = http_report_vuln_url( port:port, url:url );
    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

11 Apr 2024 00:00Current
6.5Medium risk
Vulners AI Score6.5
CVSS 27.5
EPSS0.1682
39