Attacks and Exploits
Service queries show four binary paths, and the tester can write only to the root of C:\. Which service is open to unquoted service path injection?
Show the answer
Correct answerB. C:\Program Files\Vendor App\svc.exe
AWhy not this: The only space follows the executable and begins its arguments, so Windows runs the real binary.
BWhy this is right: No quotes and a space in a folder name make Windows try C:\Program.exe first, which the tester can plant.
CWhy not this: Quotation marks make Windows read the whole path as one file, so no earlier name is tried.
DWhy not this: With no spaces in the path, Windows has only one possible file to run, so nothing can be planted.
The unquoted path contains a space, so Windows first tries C:\Program.exe, a location the tester can write to. Quotation marks make Windows treat the whole path as one file, so the quoted version is not exploitable.