mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
433c94f296
Unauthenticated EAPOL-Key decryption in wpa_supplicant
Published: August 8, 2018
Identifiers:
- CVE-2018-14526
Latest version available from: https://w1.fi/security/2018-1/
Vulnerability
A vulnerability was found in how wpa_supplicant processes EAPOL-Key
frames. It is possible for an attacker to modify the frame in a way that
makes wpa_supplicant decrypt the Key Data field without requiring a
valid MIC value in the frame, i.e., without the frame being
authenticated. This has a potential issue in the case where WPA2/RSN
style of EAPOL-Key construction is used with TKIP negotiated as the
pairwise cipher. It should be noted that WPA2 is not supposed to be used
with TKIP as the pairwise cipher. Instead, CCMP is expected to be used
and with that pairwise cipher, this vulnerability is not applicable in
practice.
When TKIP is negotiated as the pairwise cipher, the EAPOL-Key Key Data
field is encrypted using RC4. This vulnerability allows unauthenticated
EAPOL-Key frames to be processed and due to the RC4 design, this makes
it possible for an attacker to modify the plaintext version of the Key
Data field with bitwise XOR operations without knowing the contents.
This can be used to cause a denial of service attack by modifying
GTK/IGTK on the station (without the attacker learning any of the keys)
which would prevent the station from accepting received group-addressed
frames. Furthermore, this might be abused by making wpa_supplicant act
as a decryption oracle to try to recover some of the Key Data payload
(GTK/IGTK) to get knowledge of the group encryption keys.
Full recovery of the group encryption keys requires multiple attempts
(128 connection attempts per octet) and each attempt results in
disconnection due to a failure to complete the 4-way handshake. These
failures can result in the AP/network getting disabled temporarily or
even permanently (requiring user action to re-enable) which may make it
impractical to perform the attack to recover the keys before the AP has
already changes the group keys. By default, wpa_supplicant is enforcing
at minimum a ten second wait time between each failed connection
attempt, i.e., over 20 minutes waiting to recover each octet while
hostapd AP implementation uses 10 minute default for GTK rekeying when
using TKIP. With such timing behavior, practical attack would need large
number of impacted stations to be trying to connect to the same AP to be
able to recover sufficient information from the GTK to be able to
determine the key before it gets changed.
Vulnerable versions/configurations
All wpa_supplicant versions.
Acknowledgments
Thanks to Mathy Vanhoef of the imec-DistriNet research group of KU
Leuven for discovering and reporting this issue.
Possible mitigation steps
- Remove TKIP as an allowed pairwise cipher in RSN/WPA2 networks. This
can be done also on the AP side.
- Merge the following commits to wpa_supplicant and rebuild:
WPA: Ignore unauthenticated encrypted EAPOL-Key data
This patch is available from https://w1.fi/security/2018-1/
- Update to wpa_supplicant v2.7 or newer, once available
Signed-off-by: John Crispin <john@phrozen.org>
(cherry picked from commit
|
||
---|---|---|
.. | ||
020-mesh-properly-handle-sae_password.patch | ||
021-mesh-make-forwarding-configurable.patch | ||
022-mesh-fix-crash-with-CONFIG_TAXONOMY-enabled.patch | ||
030-rsn_supp-fix-stub-pmksa_cache.patch | ||
031-mesh-add-VHT_CHANWIDTH_USE_HT-to-max_oper_chwidth.patch | ||
032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch | ||
033-mesh-fix-parsing-of-max_oper_chwidth.patch | ||
100-daemonize_fix.patch | ||
110-no_eapol_fix.patch | ||
120-disable_bridge_packet_workaround.patch | ||
200-multicall.patch | ||
300-noscan.patch | ||
301-mesh-noscan.patch | ||
310-rescan_immediately.patch | ||
320-optional_rfkill.patch | ||
330-nl80211_fix_set_freq.patch | ||
340-reload_freq_change.patch | ||
350-nl80211_del_beacon_bss.patch | ||
360-ctrl_iface_reload.patch | ||
370-ap_sta_support.patch | ||
380-disable_ctrl_iface_mib.patch | ||
390-wpa_ie_cap_workaround.patch | ||
400-wps_single_auth_enc_type.patch | ||
410-limit_debug_messages.patch | ||
420-indicate-features.patch | ||
430-hostapd_cli_ifdef.patch | ||
431-wpa_cli_ifdef.patch | ||
432-missing-typedef.patch | ||
450-scan_wait.patch | ||
460-wpa_supplicant-add-new-config-params-to-be-used-with.patch | ||
461-driver_nl80211-use-new-parameters-during-ibss-join.patch | ||
463-add-mcast_rate-to-11s.patch | ||
464-fix-mesh-obss-check.patch | ||
470-survey_data_fallback.patch | ||
600-ubus_support.patch | ||
0001-WPA-Ignore-unauthenticated-encrypted-EAPOL-Key-data.patch | ||
0101-mesh-factor-out-mesh-join-function.patch | ||
0102-mesh-factor-out-rsn-initialization.patch | ||
0103-mesh-relocate-RSN-init-function.patch | ||
0104-mesh-use-setup-completion-callback-to-complete-mesh-.patch | ||
0105-mesh-reflect-country-setting-to-mesh-configuration.patch | ||
0106-mesh-inform-kernel-driver-DFS-handler-in-userspace.patch | ||
0107-mesh-apply-channel-attributes-before-running-Mesh.patch | ||
0108-mesh-set-interface-type-to-mesh-before-setting-inter.patch | ||
0109-mesh-set-mesh-center-frequency.patch | ||
0110-mesh-consider-mesh-interface-on-dfs-event-handler.patch | ||
0111-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch | ||
0112-mesh-allow-mesh-to-send-channel-switch-request.patch | ||
0113-mesh-do-not-allow-pri-sec-channel-switch.patch | ||
0114-mesh-do-not-allow-scan-result-to-swap-pri-sec.patch | ||
0115-mesh-do-not-use-offchan-mgmt-tx-on-DFS.patch |