Top Banner
0x20 Hack Defending like it’s 2008
13
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 0x20 hack

0x20 HackDefending like it’s 2008

Page 2: 0x20 hack

2008 DNS vulnerabilities are teh shitz The Dan Kaminskys find a way to do

dns cache poisoning… on the Internet

Everyone freaks out He gives some solutions like DNSSEC Everyone goes… yeah right. See you

in 2013 People freak out again

Page 3: 0x20 hack

DNS Cache Poisoning Inject a fake DNS result into a caching DNS server Clients requesting that hostname will be given

the malicious response Works for as long as TTL is set Example:

› Vulnerability in BIND exploited› Injects a cached response for www.google.com› Grandma goes to www.google.com, and is redirected

Page 4: 0x20 hack
Page 5: 0x20 hack

Mitigations DNSSEC (we’re getting there) Patch your DNS server (yes of course, but not an actual

solution) Disable caching (not realistic in most cases) Randomize Name Servers (helps limit the affect of a poison) Prepending a nonce to queries (balls930282-

fwq.www.rochester2600.com - effective but “omg what’s a nonce”)

Removing duplicate queries (mitigate birthday attack) 0x20 Hack

Page 6: 0x20 hack
Page 7: 0x20 hack

0x20 Hack

Page 8: 0x20 hack

0x20 Hack Refers to the simplest hack to modify the case of a DNS

requests 0x20 bit manipulation is lower CPU cost compared to for

example Python to change the case of a string Turns out every DNS server ever can handle this hack Requests need to generate a random bitmask Only works if the DNS server does not pay attention to

case No entropy for TLR or number domains but helps most

hostnames

Page 9: 0x20 hack

Examplewww.rochester2600.comWWW.ROCHESTER2600.COMwWw.rOChesTer2600.CoMwWW.ROCheSTeR2600.comWWW.roCHEsTeR2600.COM

000 0000000000000 000111 1111111111111 111010 0110001000000 101011 1110011010011 000111 0011101010000 111

Page 10: 0x20 hack

Result

Attackers must brute force all possible combinations of upper and lower to successfully poison your cache

Page 11: 0x20 hack

Why?

I didn’t know about this and love it’s simplicity

Hipster Tor

Page 12: 0x20 hack

What did you learn

A and a are 0x20 apart The 0x20 hack No one uses this anymore…history

lesson Nothing. You’re not even looking at the

screen right now.

Page 13: 0x20 hack

End.