Forcing an Excessive Flooding Condition
If a switch does not have an entry pointing to a destination MAC address, it floods the frame. What happens when a switch does not have room to store a new MAC address? And what happens if an entry that was there 2 seconds ago was just overwritten by another entry? These questions are probably what Ian Vitek must have asked himself back in 1999 when he wrote a little tool called macof (later ported to C by Dug Song).2 How switches behave when their bridging table is full depends on the vendor.
Most Cisco switches do not overwrite an existing entry in favor of a more recent one; however, after an existing entry ages out, a new one replaces it. Other switches function in a circular-buffer fashion when nearing full bridging-table capacity. This means that a new entry (MAC address Z, for example) simply overwrites an existing older entry (MAC address B, for example). Traffic destined to MAC address B now gets flooded out by all the ports that are members of the sender's VLAN. If a hacker constantly maintains a full bridging table, he can effectively transform the switch into a hub, which makes it easy for anyone off any port to collect all traffic exchanged in the port's VLAN, including one-to-one unicast conversations, as Figures 2-4 and 2-5 show.
|
MAC Address |
VLAN |
Interface |
|||||||||||||||
|
.. B |
5 |
Fa0/2 |
|||||||||||||||
|
X |
5 |
Fa0/3 |
|||||||||||||||
|
Y |
5 |
MAC B MAC B 0000.CAFE.0000
Continue reading here: Introducing the macof Tool Was this article helpful? |
|||||||||||||||
