Skip to content
RCE Write-up Intermediate

Multiple vulnerabilities in Lantronix EDS-MD IoT gateway for medical devices

The Lantronix EDS-MD IoT gateway has multiple vulnerabilities, including an authenticated command injection that lets a logged-in user run commands as root, and a cross-site request forgery that lets an attacker make a logged-in administrator perform actions such as uploading files or changing the password. The device also uses outdated software components with known vulnerabilities.

Pentagrid AG Follow

Published on pentagrid.ch

Pentagrid identified several vulnerabilities in Lantronix's EDS-MD product during a penetration test. The EDS-MD is an IoT gateway for medical devices and equipment.

Pentagrid AG, on pentagrid.ch

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 web interface does not properly sanitise user input in the certificate generation feature, allowing command injection, and it lacks CSRF protection because it relies on browser-based authentication without tokens.

Impact

An attacker with authenticated access can execute arbitrary commands as root, and a CSRF attack could let an attacker perform administrative actions if a logged-in admin visits a malicious site.

What the attacker needed

Authenticated access to web interface; victim admin visits attacker site; attacker knows device IP

The fix

The vendor planned to fix some issues in later firmware releases, but the report does not confirm that all were fixed; recommended fixes include adding CSRF tokens and updating components.

How it was found

  1. Log in to the Lantronix web interface.
  2. Send a POST request to the certificate generation endpoint with a crafted 'cn' parameter containing shell commands.
  3. Observe that the injected command executes on the device (e.g., ping to attacker IP).
  4. Use a reverse shell payload to gain interactive root access.

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 report describes security problems in a small network device used in hospitals. One problem is that someone who can log in to the device's web page can trick it into running harmful commands, giving them full control. Another problem is that a malicious website could make an already-logged-in administrator's browser send commands to the device without the administrator knowing.

What is RCE?

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

More by Pentagrid AG

View all

7 more disclosed reports, best first.

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.