Skip to content
Memory corruption Advisory Advanced CVE-2021-21890CVE-2021-21891

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

A stack-based buffer overflow exists in the FsBrowseClean functionality of the Lantronix PremierWave 2050 Web Manager, where user-controlled path data is copied into a fixed-size buffer without length checks. An authenticated attacker with filesystem permissions could exploit this to corrupt the stack and achieve remote code execution.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stack-based buffer overflow vulnerability exists in the Web Manager FsBrowseClean 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 path into a fixed-size stack buffer without any length validation.

Impact

Successful exploitation allows an authenticated attacker with the `filesystem` permission to overflow a fixed-size buffer allocated on the stack and corrupt the stack frame, resulting in attacker-control of the program counter and therefore remote code execution.

What the attacker needed

Authenticated access; filesystem permission

How it was found

  1. Authenticate to the Web Manager with an account that has filesystem permissions.
  2. Send an HTTP POST request with the ajax parameter set to FsBrowseClean and the action parameter set to either deletedir or deletefile.
  3. Include a path parameter containing a very long string to overflow the buffer.

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 memory corruption bug in a small Wi-Fi module's web interface. When a logged-in user sends a request to delete a file or folder, the device copies the supplied path into a fixed-size memory area without checking its length. By sending a very long path, an attacker can overwrite nearby memory and potentially take control of the device.

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.