Stock network panel: enterprise PEAP profile without CA validation allows rogue-AP credential capture
Problem
Stock omarchy.network panel creates enterprise Wi-Fi profiles (PEAP/MSCHAPv2) without a CA certificate, system CA validation, or an authentication-server name constraint (default/hypr Model enterpriseConnectScript: nmcli connection add ... 802-1x.eap peap 802-1x.phase2-auth mschapv2 with no ca-cert).
A rogue access point using the same SSID can impersonate the authentication server and capture the user's MSCHAPv2 challenge-response (offline-crackable). NetworkManager documents this exact exposure for unset CA blobs.
Found via
Marketplace security review of a fork submission (wifi-dns #9486, reviewer HANCORE-linux). The fork has removed EAP support entirely; filing here because every fork and stock itself carry it.
Suggestion
Either constrain the profile (require CA cert + auth-server match before connecting, refusing otherwise) or gate enterprise connect behind an explicit warning. Happy to test a fix against a live WPA-EAP network if hepful.
Thanks for the clear write-up and for routing this from the marketplace review.
Agreed this is a credential-capture risk for stock PEAP/MSCHAPv2 (no CA / no server-name constraint). PR #13947 looks like the right constrain-or-refuse fix (UI fields + process-boundary recheck + nmcli ca-cert/domain-match).
Overlaps / please keep open until verified against a live WPA-EAP network:
- #12270 (also calls out the hardcoded 8s 802-1x.auth-timeout; #13947 does not change that)
- #11791 (enterprise reconnect / wrong-password reporting)
Happy to help test #13947 if you want a second pair of eyes on the diff.
Checked against quattro (47caa9b), and it is as you describe. enterpriseConnectScript in shell/plugins/panels/network/Model.js:357 creates every panel-made PEAP/MSCHAPv2 profile with no 802-1x.ca-cert, no 802-1x.domain-match or domain-suffix-match, and 802-1x.system-ca-certs left at its default of off. With that configuration NetworkManager does not verify the authentication server at all, so an access point broadcasting the same SSID can terminate the PEAP tunnel and collect the MSCHAPv2 exchange. The panel's form only asks for identity and password, and nothing else in the tree sets these properties. I proved this from the source and did not stage a rogue-AP attack.
The fix is already open as #13947, which is linked to close this issue. Its diff requires a CA certificate path and an exact server name before it creates the profile, then sets 802-1x.ca-cert, 802-1x.domain-match and 802-1x.system-ca-certs no. That closes the hole for new profiles the panel creates. It deliberately leaves existing profiles alone, so one the panel created earlier stays unconstrained until it is recreated or edited by hand. That pull request will be reviewed as its own item.
I am keeping this issue open rather than marking it a duplicate of #12270. That issue reports two separate defects: the 8-second auth-timeout and the missing validation. #12279 fixes only the timeout and will close #12270 when it lands, so this issue is where the certificate half is tracked.
Second opinion: Codex Medium read the same code and reached the same mechanism, including NetworkManager's default of not validating when no CA is set. It could not fetch #13947's diff, so the check that the pull request sets these properties is mine. It had read access to this session's notes, so its agreement is not guaranteed to be independent.
This now waits on the maintainer to decide on #13947.