VNC Without Authentication

A VNC server allows connections without a password, giving anyone who can reach it a view of the desktop and control of the keyboard and mouse.

SeverityCritical
CVSS 3.19.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Open in the calculator
CVSS 4.09.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Open in the calculator
CWECWE-306: Missing Authentication for Critical Function
OWASP Top 10A07:2025 Authentication Failures
MITRE ATT&CKT1021.005 VNC, T1113 Screen Capture
CategoryBroken Access Control

Description

The VNC server offers the None security type, so a client can connect without supplying a password and is given the remote desktop. VNC servers support several security types and the server decides which to offer; when None is offered, authentication is skipped entirely. This is usually the result of a server installed for convenience or for a one-off support task, an embedded VNC service in an appliance or industrial human-machine interface (HMI), or a server started with authentication explicitly switched off.

Anyone who can reach the port therefore sees everything on the screen and can type and click as the user whose session is shown. If a user is logged in, the attacker can open documents, run commands, read email and use any application or saved credential available to that user; if the session belongs to an administrator or a server console, this amounts to control of the system. If the screen is locked or at a login prompt, the attacker still sees what is displayed and can attempt to log in from the console. On industrial systems the attacker can operate the HMI directly, which may have physical consequences.

The issue is confirmed by connecting with a VNC viewer, normally to TCP 5900 or a port above it for additional displays, and receiving the desktop without a password prompt. The Nmap vnc-info script and the Metasploit vnc_none_auth scanner report the security types a server offers. Scanners report the issue as VNC server unauthenticated access.

Remediation

  • Configure the VNC server to require authentication and stop offering the None security type. Prefer operating system account authentication or a TLS-protected security type to the legacy VNC password scheme, which limits passwords to eight characters and does not encrypt the session. In TigerVNC this is controlled with the SecurityTypes parameter; in RealVNC Server, through its authentication settings.
  • Bind the VNC server to the loopback interface where possible and reach it through an SSH tunnel or VPN, or restrict TCP 5900 and above with firewall rules to administration hosts.
  • Remove VNC servers that are not needed, including those installed temporarily for support, and use the organisation's approved remote administration tooling instead.
  • Where an embedded or industrial system's VNC configuration cannot be changed, isolate the device on a restricted network segment.

Confirm the fix by connecting with a VNC viewer and checking that authentication is required, and that the server no longer offers the None security type.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Network Services Findings

Every Network Services finding