Intrasrv Simple Web Server RCE and Buffer Overflow Vulnerability

2013-05-31T00:00:00
ID OPENVAS:1361412562310902973
Type openvas
Reporter Copyright (C) 2013 SecPod
Modified 2020-05-08T00:00:00

Description

This host is running Intrasrv Simple Web Server and is prone to remote code execution vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
#
# Intrasrv Simple Web Server RCE and Buffer Overflow Vulnerability
#
# Authors:
# Antu Sanadi <santu@secpod.com>
#
# Copyright:
# Copyright (C) 2013 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), 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.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902973");
  script_version("2020-05-08T08:34:44+0000");
  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_tag(name:"last_modification", value:"2020-05-08 08:34:44 +0000 (Fri, 08 May 2020)");
  script_tag(name:"creation_date", value:"2013-05-31 11:32:38 +0530 (Fri, 31 May 2013)");

  script_name("Intrasrv Simple Web Server RCE and Buffer Overflow Vulnerability");
  script_xref(name:"URL", value:"http://en.securitylab.ru/poc/440852.php");
  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/25836");
  script_xref(name:"URL", value:"http://exploitsdownload.com/exploit/na/intrasrv-simple-web-server-10-code-execution");

  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2013 SecPod");
  script_family("Buffer overflow");
  script_dependencies("gb_get_http_banner.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("intrasrv/banner");

  script_tag(name:"impact", value:"Successful exploitation will let remote unauthenticated attackers
  to cause a denial of service or execute arbitrary code.");

  script_tag(name:"affected", value:"Intrasrv Simple Web Server version 1.0");

  script_tag(name:"insight", value:"The flaw is due to an error when handling certain Long requests,
  which can be exploited to cause a denial of service or remote code execution.");

  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:"summary", value:"This host is running Intrasrv Simple Web Server and is prone to remote code
  execution vulnerability.");

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

  exit(0);
}

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

port = http_get_port(default:80);

banner = http_get_remote_headers(port:port);

if("Server: intrasrv" >!< banner){
  exit(0);
}

req = http_get(item:crap(data:"A", length:2500), port:port);
res = http_send_recv(port:port, data:req);

req = http_get(item:"/",  port:port);
res = http_keepalive_send_recv(port:port, data:req);

if(!res && http_is_dead(port:port))
{
  security_message(port:port);
  exit(0);
}

exit(99);