Vulnerabilities > CVE-2006-2369 - Improper Authentication vulnerability in VNC Realvnc 4.1.1
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
RealVNC 4.1.1, and other products that use RealVNC such as AdderLink IP and Cisco CallManager, allows remote attackers to bypass authentication via a request in which the client specifies an insecure security type such as "Type 1 - None", which is accepted even if it is not offered by the server, as originally demonstrated using a long password.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Authentication Abuse An attacker obtains unauthorized access to an application, service or device either through knowledge of the inherent weaknesses of an authentication mechanism, or by exploiting a flaw in the authentication scheme's implementation. In such an attack an authentication mechanism is functioning but a carefully controlled sequence of events causes the mechanism to grant access to the attacker. This attack may exploit assumptions made by the target's authentication procedures, such as assumptions regarding trust relationships or assumptions regarding the generation of secret values. This attack differs from Authentication Bypass attacks in that Authentication Abuse allows the attacker to be certified as a valid user through illegitimate means, while Authentication Bypass allows the user to access protected material without ever being certified as an authenticated user. This attack does not rely on prior sessions established by successfully authenticating users, as relied upon for the "Exploitation of Session Variables, Resource IDs and other Trusted Credentials" attack patterns.
- Exploiting Trust in Client (aka Make the Client Invisible) An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
- Utilizing REST's Trust in the System Resource to Register Man in the Middle This attack utilizes a REST(REpresentational State Transfer)-style applications' trust in the system resources and environment to place man in the middle once SSL is terminated. Rest applications premise is that they leverage existing infrastructure to deliver web services functionality. An example of this is a Rest application that uses HTTP Get methods and receives a HTTP response with an XML document. These Rest style web services are deployed on existing infrastructure such as Apache and IIS web servers with no SOAP stack required. Unfortunately from a security standpoint, there frequently is no interoperable identity security mechanism deployed, so Rest developers often fall back to SSL to deliver security. In large data centers, SSL is typically terminated at the edge of the network - at the firewall, load balancer, or router. Once the SSL is terminated the HTTP request is in the clear (unless developers have hashed or encrypted the values, but this is rare). The attacker can utilize a sniffer such as Wireshark to snapshot the credentials, such as username and password that are passed in the clear once SSL is terminated. Once the attacker gathers these credentials, they can submit requests to the web service provider just as authorized user do. There is not typically an authentication on the client side, beyond what is passed in the request itself so once this is compromised, then this is generally sufficient to compromise the service's authentication scheme.
- Man in the Middle Attack This type of attack targets the communication between two components (typically client and server). The attacker places himself in the communication channel between the two components. Whenever one component attempts to communicate with the other (data flow, authentication challenges, etc.), the data first goes to the attacker, who has the opportunity to observe or alter it, and it is then passed on to the other component as if it was never intercepted. This interposition is transparent leaving the two compromised components unaware of the potential corruption or leakage of their communications. The potential for Man-in-the-Middle attacks yields an implicit lack of trust in communication or identify between two components.
Exploit-Db
description RealVNC Authentication Bypass. CVE-2006-2369. Remote exploit for windows platform id EDB-ID:17719 last seen 2016-02-02 modified 2011-08-26 published 2011-08-26 reporter metasploit source https://www.exploit-db.com/download/17719/ title RealVNC - Authentication Bypass description RealVNC 4.1.0 - 4.1.1 (VNC Null Authentication) Auth Bypass Patch/EXE. CVE-2006-2369. Remote exploits for multiple platform id EDB-ID:1791 last seen 2016-01-31 modified 2006-05-16 published 2006-05-16 reporter redsand source https://www.exploit-db.com/download/1791/ title RealVNC 4.1.0 - 4.1.1 - VNC Null Authentication Bypass Patched EXE
Metasploit
description Detect VNC servers that support the "None" authentication method. id MSF:AUXILIARY/SCANNER/VNC/VNC_NONE_AUTH last seen 2020-06-07 modified 2017-07-24 published 2008-06-06 references reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/scanner/vnc/vnc_none_auth.rb title VNC Authentication None Detection description This module exploits an Authentication bypass Vulnerability in RealVNC Server version 4.1.0 and 4.1.1. It sets up a proxy listener on LPORT and proxies to the target server The AUTOVNC option requires that vncviewer be installed on the attacking machine. id MSF:AUXILIARY/ADMIN/VNC/REALVNC_41_BYPASS last seen 2020-06-13 modified 2017-07-24 published 2011-08-29 references reporter Rapid7 source https://github.com/rapid7/metasploit-framework/blob/master//modules/auxiliary/admin/vnc/realvnc_41_bypass.rb title RealVNC NULL Authentication Mode Bypass
Nessus
NASL family Misc. NASL id REALVNC_AUTH_BYPASS.NASL description The version of VNC server running on the remote host is affected by the following vulnerabilities : - A flaw exists in RealVNC due to an error when handling password authentication. A remote attacker can exploit this to bypass authentication by using a specially crafted request in which the client specifies an insecure security type (e.g., last seen 2020-06-01 modified 2020-06-02 plugin id 21564 published 2006-05-15 reporter This script is Copyright (C) 2006-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/21564 title VNC Security Type Enforcement Failure Remote Authentication Bypass code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(21564); script_version("1.30"); script_cvs_date("Date: 2018/07/25 18:58:04"); script_cve_id("CVE-2006-2369", "CVE-2006-2450"); script_bugtraq_id(17978, 18977); script_xref(name:"CERT", value:"117929"); script_xref(name:"EDB-ID", value:"1791"); script_name(english:"VNC Security Type Enforcement Failure Remote Authentication Bypass"); script_summary(english:"Tries to bypass authentication using a type of None."); script_set_attribute(attribute:"synopsis", value: "The remote VNC server is affected by multiple authentication bypass vulnerabilities."); script_set_attribute(attribute:"description", value: "The version of VNC server running on the remote host is affected by the following vulnerabilities : - A flaw exists in RealVNC due to an error when handling password authentication. A remote attacker can exploit this to bypass authentication by using a specially crafted request in which the client specifies an insecure security type (e.g., 'Type 1 - None'), which is accepted even if not offered by the server. (CVE-2006-2369) - A flaw exists in LibVNCServer within file auth.c due to an error when handling password authentication. A remote attacker can exploit this to bypass authentication by using a specially crafted request in which the client specifies an insecure security type (e.g., 'Type 1 - None'), which is accepted even if not offered by the server. (CVE-2006-2450)"); # http://www.intelliadmin.com/index.php/2006/05/security-flaw-in-realvnc-411/ script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ef2b8a64" ); # https://web.archive.org/web/20060623010008/http://www.realvnc.com/products/free/4.1/release-notes.html script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8a2c16a0"); # https://web.archive.org/web/20060623010103/http://www.realvnc.com/products/personal/4.2/release-notes.html script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b218067e"); # https://web.archive.org/web/20060623010019/http://www.realvnc.com/products/enterprise/4.2/release-notes.html script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?519d872d"); script_set_attribute(attribute:"see_also", value:"https://github.com/LibVNC/libvncserver"); script_set_attribute(attribute:"solution", value: "If using RealVNC, upgrade to RealVNC Free Edition 4.1.2 / Personal Edition 4.2.3 / Enterprise Edition 4.2.3 or later. If using LibVNCServer, upgrade to version 0.8.2 or later."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"); script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploit_framework_core", value:"true"); script_set_attribute(attribute:"exploit_framework_canvas", value:"true"); script_set_attribute(attribute:"canvas_package", value:'CANVAS'); script_set_attribute(attribute:"vuln_publication_date", value: "2006/05/15"); script_set_attribute(attribute:"patch_publication_date", value: "2006/06/23"); script_set_attribute(attribute:"plugin_publication_date", value: "2006/05/15"); script_set_attribute(attribute:"plugin_type", value:"remote"); script_set_attribute(attribute:"cpe",value:"cpe:/a:vnc:realvnc"); script_set_attribute(attribute:"cpe",value:"cpe:/a:libvncserver:libvncserver"); script_end_attributes(); script_category(ACT_ATTACK); script_family(english:"Misc."); script_copyright(english:"This script is Copyright (C) 2006-2018 Tenable Network Security, Inc."); script_dependencies("vnc.nasl"); script_require_ports("Services/vnc", 5900); exit(0); } include("audit.inc"); include("byte_func.inc"); include("global_settings.inc"); include("misc_func.inc"); protocol = "VNC Service"; port = get_kb_item("Services/vnc"); if (!port) port = 5900; if (!get_port_state(port)) audit(AUDIT_PORT_CLOSED, port); # Establish a connection. soc = open_sock_tcp(port); if (!soc) audit(AUDIT_SOCK_FAIL, port); # nb: The RFB protocol is described at: # http://www.realvnc.com/docs/rfbproto.pdf # Get the protocol version supported by the server. s = recv(socket:soc, length:512, min:12); if (empty_or_null(s) || strlen(s) < 12) { close(soc); audit(AUDIT_NO_BANNER, port); } v = pregmatch(pattern:'^RFB ([0-9]+)\\.([0-9]+)\n', string:s); if (empty_or_null(v)) { close(soc); audit(AUDIT_NO_BANNER, port); } ver_major = int(v[1]); ver_minor = int(v[2]); # nb: protocol versions before 3.7 don't allow the # client to select the authentication type. if (ver_major != 3 || ver_minor < 7) { close(soc); audit(AUDIT_INST_VER_NOT_VULN, protocol); } # Reply with same version. send(socket:soc, data:s); # Read the security types supported by the server. types = NULL; set_byte_order(BYTE_ORDER_BIG_ENDIAN); s = recv(socket:soc, length:1, min:1); if (empty_or_null(s)) { close(soc); audit(AUDIT_SOCK_FAIL, port); } if (strlen(s) == 1) { n = ord(s); if (n > 0) { for (i=0; i<n; i++) { s = recv(socket:soc, length:1, min:1); if (empty_or_null(s)) { close(soc); audit(AUDIT_SOCK_FAIL, port); } if (isnull(types)) types = make_list(ord(s)); else types = make_list(types, ord(s)); } } } if (types) { # Make sure authentication is required. auth_required = 1; foreach type (types) # nb: type == 0 => connection failed. if (type == 0) auth_required = 0; # nb: type == 1 => None is supported. else if (type == 1) auth_required = 0; # If it is... if (auth_required) { # Try to bypass authentication. send(socket:soc, data:mkbyte(1)); # If the protocol is below 3.8, send a ClientInit and look for a ServerInit. if (ver_minor < 8) { # Set Shared-Flag to true. send(socket:soc, data:mkbyte(1)); s = recv(socket:soc, length:128); # There's a problem if it looks like a ServerInit if (! empty_or_null(s) && strlen(s) >= 24 && getdword(blob:s, pos:0x14) + 24 == strlen(s) ) { security_hole(port); } else { close(soc); audit(AUDIT_INST_VER_NOT_VULN, protocol); } } # If the protocol is 3.8, check the SecurityResult message. else { s = recv(socket:soc, min:3, length:8); # There's a problem if it's an OK response of four null bytes. if (! empty_or_null(s) && s == mkdword(0)) { security_hole(port); } else { close(soc); audit(AUDIT_INST_VER_NOT_VULN, protocol); } } } else { close(soc); audit(AUDIT_INST_VER_NOT_VULN, protocol); } } else { close(soc); audit(AUDIT_INST_VER_NOT_VULN, protocol); } close(soc);
NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_4645B98CE46E11DA9AE700123FCC6E5C.NASL description RealVNC is susceptible to an authentication-bypass vulnerability. A malicious VNC client can cause a VNC server to allow it to connect without any authentication regardless of the authentication settings configured in the server. Exploiting this issue allows attackers to gain unauthenticated, remote access to the VNC servers. last seen 2020-06-01 modified 2020-06-02 plugin id 21574 published 2006-05-19 reporter This script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/21574 title FreeBSD : vnc -- authentication bypass vulnerability (4645b98c-e46e-11da-9ae7-00123fcc6e5c) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from the FreeBSD VuXML database : # # Copyright 2003-2018 Jacques Vidrine and contributors # # Redistribution and use in source (VuXML) and 'compiled' forms (SGML, # HTML, PDF, PostScript, RTF and so forth) with or without modification, # are permitted provided that the following conditions are met: # 1. Redistributions of source code (VuXML) must retain the above # copyright notice, this list of conditions and the following # disclaimer as the first lines of this file unmodified. # 2. Redistributions in compiled form (transformed to other DTDs, # published online in any format, converted to PDF, PostScript, # RTF and other formats) must reproduce the above copyright # notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the # distribution. # # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # include("compat.inc"); if (description) { script_id(21574); script_version("1.31"); script_cvs_date("Date: 2019/08/02 13:32:38"); script_cve_id("CVE-2006-2369"); script_bugtraq_id(17978); script_name(english:"FreeBSD : vnc -- authentication bypass vulnerability (4645b98c-e46e-11da-9ae7-00123fcc6e5c)"); script_summary(english:"Checks for updated package in pkg_info output"); script_set_attribute( attribute:"synopsis", value:"The remote FreeBSD host is missing a security-related update." ); script_set_attribute( attribute:"description", value: "RealVNC is susceptible to an authentication-bypass vulnerability. A malicious VNC client can cause a VNC server to allow it to connect without any authentication regardless of the authentication settings configured in the server. Exploiting this issue allows attackers to gain unauthenticated, remote access to the VNC servers." ); # http://www.securityfocus.com/archive/1/433994/30/0/threaded script_set_attribute( attribute:"see_also", value:"https://www.securityfocus.com/archive/1/433994/30/0/threaded" ); # https://vuxml.freebsd.org/freebsd/4645b98c-e46e-11da-9ae7-00123fcc6e5c.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?759aa26c" ); script_set_attribute(attribute:"solution", value:"Update the affected package."); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P"); script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available"); script_set_attribute(attribute:"exploit_available", value:"true"); script_set_attribute(attribute:"exploit_framework_core", value:"true"); script_set_attribute(attribute:"exploit_framework_canvas", value:"true"); script_set_attribute(attribute:"canvas_package", value:'CANVAS'); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:vnc"); script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd"); script_set_attribute(attribute:"vuln_publication_date", value:"2006/05/15"); script_set_attribute(attribute:"patch_publication_date", value:"2006/05/18"); script_set_attribute(attribute:"plugin_publication_date", value:"2006/05/19"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2006-2019 and is owned by Tenable, Inc. or an Affiliate thereof."); script_family(english:"FreeBSD Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info"); exit(0); } include("audit.inc"); include("freebsd_package.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD"); if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING); flag = 0; if (pkg_test(save_report:TRUE, pkg:"vnc=4.1.1")) flag++; if (flag) { if (report_verbosity > 0) security_hole(port:0, extra:pkg_report_get()); else security_hole(0); exit(0); } else audit(AUDIT_HOST_NOT, "affected");
Packetstorm
data source | https://packetstormsecurity.com/files/download/104471/realvnc_41_bypass.rb.txt |
id | PACKETSTORM:104471 |
last seen | 2016-12-05 |
published | 2011-08-26 |
reporter | H D Moore |
source | https://packetstormsecurity.com/files/104471/RealVNC-Authentication-Bypass.html |
title | RealVNC Authentication Bypass |
Seebug
bulletinFamily exploit description No description provided by source. id SSV:72008 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-72008 title RealVNC Authentication Bypass bulletinFamily exploit description No description provided by source. id SSV:20911 last seen 2017-11-19 modified 2011-08-28 published 2011-08-28 reporter Root source https://www.seebug.org/vuldb/ssvid-20911 title RealVNC 4.1 Authentication Bypass
Statements
contributor | Mark J Cox |
lastmodified | 2006-08-16 |
organization | Red Hat |
statement | This issue only affected version 4.1.1 and not the versions distributed with Red Hat Enterprise Linux 2.1, 3, or 4. |
References
- http://www.intelliadmin.com/blog/2006/05/security-flaw-in-realvnc-411.html
- http://www.intelliadmin.com/blog/2006/05/vnc-flaw-proof-of-concept.html
- http://www.realvnc.com/products/free/4.1/release-notes.html
- http://www.kb.cert.org/vuls/id/117929
- http://www.securityfocus.com/bid/17978
- http://securitytracker.com/id?1016083
- http://secunia.com/advisories/20107
- http://secunia.com/advisories/20109
- http://www.osvdb.org/25479
- http://www.cisco.com/warp/public/707/cisco-sr-20060622-cmm.shtml
- http://secunia.com/advisories/20789
- http://www.vupen.com/english/advisories/2006/1790
- http://www.vupen.com/english/advisories/2006/2492
- http://www.vupen.com/english/advisories/2006/1821
- http://securityreason.com/securityalert/8355
- http://marc.info/?l=vnc-list&m=114755444130188&w=2
- http://marc.info/?l=full-disclosure&m=114768344111131&w=2
- https://exchange.xforce.ibmcloud.com/vulnerabilities/26445
- http://www.securityfocus.com/archive/1/438368/100/0/threaded
- http://www.securityfocus.com/archive/1/438175/100/0/threaded
- http://www.securityfocus.com/archive/1/434560/100/0/threaded
- http://www.securityfocus.com/archive/1/434518/100/0/threaded
- http://www.securityfocus.com/archive/1/434117/100/0/threaded
- http://www.securityfocus.com/archive/1/434015/100/0/threaded
- http://www.securityfocus.com/archive/1/433994/100/0/threaded
- http://seclists.org/fulldisclosure/2022/May/29