Check the whitelist by SSID before every rogue M2 answer #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "whitelist-by-name"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
Checks the whitelist by SSID before every rogue M2 answer, and stops a whitelist SSID that isn't a valid glob from crashing AngryOxide. Upstream: Ragnt/AngryOxide#82.
WhiteList::matches_ssid(&str)(src/whitelist.rs)is_whitelisted_ssidreturns true for an empty list.whitelist_match. A MAC entry counts once its AP has been seen, which adds that AP's SSID to the list, as before.Where it is checked
rogue_m2_attack_directedandrogue_m2_attack_undirected(named probe): no probe response for a whitelisted SSID. The existing check on a matching AP stays.rogue_m2_attack_undirectednow skips a whitelisted AP.AssociationRequesthandler sends no association response and no M1 to a client that asks the rogue AP for a whitelisted SSID.Invalid patterns (first commit)
WhiteSSID::whitelist_matchcalledGlob::new(..).unwrap(), which panics on an SSID that isn't a valid glob (an unclosed[, such asCafe [Guest).ssid_entry_matches).targets.rsanddevices.rs::get_device_by_ssid_globhave the sameunwrapon target patterns; they're left for a separate change.Checks
cargo build --release --locked: builds. The only warning in this crate (src/advancedtable/advtable.rs:659) is onmastertoo.cargo test --release --locked: 9 passed (the 4 existing and 5 new): glob entries, an invalid pattern matching itself (andGlob::newrejecting it),matches_ssidwith no AP, an empty list, and a MAC entry counting once its AP is seen.Still to do before release
🤖 Generated with Claude Code