Skip to content
Access control Disclosed report Advanced CVE-2023-20198CVE-2023-20273

Cisco IOS XE instance at ████ vulnerable to CVE-██████

The Cisco IOS XE web UI had improper path validation that allowed bypassing Nginx filtering to reach an internal SOAP endpoint without authentication. An attacker could then execute arbitrary IOS commands or configuration changes with privilege 15, and chain with another flaw to escalate to root on the underlying Linux OS.

odaysec Follow

Originally disclosed on HackerOne

Critical 9.1 View original
  • Fixed in 3 months
  • Disclosed after 4 months

Summary:

CVE-███████ is characterized by improper path validation to bypass Nginx filtering to reach the webui_wsma_http web endpoint without requiring authentication. By bypassing authentication to the endpoint, an attacker can execute arbitrary Cisco IOS commands or issue configuration changes with Privilege 15 privileges. Further attacks involved exploitation of CVE-2023-20273 to escalate to the underlying Linux OS root user to facilitate implantation.

This PoC exploits CVE-█████████ to leverage two different XML SOAP endpoints: The vulnerability check, config, and command execution options all target the cisco:wsma-exec SOAP endpoint to insert commands into the execCLI element tag. The add user option targets the cisco:wsma-config SOAP endpoint to issue a configuration change and add the Privilege 15 account. This endpoint could be [ab]used to make other configuration changes, but thats outside the scope of this PoC.

Proof On Concepts :

See below for an example request that bypasses authentication on vulnerable instances of IOS-XE. This POC creates a user named baduser with privilege level 15. Let’s dig into the details.

image.png
image.png From the original on HackerOne
  1. Sign in as any user ███ query
  2. Visit Searchbar and Search Query ██████████: "MTN Innovation Centre"`
  3. Found domain owned by MTN Cameroon as ███
  4. Intercept url to burp-suite and sent to repeater
  5. Sent to intruder and Set up the exploits here
  6. Run exploits bellow command
Bash
exploit.py -t ████ -c

Testing for vulnerability
Target IP:      █████
Target URL:     █████████
Vulnerable:     True
IOS Ver:        ISR4331/K9 europ-constantia-2 IOS 16.6 Cisco IOS Software [Everest], ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.6.4, RELEASE SOFTWARE (fc3)

Done.
Bash
exploit.py -t █████ -g

Selected Target:        ██████
Running in Exec Mode
Executing Command:      sh run

Sending exploit to target URL:  █████

Building configuration...
Current configuration : 17326 bytes
Bash
enable secret 5 $1$vF3Q$wplcifyib3DUyzbgcUGe/1
enable password 7 1214041E1E
snmp-server trap-source GigabitEthernet0/0/0.3029
snmp-server source-interface informs GigabitEthernet0/0/0.3029
snmp-server contact ████ ██████

and you can see all the sensitive for configuration was exposed

image.png
image.png From the original on HackerOne
image.png
image.png
image.png
image.png

Supporting Material/References:

  • Cisco Advisory
  • horizon3ai CVE-██████ research
  • horizon3ai CVE-██████ PoC
  • LeakIX CVE-2023-20273 PoC

Impact

Cisco is providing an update for the ongoing investigation into observed exploitation of the web UI feature in Cisco IOS XE Software. We are updating the list of fixed releases and adding the Software Checker. Our investigation has determined that the actors exploited two previously unknown issues. The attacker first exploited CVE-█████ to gain initial access and issued a privilege 15 command to create a local user and password combination. This allowed the user to log in with normal user access. The attacker then exploited another component of the web UI feature, leveraging the new local user to elevate privilege to root and write the implant to the file system.

The original report as published on HackerOne, by odaysec. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An unauthenticated attacker could execute arbitrary IOS commands or configuration changes with privilege 15, and then escalate to root on the underlying Linux OS to install an implant.

What the attacker needed

Network access to the web UI; vulnerable IOS XE version

How it was found

  1. Send a crafted request to the vulnerable web UI that bypasses authentication.
  2. Use the cisco:wsma-exec SOAP endpoint to insert commands into the execCLI element.
  3. Use the cisco:wsma-config SOAP endpoint to add a privilege 15 user.
  4. Log in with the new user and exploit CVE-2023-20273 to escalate to root.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a flaw in Cisco routers' web management interface. A remote attacker could skip the login step and run commands on the device as an administrator, then use a second bug to take full control of the underlying operating system.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by odaysec

View all

6 more disclosed reports, best first.

More from MTN Group

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.