Description
Various Ricoh printer drivers allow escalation of privileges on Windows systems.
For vulnerable drivers, a low-privileged user can read/write files within the `RICOH_DRV` directory and its subdirectories.
`PrintIsolationHost.exe`, a Windows process running as NT AUTHORITY\SYSTEM, loads driver-specific DLLs during the installation of a printer. A user can elevate to SYSTEM by writing a malicious DLL to the vulnerable driver directory and adding a new printer with a vulnerable driver.
This module leverages the `prnmngr.vbs` script to add and delete printers. Multiple runs of this module may be required given successful exploitation is time-sensitive.
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/windows/local/ricoh_driver_privescmsf undefined(ricoh_driver_privesc) > show actions ...actions...msf undefined(ricoh_driver_privesc) > set ACTION < action-name >msf undefined(ricoh_driver_privesc) > show options ...show and set options...msf undefined(ricoh_driver_privesc) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub