If exploited, these flaws can allow attackers to gain unauthorized access to sensitive information or generally cause problems
During the last few weeks, Cisco has been embroiled in a serious security issue in the implementation of the web interface used on physical and virtual Cisco devices equipped with the Cisco IOS XE operating system.
Since mid-October, news has been released that a critical vulnerability has been identified (already cataloged under (CVE-2023-20198)), which allows, without authentication, full access to the system with the maximum level of privileges, if it has access to the network port through which the web interface operates.
It is mentioned that the danger of the problem is compounded by the fact that attackers have been using the unpatched vulnerability for more than a month to create additional “cisco_tac_admin” and “cisco_support” accounts with administrator rights, and to automatically place an implant on devices that provides remote access to execute commands on the device.
The problem with this vulnerability is that it generated a second vulnerability (CVE-2023-20273), which was used in an attack to install an implant on devices running Cisco IOS XE. Cisco reported that attackers exploited this second vulnerability after exploiting the first one, CVE-2023-20198, allowing them to use a new account with root privileges, created during the exploitation, to execute arbitrary commands on the device.
It is mentioned that exploiting the CVE-2023-20198 vulnerability allows an attacker to gain privilege level 15 access to the device , which they can then use to create a local user and log in with normal user privileges. Furthermore, this vulnerability makes it possible to bypass authentication by replacing characters in the request with the representation "%xx". For example, to access the WMSA (Web Services Management Agent) service, one can send a request like "POST /%2577ebui_wsma_HTTP", which calls the "webui_wsma_http" handler without authentication.
Unlike the September case, this October activity included several subsequent actions, including the deployment of an implant we call "BadCandy" that consists of a configuration file ("cisco_service.conf"). The configuration file defines the new web server endpoint (URI path) used to interact with the implant. That endpoint receives certain parameters, described in more detail below, that allow the actor to execute arbitrary commands at the system level or at the IOS level. For the implant to activate, the web server must be restarted; In at least one observed case, the server was not restarted, so the implant was never activated despite being installed.
The BadCandy implant is saved in the file path “/usr/binos/conf/nginx-conf/cisco_service.conf” which contains two variable strings made up of hexadecimal characters. The implant is non-persistent, meaning that a device reboot will remove it, but newly created local user accounts remain active even after a system reboot. New user accounts have level 15 privileges, meaning they have full administrator access to the device. This privileged access to devices and the subsequent creation of new users is registered as CVE-2023-20198.
Regarding the Cisco case, it has been publishing updated information on the investigations it has carried out, as well as on the technical analyses of the vulnerabilities presented and also on a prototype exploit, which was prepared by an independent researcher from an analysis of attackers' traffic.
Although, to ensure the appropriate level of security, it is recommended to open access to the web interface only to selected hosts or the local network, many administrators leave the option to connect from the global network. In particular, according to the Shodan service, there are currently more than 140 thousand potentially vulnerable devices registered on the global network. The CERT organization has already registered around 35 thousand Cisco devices successfully attacked.
Finally, if you are interested in learning more about the article, you can consult the original publication at the following link.