skip to content

A branch card-terminal gateway on a WPA2 SSID will never get a key reinstallation fix; what do you decide about the gateway, its access points and the accepted risk?

level: principalimportance: should knowfreq 7%

answer

  1. retire the device on a date
  2. fewer handshake retransmissions on the access point
  3. workaround protects only on that access point
  4. robustness cost under load

basics

~20 s

Set a retirement date and compensate meanwhile: serve the gateway from access points running hostapd's wpa_disable_eapol_key_retries=1 or an equivalent, accepting reduced robustness. The protection holds only while it is connected to such an access point, so record the residual risk.

solid answer

~30 s

Decide to retire the gateway on a funded date and manage the gap. In the meantime put it on its own SSID served by access points that remove EAPOL-Key retransmissions (hostapd's `wpa_disable_eapol_key_retries=1`, or a vendor equivalent), add `wnm_sleep_mode_no_keys=1` where WNM sleep mode is on, and switch off fast transition and repeater functions there. The workaround costs interoperability and key-negotiation robustness under heavy load, and protects the gateway only while it is connected to such an access point. Do not use WEP, and do not count on a new passphrase. Record the residual risk with an owner and an expiry.

go deeper

for a junior

Recall that a device that cannot be updated needs compensating controls now and a planned replacement later.

for a middle

Describe how removing EAPOL-Key retransmissions on the access point stops the delayed-frame route, and that it is off by default.

for a senior

Quote the cost in robustness under load, the scope of the identifiers covered and the fact that protection ends when the device connects elsewhere.

for a principal

Decide replacement date, funding and the exception's expiry, and where compensating controls and the accepted risk are recorded.

## The decision A device that cannot be updated leaves a **patch-and-compensate** decision: replace it, compensate for it on the network, or accept the risk, and usually a combination with an end date. For a branch card-terminal gateway the exposure is the one in the advisory: a vulnerable client within radio range of its access point, with the traffic of that client at risk of replay and decryption (and forgery if TKIP or GCMP). ## Option 1: replace on a date Replacement is the only option that closes the exposure. It needs a funded date, an owner and a rule that the compensation below expires when the date arrives. Treat "never updated" as a retirement trigger, not a permanent state. ## Option 2: compensate at the access point hostapd documents a workaround for exactly this case, and the same text is the source of the cost: - **`wpa_disable_eapol_key_retries=1`** is documented as a way to work around key reinstallation on the station side "in cases those station devices cannot be updated for some reason". It removes the retransmission of the relevant handshake messages, so the attacker cannot cause key reinstallation with a delayed frame transmission. It is related to CVE-2017-13077 to CVE-2017-13081, and **disabled by default**. - **`wnm_sleep_mode_no_keys=1`** is the access point workaround for CVE-2017-13087 and CVE-2017-13088: it stops placing the group keys in the WNM sleep mode response and uses EAPOL-Key frames instead. It is 0 by default. hostapd adds the keys to that response only when protected management frames are negotiated. ```ini # hostapd.conf fragment (hostapd's names) for an SSID that serves devices that cannot be patched ssid=legacy-example wpa=2 wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP # workaround for CVE-2017-13077 to CVE-2017-13081: no EAPOL-Key retransmissions wpa_disable_eapol_key_retries=1 # relevant where WNM sleep mode is enabled: workaround for CVE-2017-13087 and CVE-2017-13088 wnm_sleep_mode_no_keys=1 # 802.11r fast transition is not enabled here ``` The costs and limits are the part to put in the decision record: | Property | What to record | |---|---| | Cost | hostapd warns of interoperability issues and reduced robustness of key negotiation, especially in environments with heavy traffic load, because the number of attempts is reduced significantly | | Scope | Covers the four-way and group key handshake and WNM sleep mode identifiers, not the PeerKey, TDLS or fast transition ones | | Location | Protects the gateway only while it is connected to an access point with the workaround; on another access point it is exposed again | | Vendor equivalents | The advisory says some access points can disable all handshake retransmissions without an update; ask the vendor | ## Option 3: reduce what the gateway can lose Separate the gateway on its own SSID and network segment so that the robustness cost is confined to devices that accept it and so that a compromise of its link reaches little else. Keep the payment traffic protected above the Wi-Fi link as well; this is engineering judgment, not a statement from the advisory, and it ensures that link-layer failure is not the only layer. Turn off fast transition and repeater functions where the gateway connects, as the advisory suggests narrowing the infrastructure side that way. ## What not to do - **Do not fall back to WEP.** The advisory's Q&A says no. - **Do not rely on changing the passphrase.** It neither prevents nor mitigates the attack. - **Do not leave the workaround in place indefinitely.** Its cost grows with traffic and the exception should expire with the device. ## Making the decision 1. State the exposure honestly: radio range, an unpatched client, weaker robustness for a stopgap. 2. Choose the retirement date and fund it. 3. Apply the workaround to every access point that can serve the gateway, and test under branch peak load before relying on it. 4. Record the accepted risk, its owner, the compensating controls and the expiry in the exception register. ## Review the exception Put a review date on the exception that is earlier than the replacement date, and check three things each time: the device is still the only one of its kind on that SSID, the workaround is still enabled on every access point that can serve it, and the vendor of the gateway has still published nothing. If a client update appears, the exception ends; if the replacement slips, the next review decides whether the risk is still accepted by the same owner.

  • The gateway roams to an access point in another branch that lacks the workaround; what changes?
    It is exposed again. The advisory says such modifications only prevent attacks when a vulnerable client is connected to the modified access point. So every access point that can serve the gateway needs the setting, or the gateway needs to be bound to access points that have it.
  • Why not simply apply the workaround estate-wide and forget patching?
    hostapd documents interoperability issues and reduced key-negotiation robustness under heavy traffic, so a blanket setting trades one risk for another. It also covers only the four-way, group key and WNM sleep mode identifiers. Use it on a dedicated SSID for devices that cannot be updated.

  • Says the workaround is enabled by default in hostapd.
  • Says the workaround protects the gateway on every access point.
  • Says moving the gateway to WEP is a safe interim step.
  • Says rotating the passphrase protects an unpatched device.
  • Accepts the risk with no owner or expiry date.