Lucene search
+L

Apache HTTP Server UserDir Sensitive Information Disclosure

🗓️ 03 Nov 2005 00:00:00Reported by Copyright (C) 2001 SecuriTeamType 
openvas
 openvas
🔗 plugins.openvas.org👁 42 Views

Apache HTTP Server UserDir Sensitive Information Disclosure. Information leak allows enumeration of existing accounts by accessing home directories

Related
Refs
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
Apache UserDir Directive Username Enumeration
18 Sep 200100:00
nessus
Circl
CVE-2001-1013
29 May 201815:50
circl
CVE
CVE-2001-1013
2 Feb 200205:00
cve
Cvelist
CVE-2001-1013
2 Feb 200205:00
cvelist
Exploit DB
RedHat Linux 7.0 Apache - Remote Username Enumeration
12 Sep 200100:00
exploitdb
Metasploit
Apache "mod_userdir" User Enumeration
15 Aug 201105:56
metasploit
Nmap
http-userdir-enum NSE Script
22 Aug 200922:04
nmap
NVD
CVE-2001-1013
12 Sep 200104:00
nvd
OpenVAS
Nmap NSE net: http-userdir-enum
1 Jun 201100:00
openvas
OpenVAS
Nmap NSE net: http-vmware-path-vuln
1 Jun 201100:00
openvas
Rows per page
# SPDX-FileCopyrightText: 2001 SecuriTeam
# 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:http_server";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.10766");
  script_version("2023-06-22T10:34:15+0000");
  script_tag(name:"last_modification", value:"2023-06-22 10:34:15 +0000 (Thu, 22 Jun 2023)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_cve_id("CVE-2001-1013");
  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_name("Apache HTTP Server UserDir Sensitive Information Disclosure");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2001 SecuriTeam");
  script_family("Web Servers");
  script_dependencies("gb_apache_http_server_consolidation.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("apache/http_server/http/detected");

  script_xref(name:"URL", value:"http://www.securiteam.com/unixfocus/5WP0C1F5FI.html");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/3335");

  script_tag(name:"solution", value:"1) Disable this feature by changing 'UserDir public_html' (or whatever) to
  'UserDir  disabled'.

  Or

  2) Use a RedirectMatch rewrite rule under Apache -- this works even if there
  is no such  entry in the password file, e.g.:
  RedirectMatch ^/~(.*)$ http://example.com/$1

  Or

  3) Add into httpd.conf:

  ErrorDocument 404 http://example.com/sample.html

  ErrorDocument 403 http://example.com/sample.html

  (NOTE: You need to use a FQDN inside the URL for it to work properly).");

  script_tag(name:"summary", value:"An information leak occurs on Apache HTTP Server based
  web servers whenever the UserDir module is enabled. The vulnerability allows an external
  attacker to enumerate existing accounts by requesting access to their home directory
  and monitoring the response.");

  script_tag(name:"qod_type", value:"remote_analysis");
  script_tag(name:"solution_type", value:"Mitigation");

  exit(0);
}

include("http_func.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);

req = http_head(item:"/~root", port:port);
buf_valid = http_send_recv(port:port, data:req);

req = http_head(item:"/~anna_foo_fighter", port:port);
buf_invalid = http_send_recv(port:port, data:req);

if(buf_valid =~ "^HTTP/1\.[01] 403" && buf_invalid =~ "^HTTP/1\.[01] 404") {
  security_message(port:port);
  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

22 Jun 2023 00:00Current
9.2High risk
Vulners AI Score9.2
CVSS 25
EPSS0.65563
42