CAS-005 · Question #157
During a security assessment, a penetration tester executed the following attack: The tester then shared the results with the security analyst. Which of the following should the analyst do to…
The correct answer is C. Disable services with unquoted paths on the endpoint. The question describes a specific type of attack related to unquoted service paths and asks for the direct remediation to address this vulnerability.
Question
During a security assessment, a penetration tester executed the following attack:
The tester then shared the results with the security analyst. Which of the following should the analyst do to remediate the attack?
Options
- AEnable user control access on the endpoint.
- BEnable a PowerShell execution policy on the endpoint.
- CDisable services with unquoted paths on the endpoint.
- DImplement a security endpoint solution.
How the community answered
(27 responses)- A4% (1)
- B11% (3)
- C81% (22)
- D4% (1)
Why each option
The question describes a specific type of attack related to unquoted service paths and asks for the direct remediation to address this vulnerability.
Enabling User Account Control (UAC) helps prevent unauthorized changes to the system but does not directly address the unquoted service path vulnerability, which allows privilege escalation even with UAC enabled.
Enabling a PowerShell execution policy restricts script execution, but the unquoted service path vulnerability exploits how Windows services locate executables, not PowerShell script execution.
The attack refers to the 'unquoted service path' vulnerability, which occurs when a Windows service executable path contains spaces and is not enclosed in quotes, allowing an attacker to inject and execute arbitrary code. Disabling or fixing services with unquoted paths by enclosing the path in quotes directly remediates this specific privilege escalation vulnerability.
Implementing a general security endpoint solution (like EDR) is a good practice for overall security but is a broad measure that may not specifically prevent or remediate the root cause of an unquoted service path vulnerability without specific configuration or detection rules.
Concept tested: Unquoted service path vulnerability remediation
Source: https://learn.microsoft.com/en-us/windows/win32/services/service-security-and-access-rights
Community Discussion
No community discussion yet for this question.