hostapd/src
Jouni Malinen a9af1da0b5 SAE: Enforce single use for anti-clogging tokens
Add a 16-bit token index into the anti-clogging token. This can be used
to enforce only a single use of each issued anti-clogging token request.
The token value is now token-index |
last-30-octets-of(HMAC-SHA256(sae_token_key, STA-MAC-address |
token-index)), i.e., the first two octets of the SHA256 hash value are
replaced with the token-index and token-index itself is protected as
part of the HMAC context data.

Track the used 16-bit token index values and accept received tokens only
if they use an index value that has been requested, but has not yet been
used. This makes it a bit more difficult for an attacker to perform DoS
attacks against the heavy CPU operations needed for processing SAE
commit since the attacker cannot simply replay the same frame multiple
times and instead, needs to request each token separately.

While this does not add significant extra processing/CPU need for the
attacker, this can be helpful in combination with the queued processing
of SAE commit messages in enforcing more delay during flooding of SAE
commit messages since the new anti-clogging token values are not
returned before the new message goes through the processing queue.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2019-03-06 13:07:03 +02:00
..
ap SAE: Enforce single use for anti-clogging tokens 2019-03-06 13:07:03 +02:00
common Fix cipher suite selector default value in RSNE for DMG 2019-02-21 12:42:24 +02:00
crypto Add explicit checks for peer's DH public key 2019-03-05 17:05:03 +02:00
drivers atheros: Avoid clang compiler warning on address of array check 2019-02-25 19:48:49 +02:00
eap_common Add explicit checks for peer's DH public key 2019-03-05 17:05:03 +02:00
eap_peer wpa_supplicant: Support Multi-AP backhaul STA onboarding with WPS 2019-02-18 22:35:41 +02:00
eap_server PEAP: Explicitly clear temporary keys from memory when using CMK 2019-02-02 00:01:29 +02:00
eapol_auth Add hostapd tls_flags parameter 2017-09-18 12:12:48 +03:00
eapol_supp eap_proxy: Fix memory leaks when using eap_peer_erp_init() 2018-09-21 21:34:08 +03:00
fst UBSan: Define FST LLT macros without integer overflow 2019-02-25 19:48:49 +02:00
l2_packet wpa_supplicant: Don't reply to EAPOL if pkt_type is PACKET_OTHERHOST 2018-04-02 12:21:27 +03:00
p2p WPS: Add multi_ap_subelem to wps_build_wfa_ext() 2019-02-18 20:30:26 +02:00
pae UBSan: Pack MACsec peer id structure 2019-02-25 19:48:49 +02:00
radius UBSan: Avoid a warning on signed left shift 2019-02-25 19:48:49 +02:00
rsn_supp UBSan: Avoid an unsigned integer overflow warning 2019-02-25 19:48:49 +02:00
tls bignum: Fix documentation for bignum_cmp_d() 2019-03-05 16:10:33 +02:00
utils UBSan: Avoid unsigned integer overflow in base64 encoding 2019-02-25 19:48:49 +02:00
wps Multi-AP: Avoid memcpy(ptr, NULL, 0) in WPS Registrar initialization 2019-02-23 11:37:20 +02:00
lib.rules tests: TLS fuzzing tool 2019-02-11 02:35:29 +02:00
Makefile FST: Add the Fast Session Transfer (FST) module 2015-07-16 18:26:15 +03:00