.. / windows-unquoted-service-path
Star

This attack exploits an unquoted service path in a Windows service to achieve local privilege escalation. By placing a malicious executable in a higher‐level directory of the service’s unquoted ImagePath, Windows will execute it with the service’s SYSTEM privileges.

Command Reference: wmic, sc qc, copy, sc stop, sc start, net localgroup Target: Any Windows service whose ImagePath contains spaces and is not enclosed in quotes

Command: Copy Extra code: Copy References:

https://attack.mitre.org/techniques/T1574/009

https://blackpointcyber.com/blog/unlocking-the-mystery-of-unquoted-service-paths-another-opportunity-for-privilege-escalation/