Lucene search
K

Allaire JRun directory browsing vulnerability

🗓️ 03 Nov 2005 00:00:00Reported by This script is Copyright (C) 2001 Felix HuberType 
openvas
 openvas
🔗 plugins.openvas.org👁 33 Views

Allaire JRun directory browsing vulnerability under Microsoft IIS platfor

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2001-1510
14 Jul 200504:00
cve
Cvelist
CVE-2001-1510
14 Jul 200504:00
cvelist
EUVD
EUVD-2001-1487
7 Oct 202500:30
euvd
Tenable Nessus
Allaire JRun Encoded JSP Request Directory Listing
16 Feb 201600:00
nessus
NVD
CVE-2001-1510
31 Dec 200105:00
nvd
OpenVAS
Allaire/Macromedia JRun Directory Browsing Vulnerability (MPSB01-13) - Active Check
3 Nov 200500:00
openvas
RedhatCVE
CVE-2001-1510
9 Jan 202611:40
redhatcve
# OpenVAS Vulnerability Test
# $Id: jrun_getdir.nasl 8023 2017-12-07 08:36:26Z teissa $
# Description: Allaire JRun directory browsing vulnerability
#
# Authors:
# Felix Huber <[email protected]>
# Script audit and contributions from Carmichael Security <http://www.carmichaelsecurity.com>
# Erik Anderson <[email protected]>
# Added BugtraqID
# Changes by [email protected] (SensePost) :
# * Test all discovered directories for jsp bug
#
# Copyright:
# Copyright (C) 2001 Felix Huber
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# 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_summary = "Allaire JRun 3.0/3.1 under a Microsoft IIS 4.0/5.0 platform has a
problem handling malformed URLs. This allows a remote user to browse
the file system under the web root (normally \inetpub\wwwroot).

Under Windows NT/2000(any service pack) and IIS 4.0/5.0:
- JRun 3.0 (all editions)
- JRun 3.1 (all editions)


Upon sending a specially formed request to the web server, containing
a '.jsp' extension makes the JRun handle the request. Example:

http://www.victim.com/%3f.jsp

This vulnerability allows anyone with remote access to the web server
to browse it and any directory within the web root.";

tag_solution = ">From Macromedia Product Security Bulletin (MPSB01-13)
http://www.allaire.com/handlers/index.cfm?ID=22236&Method=Full

Macromedia recommends, as a best practice, turning off directory
browsing for the JRun Default Server in the following applications:
- Default Application (the application with '/' mapping that causes
  the security problem)

- Demo Application
  Also, make sure any newly created web application that uses the '/'
  mapping has directory browsing off.

The changes that need to be made in the JRun Management Console or JMC:

- JRun Default Server/Web Applications/Default User Application/File
  Settings/Directory Browsing Allowed set to FALSE.
- JRun Default Server/Web Applications/JRun Demo/File Settings/
  Directory Browsing Allowed set to FALSE.

Restart the servers after making the changes and the %3f.jsp request
should now return a 403 forbidden. When this bug is fixed, the request
(regardless of directory browsing setting) should return a '404 page
not found'.

The directory browsing property is called [file.browsedirs]. Changing
the property via the JMC will cause the following changes:
JRun 3.0 will write [file.browsedirs=false] in the local.properties
file. (server-wide change)
JRun 3.1 will write [file.browsedirs=false] in the webapp.properties
of the application.";


if(description)
{
 script_id(10814);
 script_version("$Revision: 8023 $");
 script_tag(name:"last_modification", value:"$Date: 2017-12-07 09:36:26 +0100 (Thu, 07 Dec 2017) $");
 script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
 script_cve_id("CVE-2001-1510");
 script_bugtraq_id(3592);
 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");

 name = "Allaire JRun directory browsing vulnerability";
 script_name(name);



 script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"remote_vul");

 script_copyright("This script is Copyright (C) 2001 Felix Huber");
 family = "Web application abuses";
 script_family(family);
 script_dependencies("find_service.nasl", "no404.nasl", "DDI_Directory_Scanner.nasl", "webmirror.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

#
# The script code starts here
#

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

port = get_http_port(default:80);

if(!get_port_state(port))exit(0);

dirs = make_list_unique("/", "/images", "/html", cgi_dirs(port:port));

foreach d (dirs)
{
 req = http_get(item:string(d+"/%3f.jsp"), port:port);
 r = http_keepalive_send_recv(port:port, data:req);
 if(r == NULL) exit(0);

 if(egrep(pattern:"Index of /", string:r)||(egrep(pattern:"Directory Listing", string:r))) ddir += d + '\n';
}
if(ddir != NULL)
{
    report = string("
Allaire JRun 3.0/3.1 under a Microsoft IIS 4.0/5.0 platform has a
problem handling malformed URLs. This allows a remote user to browse
the file system under the web root (normally inetpubwwwroot).

Upon sending a specially formed request to the web server, containing
a '.jsp' extension makes the JRun handle the request.
Example:

http://www.victim.com/%3f.jsp

The following directories were found to be browsable:
" +ddir + " ");
    security_message(port:port, data:report);

}

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