Skip to content
Access control Write-up Beginner

CVE-2019-12643: Cisco IOS XE Authentication Bypass Vulnerability

A debugging endpoint in Cisco IOS XE's REST API service container was enabled by default, allowing unauthenticated users to list all valid authentication tokens. An attacker could use a retrieved token to act as an administrator on the device.

zerodayinitiative.com

Published on zerodayinitiative.com

An authentication bypass vulnerability has been reported in the Cisco REST API virtual service container for Cisco IOS XE Software. This vulnerability is due to a debugging API endpoint being enabled by default in the management of the REST API authentication service.

The author, on zerodayinitiative.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

The debug_tokens configuration parameter was set to 'yes' by default, enabling an unauthenticated debug endpoint that exposes valid authentication tokens.

Impact

An unauthenticated attacker could bypass authentication and perform actions as an administrator on the target server.

What the attacker needed

REST API service container installed and activated; Network access to the REST API on port 55443/TCP; A user with privilege level 15 must exist

The fix

Cisco released a fixed version of the REST API virtual service container and a hardened IOS XE release that prevents installation or activation of a vulnerable container.

How it was found

  1. Configure the REST API on the appliance and create a user with privilege level 15.
  2. Request an authentication token using a cURL command with the privileged user's credentials.
  3. Run the proof-of-concept script against the target host.
  4. The script retrieves all active authentication tokens and uses the first one to query network interface information.

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 write-up has not been written yet. The Original tab links to the source.

This is a flaw in a network device's web API. A hidden debugging page was left switched on, and it showed a list of secret passes (tokens) that logged-in users use. Anyone who could reach that page could take a pass and pretend to be an administrator.

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.

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.