ManageEngine ADManager Plus installServiceWithCredentials Command Injection Remote Code Execution Vulnerability
The installServiceWithCredentials function in ManageEngine ADManager Plus fails to validate a user-supplied string before passing it to a system call. An authenticated remote attacker could exploit this to run arbitrary code as the service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of ManageEngine ADManager Plus. Authentication is required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the function passes user-controlled input into a shell command without sanitising or escaping it, allowing command injection.
Impact
An authenticated attacker could execute arbitrary code in the context of the service account, though authentication is required first.
What the attacker needed
Valid authenticated account
The fix
The vendor issued an update to correct the vulnerability, so affected installations should be patched.
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 report has not been written yet. The Original tab links to the source.
When a program builds a command for the operating system out of text a user supplies, it must check that text carefully. Here it did not, so someone who can log in could sneak in extra commands and make the server run them. Those commands run with the permissions of the account the service uses, which is often powerful.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.