How Exploiting CVE-20 Works and What You Should Patch

Exploiting CVE-20
This analysis details Exploiting CVE-20, specifically focusing on CVE-2023-20198, a critical privilege escalation vulnerability affecting Cisco IOS XE software. This flaw allows unauthenticated attackers to create a new local user with administrative privileges (level 15) through the Web UI. The vulnerability carries a CVSS score of 10.0 (Critical), indicating maximum severity and immediate attention for affected systems.
Vulnerability Overview and Impact
CVE-2023-20198 impacts Cisco IOS XE devices configured with the Web UI feature exposed to the internet. This includes a broad range of Cisco routers and switches. An attacker does not need any prior authentication to exploit this vulnerability. The successful exploit grants full administrative control over the compromised device, equivalent to privilege level 15.
The core impact is complete compromise of the network device. Attackers can then manipulate routing, sniff traffic, launch further attacks on internal networks, or establish persistent access. This level of access enables total control over device configuration, network traffic flow, and system integrity. The critical CVSS score reflects this extensive potential for damage and control.
Affected versions include all Cisco IOS XE Software releases with the HTTP Server feature enabled, prior to the release of specific patches. Cisco's advisory did not list specific version numbers as affected, but rather the presence and exposure of the Web UI feature. Organizations must identify if their Cisco IOS XE devices expose the Web UI to untrusted networks.
Technical Root Cause Analysis
The root cause of CVE-2023-20198 lies within an authentication bypass vulnerability in the Web UI component of Cisco IOS XE. This flaw permits the creation of local user accounts with administrative privileges without proper authentication. Specifically, an undocumented or inadequately protected HTTP endpoint allowed direct interaction with user creation functionalities.
Attackers identified a specific Uniform Resource Identifier (URI) within the Web UI designed to handle user management. This URI, when accessed with a specially crafted HTTP POST request, bypassed the standard authentication mechanisms. The underlying code logic failed to properly validate the user's session or credentials before processing requests to create new local user accounts. This created a critical window for unauthenticated access.
The vulnerability essentially acted as a backdoor. It allowed the direct invocation of internal functions responsible for adding local users. The HTTP request parameters could specify a username, password, and crucially, a privilege level. The absence of authentication checks at this specific endpoint meant any external actor could submit these parameters and have a new, highly privileged user account created on the system.
Exploitation Mechanics
Exploiting CVE-2023-20198 begins with an unauthenticated HTTP POST request. This request targets a specific path on the vulnerable Cisco IOS XE device's Web UI. The payload of this request contains parameters for a new username and password, along with a directive to assign privilege level 15 to the new account.
A typical exploitation attempt involves sending a request similar to the following, though specific endpoints might vary based on the exact IOS XE version or configuration:
POST /webui/logout.html?method=login HTTP/1.1
Host: [TARGET_IP]
Content-Type: application/x-www-form-urlencoded
Content-Length: [LENGTH]
username=[NEW_USERNAME]&password=[NEW_PASSWORD]&privilege=15
This crafted request, sent to the exposed Web UI, triggers the creation of a new administrative user. The system processes this request without validating the source's authority, immediately adding the specified user to the local user database.
After successful account creation, attackers log in to the Web UI or via SSH/Telnet using the newly created credentials. This initial access provides full administrative control. Threat actors commonly chain this vulnerability with CVE-2023-20273, a separate command injection flaw. CVE-2023-20273 allows the installation of a Lua-based implant, ensuring persistent access and enabling arbitrary command execution on the device.
The implant, often named "_webui_wsma_http.conf" or similar, is a malicious Lua script. It typically opens a new listening port (e.g., 8080) on the device. This new port provides a backdoor for remote command and control, independent of the legitimate Web UI. The implant ensures continued access even if the initial administrative account is discovered and removed. Understanding the full scope of Exploiting CVE-20 requires recognizing these post-exploitation tactics.
Detection: How to Check if You're Affected
Detecting compromise from CVE-2023-20198 involves multiple layers of scrutiny. Start by examining your Cisco IOS XE devices for exposed Web UI interfaces. You can use Secably's free website vulnerability scanner or free port scanner to identify open HTTP/HTTPS ports and potentially vulnerable Web UIs on your external attack surface. Additionally, a tool like Zondex can help identify internet-wide exposure of Cisco IOS XE Web UIs.
Check for the presence of unauthorized local user accounts with privilege level 15. Execute the show users command in privileged EXEC mode. Look for any unfamiliar usernames. Next, inspect the running configuration for unexpected entries related to user accounts or HTTP server settings. The command show running-config | include username helps identify user definitions.
Examine device logs for suspicious activity. Look for syslog messages indicating new user creation events that do not align with administrative actions. Web server access logs, if enabled and accessible, might reveal unauthenticated POST requests to paths like /webui/logout.html?method=login. These requests are strong indicators of attempted or successful exploitation.
Scan for the presence of the Lua-based implant associated with CVE-2023-20273. This implant often resides in flash memory or specific configuration directories. Search for files named _webui_wsma_http.conf or other suspicious Lua scripts. The content of such files might include directives like webui_port 8080 auth local-user, indicating a backdoor port. This implant signifies a deeper compromise after initial Exploiting CVE-20. For more context on this threat, refer to Unpacking CVE-2023-20198 — Cisco IOS XE Web UI Privilege Escalation.
Monitor network traffic originating from your Cisco IOS XE devices. Look for unusual outbound connections to unknown IP addresses or unexpected traffic on non-standard ports. The implant often establishes command and control channels. Secably offers continuous attack surface monitoring, helping detect unauthorized changes and exposed services that could indicate compromise or ongoing vulnerability.
Remediation Steps
Immediate remediation requires applying Cisco's official patches. Cisco released specific software updates to address CVE-2023-20198 and CVE-2023-20273. Consult the Cisco Security Advisory for the exact fixed software releases applicable to your specific device models and IOS XE versions.
If patching is not immediately feasible, implement critical mitigations. Disable the HTTP Server feature on your Cisco IOS XE devices if it is not strictly necessary. Use the commands no ip http server and no ip http secure-server in global configuration mode. This removes the attack vector entirely.
Restrict access to the Web UI using access control lists (ACLs) or firewall rules. Only permit trusted IP addresses or networks to access the HTTP/HTTPS management interfaces. This significantly reduces the exposure to unauthenticated attackers. Configure your device to only allow management access from internal, secure networks.
Perform a thorough post-compromise cleanup if exploitation is detected. Change all local user passwords on the device. Remove any unauthorized user accounts, especially those with privilege level 15. Inspect and remove any suspicious files or configurations, particularly the Lua-based implant. A complete device reboot and configuration review are recommended after cleanup.
Regularly review logs for any anomalies. Implement strong password policies for all administrative accounts. Consider enabling multi-factor authentication where supported. These proactive measures enhance the overall security posture and reduce the risk of future Exploiting CVE-20 attempts.
Timeline of Disclosure
The timeline surrounding CVE-2023-20198 highlights rapid discovery and widespread exploitation. Cisco Talos, Cisco's threat intelligence group, first observed suspicious activity on October 11, 2023. These observations indicated active exploitation in the wild targeting Cisco IOS XE devices.
Cisco's Product Security Incident Response Team (PSIRT) immediately began investigating. On October 12, 2023, Cisco PSIRT issued a security advisory detailing both CVE-2023-20198 (privilege escalation) and CVE-2023-20273 (command injection for implant installation). This advisory alerted customers to the critical nature of the vulnerabilities and the active exploitation.
The U.S. Cybersecurity and Infrastructure Security Agency (CISA) subsequently issued an alert on October 16, 2023. CISA's alert reinforced the severity and confirmed ongoing exploitation. This prompted many organizations to take urgent action to mitigate the threat.
Throughout October and November 2023, Cisco provided ongoing updates and released specific software patches. The incident response and patching effort was extensive due to the critical nature and broad impact of the vulnerabilities. This rapid sequence of events underscores the importance of prompt patching and continuous monitoring in defending against actively exploited flaws like Exploiting CVE-2023-20198.
For further insights into complex exploitation chains, consider reading Exploiting Ivanti Connect Secure Flaws What.
Check your site for vulnerabilities
Run a free security scan — no signup, results in seconds.