module

Lexmark Device Embedded Web Server RCE

Disclosed
2023-03-13
Created
2023-09-19

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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.