Skip to content
Access control Write-up Advanced

Layer 2 network security bypass using VLAN 0, LLC/SNAP headers and invalid length

Layer 2 network security controls such as IPv6 Router Advertisement Guard can be bypassed by encapsulating IPv6 packets using VLAN 0 tags, LLC/SNAP headers, or invalid 802.3 length fields, because some devices fail to inspect these alternative encapsulations. An attacker on the local network could then send rogue Router Advertisements that are accepted by hosts, potentially redirecting or disrupting IPv6 traffic.

Etienne Champetier Follow

Published on blog.champtar.fr

You should always drop unknown/unclassified traffic. Using VLAN 0, LLC/SNAP headers and invalid length gives you multiple ways to encapsulate the same L3 payload on Ethernet/Wifi, allowing to bypass some L2 network security control implementations like IPv6 Router Advertisement Guard.

Etienne Champetier / champtar, on blog.champtar.fr

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 L2 security controls only inspect standard Ethernet II frames and do not correctly parse or drop frames using alternative encapsulations such as VLAN 0, LLC/SNAP, or invalid 802.3 length fields.

Impact

An attacker on the local network could bypass L2 security controls and send rogue IPv6 Router Advertisements that are accepted by hosts, potentially leading to traffic redirection or denial of service; however, the effectiveness depends on the specific vendor implementation and some devices may still block the crafted frames.

What the attacker needed

Local network access; ability to send crafted Ethernet frames

The fix

Network security controls should drop unknown or unclassified traffic and correctly parse all Ethernet frame types, including VLAN 0, LLC/SNAP, and invalid length fields; Microsoft released fixes for Hyper-V but stated it would not fix Windows accepting 802.3 packets with invalid length.

How it was found

  1. Craft an IPv6 Router Advertisement packet encapsulated with VLAN 0 and/or LLC/SNAP headers or an invalid 802.3 length.
  2. Send the crafted packet on the local network interface (wired or wireless).
  3. Observe that the L2 security control (e.g., IPv6 RA Guard) does not block the packet.
  4. The target host (e.g., Windows) accepts the packet and processes the Router Advertisement.

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.

Network switches and hypervisors often have filters that are supposed to block certain types of local network traffic, like fake router announcements. This report shows that by wrapping the same traffic in different but still valid Ethernet frame formats, those filters can be fooled into letting it through. The result is that a device on the local network can send messages that other machines accept, even though a security control was supposed to stop them.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Etienne Champetier

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.