Unquoted Service Paths
If a service binary path contains spaces and is not quoted, Windows tries each partial path as an executable.Find Vulnerable Services
Example
Service path:C:\Program Files\My App\service.exe
Windows tries in order:
Exploit
Check write permissions on intermediate folders:Weak Service Permissions
Find Modifiable Services
SERVICE_CHANGE_CONFIG or SERVICE_ALL_ACCESS.
Modify Service Binary Path
Modify to Add Admin User
Modifiable Service Binary
If the.exe itself is writable: