The Story Of How I Bypass Mac Filter
The Wi-Fi network used MAC filtering as a security control, but the tester deauthenticated a connected client, captured the WPA handshake, spoofed the victim's MAC address, and brute-forced the Wi-Fi password. An attacker with proximity could bypass the MAC filter and recover the network key.
In this story, I will tell you one of my penetration test stories. We were a company which has 200 clients and we were doing penetration tests.
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 network relied on MAC filtering as a security measure while using a weak Wi-Fi password that could be cracked offline from a captured handshake.
What the attacker needed
Physical proximity to the Wi-Fi network; ability to capture wireless traffic; a wordlist containing the password
How it was found
- Detect the target Wi-Fi network's BSSID.
- Listen to connections to find the victim's MAC address.
- Deauthenticate the victim to force a reconnection.
- Capture the WPA handshake during reconnection.
- Build a wordlist and start a brute-force attack.
- Spoof the victim's MAC address and continue brute-forcing while keeping the victim disconnected.
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.
Wi-Fi networks can be set to only allow devices with specific hardware addresses (MAC addresses). The tester showed that this filter is easy to bypass: by pretending to be an allowed device and guessing the Wi-Fi password offline, someone nearby can join the network.
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.