Skip to content
RCE Advisory Advanced CVE-2017-11779

Windows DNSAPI Remote Code Execution Vulnerability (CVE-2017-11779)

Windows DNSAPI.dll failed to properly handle DNS responses, allowing a malicious DNS server to send corrupted responses. An attacker could run arbitrary code as Local System on the target.

Nick Freeman Follow

Originally disclosed on Microsoft

Critical 8.1 View original

Description

A remote code execution vulnerability exists in Windows Domain Name System (DNS) DNSAPI.dll when it fails to properly handle DNS responses. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the Local System Account. To exploit the vulnerability, the attacker would use a malicious DNS server to send corrupted DNS responses to the target. The update addresses the vulnerability by modifying how Windows DNSAPI.dll handles DNS responses.

Microsoft Windows DNS

Microsoft Windows DNS

Issuing CNA

Microsoft

The original report as published on the Microsoft Security Response Center, by Nick Freeman of Bishop Fox. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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, Windows DNSAPI.dll did not properly validate or handle malformed DNS responses, leading to memory corruption that could be exploited for code execution.

Impact

An attacker could run arbitrary code in the context of the Local System Account, giving full control of the affected machine.

What the attacker needed

Attacker controls a DNS server; victim's system queries that server

The fix

The vulnerability was fixed by modifying how Windows DNSAPI.dll handles DNS responses.

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 Windows component that processes replies from DNS servers, which translate website names into addresses. Because the component did not check the replies properly, a bad DNS server could send a specially crafted reply that made the victim's computer run the attacker's code 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.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.