Lucene search
+L

IBM-HTTP-Server View Code

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

IBM's HTTP Server on AS/400 platform vulnerable to code view attack by appending '/' to UR

Refs
Code
SourceLink
securityfocuswww.securityfocus.com/bid/3518
# SPDX-FileCopyrightText: 2001 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.10799");
  script_version("2026-04-28T06:28:06+0000");
  script_tag(name:"last_modification", value:"2026-04-28 06:28:06 +0000 (Tue, 28 Apr 2026)");
  script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/3518");
  script_tag(name:"cvss_base", value:"5.1");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:P/I:P/A:P");
  script_name("IBM-HTTP-Server View Code");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2001 Felix Huber");
  script_family("Web application abuses");
  script_dependencies("gb_ibm_http_server_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("ibm/http_server/detected");

  script_tag(name:"summary", value:"IBM's HTTP Server on the AS/400 platform is vulnerable to an attack
  that will show the source code of the page -- such as an .html or .jsp
  page -- by attaching an '/' to the end of a URL.

  Example:
  http://www.example.com/getsource.jsp/");

  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_tag(name:"solution_type", value:"WillNotFix");
  script_tag(name:"qod_type", value:"remote_analysis");

  exit(0);
}

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

files = make_list(
"/index.html",
"/index.htm",
"/index.jsp",
"/default.html",
"/default.htm",
"/default.jsp",
"/home.html",
"/home.htm",
"/home.jsp" );

port = http_get_port( default:80 );
host = http_host_name( dont_add_port:TRUE );

kb_files = http_get_kb_file_extensions( port:port, host:host, ext:"jsp" );
if( ! isnull( kb_files ) ) {
  files = make_list_unique( files, kb_files );
}

foreach file( files ) {
  url = file + "/";
  req = http_get( item:url, port:port );
  res = http_keepalive_send_recv( port:port, data:req );
  if( isnull( res ) ) continue;

  if( "Content-Type: www/unknown" >< 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

28 Apr 2026 00:00Current
5.2Medium risk
Vulners AI Score5.2
17