Pentesting Cisco ACI: LLDP mishandling
Cisco ACI leaf switches trusted LLDP packets from unknown devices, so a directly connected attacker could either disable the port or trick it into joining the internal fabric VLAN. The second issue let the attacker reach the leaf's internal services, though all of them still required certificates or admin credentials.
synacktiv.com
Published on synacktiv.com
Written by Adrien Peter, Guillaume Jacques - 05/03/2021 - in Pentest - Download
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the leaf switch accepted and acted on LLDP TLVs from untrusted devices without verifying the sender, so spoofed role and VLAN values changed the port's state.
Impact
An attacker with a direct link to a leaf port could disable that port for other users, or gain access to the internal fabric VLAN, though reaching other fabric devices was limited and every exposed service still required a Cisco-signed certificate or admin credentials.
What the attacker needed
Direct physical link to a leaf SFP port; ability to send crafted LLDP frames
The fix
It was fixed in version 14.2(5l); as a workaround, set every leaf's LLDP policy to Off once all devices have been discovered.
How it was found
- Connect a device directly to an SFP interface of an ACI leaf switch.
- Capture a legitimate LLDP packet from the network to learn the required TLVs.
- Send a spoofed LLDP packet with the ACI Node Role TLV set to Leaf or Spine and the port mode set to 0.
- Observe the port enter discovery state and switching stop for the TTL period.
- Alternatively send a spoofed LLDP packet with the ACI Node Role set to APIC and the infra VLAN value.
- Configure the matching 802.1Q tag on the attacker device and reach the leaf's internal VLAN.
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 write-up has not been written yet. The Original tab links to the source.
LLDP is a small announcement protocol that network gear uses to tell its neighbours what it is. Cisco ACI switches believed these announcements from any device, so someone plugged into a port could pretend to be part of the network and change how that port behaved.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.