mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
8f17c019a1
EAP-pwd missing commit validation Published: April 10, 2019 Identifiers: - CVE-2019-9497 (EAP-pwd server not checking for reflection attack) - CVE-2019-9498 (EAP-pwd server missing commit validation for scalar/element) - CVE-2019-9499 (EAP-pwd peer missing commit validation for scalar/element) Latest version available from: https://w1.fi/security/2019-4/ Vulnerability EAP-pwd implementation in hostapd (EAP server) and wpa_supplicant (EAP peer) was discovered not to validate the received scalar and element values in EAP-pwd-Commit messages properly. This could result in attacks that would be able to complete EAP-pwd authentication exchange without the attacker having to know the used password. A reflection attack is possible against the EAP-pwd server since the hostapd EAP server did not verify that the EAP-pwd-Commit contains scalar/element values that differ from the ones the server sent out itself. This allows the attacker to complete EAP-pwd authentication without knowing the password, but this does not result in the attacker being able to derive the session key (MSK), i.e., the attacker would not be able to complete the following key exchange (e.g., 4-way handshake in RSN/WPA). An attack using invalid scalar/element values is possible against both the EAP-pwd server and peer since hostapd and wpa_supplicant did not validate these values in the received EAP-pwd-Commit messages. If the used crypto library does not implement additional checks for the element (EC point), this could result in attacks where the attacker could use a specially crafted commit message values to manipulate the exchange to result in deriving a session key value from a very small set of possible values. This could further be used to attack the EAP-pwd server in a practical manner. An attack against the EAP-pwd peer is slightly more complex, but still consider practical. These invalid scalar/element attacks could result in the attacker being able to complete authentication and learn the session key and MSK to allow the key exchange to be completed as well, i.e., the attacker gaining access to the network in case of the attack against the EAP server or the attacker being able to operate a rogue AP in case of the attack against the EAP peer. While similar attacks might be applicable against SAE, it should be noted that the SAE implementation in hostapd and wpa_supplicant does have the validation steps that were missing from the EAP-pwd implementation and as such, these attacks do not apply to the current SAE implementation. Old versions of wpa_supplicant/hostapd did not include the reflection attack check in the SAE implementation, though, since that was added in June 2015 for v2.5 (commit 6a58444d27fd 'SAE: Verify that own/peer commit-scalar and COMMIT-ELEMENT are different'). Vulnerable versions/configurations All hostapd versions with EAP-pwd support (CONFIG_EAP_PWD=y in the build configuration and EAP-pwd being enabled in the runtime configuration) are vulnerable against the reflection attack. All wpa_supplicant and hostapd versions with EAP-pwd support (CONFIG_EAP_PWD=y in the build configuration and EAP-pwd being enabled in the runtime configuration) are vulnerable against the invalid scalar/element attack when built against a crypto library that does not have an explicit validation step on imported EC points. The following list indicates which cases are vulnerable/not vulnerable: - OpenSSL v1.0.2 or older: vulnerable - OpenSSL v1.1.0 or newer: not vulnerable - BoringSSL with commit 38feb990a183 ('Require that EC points are on the curve.') from September 2015: not vulnerable - BoringSSL without commit 38feb990a183: vulnerable - LibreSSL: vulnerable - wolfssl: vulnerable Acknowledgments Thanks to Mathy Vanhoef (New York University Abu Dhabi) for discovering and reporting the issues and for proposing changes to address them in the implementation. Possible mitigation steps - Merge the following commits to wpa_supplicant/hostapd and rebuild: CVE-2019-9497: EAP-pwd server: Detect reflection attacks CVE-2019-9498: EAP-pwd server: Verify received scalar and element EAP-pwd: Check element x,y coordinates explicitly CVE-2019-9499: EAP-pwd client: Verify received scalar and element EAP-pwd: Check element x,y coordinates explicitly These patches are available from https://w1.fi/security/2019-4/ - Update to wpa_supplicant/hostapd v2.8 or newer, once available Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [bump PKG_RELEASE] Signed-off-by: Jo-Philipp Wich <jo@mein.io> |
||
---|---|---|
.. | ||
001-mesh-factor-out-mesh-join-function.patch | ||
002-mesh-factor-out-rsn-initialization.patch | ||
003-mesh-relocate-RSN-init-function.patch | ||
004-mesh-use-setup-completion-callback-to-complete-mesh-.patch | ||
005-mesh-reflect-country-setting-to-mesh-configuration.patch | ||
006-mesh-inform-kernel-driver-DFS-handler-in-userspace.patch | ||
007-mesh-apply-channel-attributes-before-running-Mesh.patch | ||
008-mesh-set-interface-type-to-mesh-before-setting-inter.patch | ||
009-mesh-set-mesh-center-frequency.patch | ||
010-mesh-consider-mesh-interface-on-dfs-event-handler.patch | ||
011-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch | ||
013-mesh-do-not-allow-pri-sec-channel-switch.patch | ||
014-mesh-do-not-allow-scan-result-to-swap-pri-sec.patch | ||
015-mesh-do-not-use-offchan-mgmt-tx-on-DFS.patch | ||
016-mesh-fix-channel-switch-error-during-CAC.patch | ||
017-mesh-use-right-interface-context-to-send-DFS-event-m.patch | ||
018-mesh-make-forwarding-configurable.patch | ||
031-mesh-add-VHT_CHANWIDTH_USE_HT-to-max_oper_chwidth.patch | ||
032-mesh-implement-use-of-VHT20-config-in-mesh-mode.patch | ||
040-FT-Fix-CONFIG_IEEE80211X-y-build-without-CONFIG_FILS.patch | ||
051-wpa_supplicant-fix-race-condition-in-mesh-mpm-new-pe.patch | ||
061-0001-OpenSSL-Use-constant-time-operations-for-private-big.patch | ||
061-0002-Add-helper-functions-for-constant-time-operations.patch | ||
061-0003-OpenSSL-Use-constant-time-selection-for-crypto_bignu.patch | ||
061-0005-SAE-Minimize-timing-differences-in-PWE-derivation.patch | ||
061-0006-SAE-Avoid-branches-in-is_quadratic_residue_blind.patch | ||
061-0007-SAE-Mask-timing-of-MODP-groups-22-23-24.patch | ||
061-0008-SAE-Use-const_time-selection-for-PWE-in-FFC.patch | ||
061-0009-SAE-Use-constant-time-operations-in-sae_test_pwd_see.patch | ||
062-0004-EAP-pwd-Use-constant-time-and-memory-access-for-find.patch | ||
063-0010-SAE-Fix-confirm-message-validation-in-error-cases.patch | ||
064-0011-EAP-pwd-server-Verify-received-scalar-and-element.patch | ||
064-0012-EAP-pwd-server-Detect-reflection-attacks.patch | ||
064-0013-EAP-pwd-client-Verify-received-scalar-and-element.patch | ||
064-0014-EAP-pwd-Check-element-x-y-coordinates-explicitly.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 | ||
341-mesh-ctrl-iface-channel-switch.patch | ||
350-nl80211_del_beacon_bss.patch | ||
360-ctrl_iface_reload.patch | ||
370-ap_sta_support.patch | ||
380-disable_ctrl_iface_mib.patch | ||
381-hostapd_cli_UNKNOWN-COMMAND.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 | ||
500-lto-jobserver-support.patch | ||
550-hostapd-Add-Multi-AP-protocol-support.patch | ||
551-wpa_supplicant-Add-Multi-AP-protocol-support-to-supp.patch | ||
552-tests-Multi-AP-association.patch | ||
553-tests-refactor-test_multi_ap.patch | ||
554-multi_ap-don-t-reject-backhaul-STA-on-fronhaul-BSS.patch | ||
555-WPS-wps_build_wfa_ext-add-multi_ap_subelem-parameter.patch | ||
556-wpa_supplicant-support-Multi-AP-backhaul-STA-onboard.patch | ||
557-hostapd-support-Multi-AP-backhaul-STA-onboarding.patch | ||
558-hostapd-add-README-MULTI-AP.patch | ||
559-tests-add-WPS-tests-to-multi_ap-hwsim-tests.patch | ||
600-ubus_support.patch |