Microsoft WDAC OLE DB provider for SQL Server Remote Code Execution Vulnerability (CVE-2022-38031)
The Microsoft WDAC OLE DB provider for SQL Server could be exploited by tricking an authenticated user into connecting to a malicious SQL server via OLEDB, which could result in the server receiving a malicious networking packet. This could allow the attacker to execute code remotely on the client.
FAQ
How could an attacker exploit this vulnerability? An attacker could exploit the vulnerability by tricking an authenticated user into attempting to connect to a malicious SQL server via OLEDB, which could result in the server receiving a malicious networking packet. This could allow the attacker to execute code remotely on the client.
Microsoft WDAC OLE DB provider for SQL
Microsoft WDAC OLE DB provider for SQL
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 OLE DB provider does not properly validate or handle a malicious networking packet received from a SQL server, leading to memory corruption or unsafe processing that allows remote code execution.
Impact
An attacker could execute code remotely on the client, but only if an authenticated user is tricked into connecting to a malicious SQL server via OLEDB.
What the attacker needed
Authenticated user; user tricked into connecting to malicious server
The fix
Microsoft released a security update for this vulnerability; the text says customer action is required.
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.
This is a flaw in a Microsoft component that lets programs talk to SQL Server databases. If a user is tricked into connecting to a bad database server, that server can send back a specially crafted network message that makes the user's computer run the attacker's code. The user must be logged in and must try to connect to the malicious server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.