BMC Patrol Agent – Domain User to Domain Admin – Part 2 – Securifera
The BMC PATROL Agent allowed an unprivileged domain user to execute commands on remote systems, including domain controllers, bypassing Windows access controls. A writable folder in the system PATH and a service that executed a binary without an absolute path allowed privilege escalation to SYSTEM by placing a malicious batch file.
securifera.com
Published on securifera.com
{{media:0}}](https://www.securifera.com/wp-content/uploads/2018/12/bmcpatrol7.jpg)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the PATROL Agent did not enforce Windows authorisation checks, and its service executed a command without an absolute path, allowing a writable PATH folder to be used for privilege escalation.
Impact
An unprivileged domain user could execute commands on any Windows system running PATROL, including domain controllers, and escalate to SYSTEM, leading to domain admin compromise.
What the attacker needed
Domain user credentials; PATROL Agent installed on target; writable folder in PATH
The fix
The binary hijack in the PatrolAgent service was fixed by a patch from BMC (CVE-2020-35593).
How it was found
- Use PATROL CLI to execute commands on a remote system as an unprivileged domain user.
- List environmental variables to find a writable folder in the PATH.
- Confirm the folder is writable.
- Identify that the PatrolAgent service runs 'cmd /c bootime' without an absolute path.
- Place a malicious batch file named boottime.bat in the writable folder.
- Restart the PATROL Agent service using the pconfig command to trigger execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A remote administration tool called BMC PATROL let a low-privileged user run commands on other computers, even domain controllers, without the usual Windows login checks. The tool also started a service that ran a program without specifying its full location, so the attacker put a malicious file in a folder that was searched first, and the service ran it with high privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.