Lucene search
+L

Mongoose Web Server <= 2.8 Slash Character Remote File Disclosure Vulnerability

🗓️ 02 Aug 2010 00:00:00Reported by Copyright (C) 2010 Greenbone Networks GmbHType 
openvas
 openvas
🔗 plugins.openvas.org👁 25 Views

Mongoose Web Server <= 2.8 Slash Character Remote File Disclosure Vulnerability, Impact, Affected Versions, No Solution Availabl

Related
Refs
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-4535
23 Oct 200900:00
circl
cve
CVE
CVE-2009-4535
31 Dec 200919:00
cve
cvelist
Cvelist
CVE-2009-4535
31 Dec 200919:00
cvelist
exploitdb
Exploit DB
Mongoose Web Server 2.8 - Multiple Directory Traversals
20 Apr 201000:00
exploitdb
exploitdb
Exploit DB
Mongoose Web Server 2.8 - Source Disclosure
23 Oct 200900:00
exploitdb
euvd
EUVD
EUVD-2009-4501
7 Oct 202500:30
euvd
nessus
Tenable Nessus
Mongoose URI Trailing Slash Request Source Code Disclosure
30 Jul 201000:00
nessus
nvd
NVD
CVE-2009-4535
31 Dec 200919:30
nvd
openvas
OpenVAS
Mongoose Slash Character Remote File Disclosure Vulnerability
2 Aug 201000:00
openvas
openvas
OpenVAS
Mongoose Web Server Source Code Disclosure Vulnerability
9 Jan 201000:00
openvas
Rows per page
SourceLink
securityfocuswww.securityfocus.com/bid/42051
# Copyright (C) 2010 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.

CPE = "cpe:/a:cesanta:mongoose";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.100735");
  script_version("2022-04-12T08:46:17+0000");
  script_tag(name:"last_modification", value:"2022-04-12 08:46:17 +0000 (Tue, 12 Apr 2022)");
  script_tag(name:"creation_date", value:"2010-08-02 14:28:14 +0200 (Mon, 02 Aug 2010)");
  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_cve_id("CVE-2009-4535");

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

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

  script_name("Mongoose Web Server <= 2.8 Slash Character Remote File Disclosure Vulnerability");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2010 Greenbone Networks GmbH");
  script_family("Web Servers");
  script_dependencies("gb_mongoose_web_server_http_detect.nasl");
  script_mandatory_keys("cesanta/mongoose/http/detected");
  script_require_ports("Services/www", 80);

  script_tag(name:"summary", value:"Mongoose Web Server is prone to a remote file-disclosure
  vulnerability because it fails to properly sanitize user-supplied input.");

  script_tag(name:"impact", value:"An attacker can exploit this vulnerability to view the source
  code of files in the context of the server process, which may aid in further attacks.");

  script_tag(name:"affected", value:"This issue affects Mongoose Web Server version 2.8. Other
  versions may be vulnerable as well.");

  script_tag(name:"solution", value:"No known solution was made available for at least one year
  since the disclosure of this vulnerability. Likely none will be provided anymore. General solution
  options are to upgrade to a newer release, disable respective features, remove the product or
  replace the product by another one.");

  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/42051");

  exit(0);
}

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

phps = http_get_kb_file_extensions( port:port, host:host, ext:"php" );
if( ! isnull( phps ) ) {
  phps = make_list( phps );
} else {
  phps = make_list( "/index.php" );
}

x = 0;

foreach php( phps ) {
  x++;
  url = php + "/";

  if( buf = http_vuln_check( port:port, url:url, pattern:"<\?(php)?", check_header:TRUE ) ) {
    if( "Content-Type: text/plain" >< buf ) {
      if( ! http_vuln_check( port:port, url:php, pattern:"<\?(php)?" ) ) {
        report = http_report_vuln_url( port:port, url:url );
        security_message( port:port, data:report );
        exit( 0 );
      }
    }
  }
  if( x >= 3 )
    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