by AndyMcConachie · 10y ago · 0 comments
It's also a bit dubious to claim that DHCP is connectionless. It takes 4 packets to complete a DHCP request. While maybe not connection oriented, it's definitely at least a handshake.
I've written numerous packet generators to test DHCP servers, and DHCP Snooping implementations. This is really nothing new.
I appreciate you sharing that it doesn't seem new to you, could you share some of your examples so we can learn from your experience also?
To prevent this program from doing its evil, DHCP snooping could be configured to only allow one source IP address on a port. In fact, to prevent this kind of attack you don't even need DHCP snooping. Since it requires MAC spoofing you can configure the switch to only learn one MAC on that port, or only allow frames with a limited number of MACs to ingress the switch.
Hope this helps.
A while back I wrote opensourced some code I wrote for work that emulated IGMPv2 behavior of triple-play set top boxes. It's meant to stress IGMPv2 implementations, but it also emultates multiple DHCP clients. https://github.com/smutt/mcastClients/blob/master/mcastClien...
I used `yersinia` many years ago for this exact purpose (DHCP exhaustion). It supports attacking several layer 2 protocols as well.
They are not in the 99.99% of corporate environments outside of startup-land.