Windows Lightweight Directory Access Protocol (LDAP) Remote Code Execution Vulnerability (CVE-2022-30161)
A Windows LDAP client could execute arbitrary code when it connected to a malicious LDAP server that sent specially crafted replies. An attacker who convinced a user to connect to such a server could gain remote code execution within the context of the user's LDAP client application.
FAQ
How could an attacker exploit this vulnerability? An attacker could exploit the vulnerability by convincing a user to connect a Lightweight Directory Access Protocol (LDAP) client to a malicious LDAP server. When the vulnerability is successfully exploited this could allow the malicious server to gain remote code execution within the LDAP client.
FAQ
According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution? An authenticated victim who is connected to the network must be tricked or persuaded to connect to a malicious LDAP server using their LDAP client application. After the connection is made, the server can send specially crafted replies to the client that exploit the vulnerability and permit execution of arbitrary code within the context of the user's LDAP client application.
Windows LDAP - Lightweight Directory Access Protocol
Windows LDAP - Lightweight Directory Access Protocol
Microsoft
Microsoft
Customer Action Required
Yes
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 Windows LDAP client does not properly validate or handle specially crafted replies from an LDAP server, leading to memory corruption or unsafe processing.
Impact
An attacker could gain remote code execution within the context of the victim's LDAP client application, but the victim must first be tricked into connecting to the malicious server.
What the attacker needed
Victim is authenticated and on the network; victim is tricked into connecting to a malicious LDAP server
How it was found
- An attacker sets up a malicious LDAP server.
- The attacker convinces an authenticated victim to connect their LDAP client to the malicious server.
- The malicious server sends specially crafted replies to the client.
- The replies exploit the vulnerability and allow arbitrary code execution in the context of the user's LDAP client application.
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.
LDAP is a protocol used to look up directory information, such as users and computers, on a network. A client program on Windows connects to an LDAP server to fetch that information. Here, a malicious server could send back a reply that tricks the client into running the attacker's code on the victim's machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.