Rapid7

module

Lexmark Device Embedded Web Server RCE

Disclosed
Mar 13, 2023
Created
Sep 19, 2023

Description

A unauthenticated Remote Code Execution vulnerability exists in the embedded webserver in certain Lexmark devices through 2023-02-19.
The vulnerability is only exposed if, when setting up the printer or device, the user selects "Set up Later" when asked
if they would like to add an Admin user. If no Admin user is created the endpoint `/cgi-bin/fax_change_faxtrace_settings`
is accessible without authentication. The endpoint allows the user to configure a number of different fax settings.

A number of the configurable parameters on the page (ex. `FT_Custom_lbtrace`) fail to be sanitized properly before being
used in an bash eval statement: `eval "$cmd" > /dev/null`, allowing for an unauthenticated user to run arbitrary commands.

Authors

James Horseman
Zach Hanley
jheysel-r7

Platform

Unix

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/linux/http/lexmark_faxtrace_settings
msf exploit(lexmark_faxtrace_settings) > show targets
...targets...
msf exploit(lexmark_faxtrace_settings) > set TARGET < target-id >
msf exploit(lexmark_faxtrace_settings) > show options
...show and set options...
msf exploit(lexmark_faxtrace_settings) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.