Skip to content
RCE Write-up Advanced

Bee-yond Capacity: Unauthenticated RCE in Extreme Networks/Aerohive Wireless APs - CVE-2023-35803

A service on Aerohive/Extreme Networks access points listens on all interfaces without authentication and copies a user-supplied query parameter into fixed-size stack buffers using an unbounded string copy, causing a buffer overflow. An attacker could overwrite the saved return address and, by brute-forcing the limited libc address space, achieve remote code execution as the service.

Lachlan Davidson Follow

Published on research.aurainfosec.io

CVE-2023-35803 is a fully unauthenticated Remote Code Execution (RCE) vulnerability affecting (as far as we can tell) all Aerohive/Extreme Networks access points running HiveOS/Extreme IQ Engine before 10.6r2.

Lachlan Davidson (@lachlan2k), on research.aurainfosec.io

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 service extracts the ifname query parameter and copies it with strcpy into fixed-size stack buffers (16 bytes and roughly 512 bytes) without any length check.

Impact

An unauthenticated attacker on any reachable interface, including captive portal interfaces, could achieve remote code execution on the access point, though the exploit relies on brute-forcing ASLR and the write-up's final chain was still being refined.

What the attacker needed

Network access to port 5916; no authentication required

How it was found

  1. Connect to the service on port 5916 and send an acsinit command with an oversized ifname value
  2. Observe the process crash and restart in the device logs
  3. Attach a debugger and send a cyclic pattern to find the offset that overwrites the return address
  4. Build a ROP chain using libc gadgets to load a command pointer into r0 and call system
  5. Brute-force the limited set of possible libc base addresses to defeat ASLR
  6. Use a stack-pointer gadget to point r0 near the payload and execute the command

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.

The access point runs a small background program that accepts commands over the network without asking for a password. It takes a value from the incoming text and copies it into a small fixed-size space in memory without checking the length, so a long value spills over into neighbouring memory. Because the spilled data can overwrite the address the program returns to, an attacker can redirect execution to their own command and run code on the device.

What is RCE?

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

More from Extreme Networks

View all

The newest disclosed reports for this program.

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.