Skip to content
Memory corruption Advisory Advanced CVE-2021-21889

Lantronix PremierWave 2050 Web Manager Ping stack-based buffer overflow vulnerability

A stack-based buffer overflow in the Ping functionality of the Lantronix PremierWave 2050 web manager allows an authenticated attacker to send a crafted HTTP request with a long host parameter, leading to remote code execution.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.9 View original

A stack-based buffer overflow vulnerability exists in the Web Manager Ping functionality of Lantronix PremierWave 2050 8.9.0.0R4 (in QEMU). A specially crafted HTTP request can lead to remote code execution.

Matt Wiseman, on Cisco Talos

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

How it worked

Root cause

The code uses sprintf to copy a user-controlled host parameter into a fixed-size stack buffer without bounds checking.

Impact

An authenticated attacker with no special permissions could achieve remote code execution on the device.

What the attacker needed

Valid credentials; network access to the device

How it was found

  1. Log in to the web manager with valid credentials.
  2. Send an HTTP POST request to the root path with parameters ajax=Ping, submit=Ping, timeout=5, count=3, and a host value that starts with 'fe80:' followed by a long string of characters.
  3. The host value must not contain '%' or a null byte.
  4. The long host value overflows the stack buffer, corrupting the return address and allowing control of the program counter.

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 device's web interface has a 'ping' tool that takes an address you type in. The program copies that address into a fixed-size memory space without checking its length, so a very long address spills over into other memory and can let an attacker run their own code.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Matt Wiseman

View all

73 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.