Skip to content
RCE Write-up Advanced

Expand file tree

The AnyConnect auto-update IPC channel accepted unsolicited messages from a low-privileged local user and failed to validate the second file argument, letting an attacker place a malicious DLL that a SYSTEM-run signed binary then loaded. A related flaw let the same user stop the VPN agent service or overwrite VPN profiles, bypassing Always-On.

github.com

Published on github.com

Raw

The author, on github.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

Impact

An authenticated local user could execute arbitrary code with SYSTEM privileges; separately they could stop the VPN agent service (denial of service) or write arbitrary VPN profiles to bypass Always-On, though the profile issue was reportedly not fixed at the time of writing.

What the attacker needed

Valid local Windows credentials; AnyConnect client installed; ability to send local IPC messages

The fix

The privilege escalation was fixed in AnyConnect 4.9.00086; the DoS appears fixed in 4.9.01095, but the Always-On bypass was not fixed at the time of writing.

How it was found

  1. Send an unsolicited IPC message to the agent containing a CAC-nc-install command with a Cisco-signed downloader as the first file and a malicious DLL as the second.
  2. The agent copies the signed downloader to its Downloader folder and starts it as SYSTEM with the supplied command.
  3. The downloader copies both files into a random temp installer folder.
  4. The downloader runs as SYSTEM from that folder and loads the malicious DLL, executing its code as SYSTEM.

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.

AnyConnect is a VPN program that runs a background service with high (SYSTEM) privileges. Its parts talk to that service over a local network port, and the service trusted messages without checking who sent them or what files they pointed to. A normal user on the machine could therefore get their own code run as the all-powerful SYSTEM account.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.