Router settings

WPS: why the convenient button is a risk

Wi-Fi Protected Setup explained: the 2011 PIN design flaw that cuts guessing to about 11,000 tries, the 2014 Pixie Dust issue, and how to turn WPS off.

By the Wardrive.net editors · Updated · 3 min read

Short answer

WPS lets devices join with an 8-digit PIN or a button, but the PIN is checked in two halves, so at most about 11,000 guesses recover it and with it the Wi-Fi password; the reliable fix is to turn WPS off completely.

Key takeaways

  • The WPS PIN flaw is a design problem, not a bug in one brand.
  • Some chipsets also had weak randomness (Pixie Dust, 2014) that made the PIN recoverable in minutes.
  • Turn WPS off, then check that it really is off after a reboot or firmware update.
  • Push-button WPS is less risky than the PIN, but a password or QR code is just as easy.

Wi-Fi Protected Setup was meant to spare people from typing long passwords on devices with tiny screens. The idea was fine. The way the PIN method checks the PIN was not, and the flaw sits in the specification itself.

What is WPS?

WPS is a Wi-Fi Alliance feature that lets a device join a WPA or WPA2 network with an 8-digit PIN, a push button, or (on some gear) NFC, instead of typing the password.

The PIN is often printed on the router's label. Once a device proves it knows the PIN, the router hands over the real network password. So the PIN is effectively a second, much shorter password, and anyone who learns it learns the real one.

What is the PIN flaw?

The router tells a guesser whether the first four digits are right before it checks the last four, and the eighth digit is a checksum, so the search space falls from 100 million combinations to at most 11,000.

Stefan Viehböck published the issue in December 2011, and CERT/CC and US-CERT issued advisories the following month. The arithmetic is simple:

Part of the PIN Possibilities Why
First half (4 digits) 10,000 Confirmed separately by the router
Second half (3 digits + checksum) 1,000 The last digit is computed from the others
Total worst case 11,000 Instead of 100,000,000

At a few seconds per attempt, that is hours, not years. Some routers added lockouts after repeated failures, which slows guessing but does not fix the design.

What was Pixie Dust?

In 2014 a researcher showed that some chipset vendors' WPS code used poor random numbers in the exchange, so the PIN could be worked out offline from a single attempt, often in minutes. Firmware updates fixed affected models, but many older routers never got them. For a home user the conclusion is the same as for the 2011 flaw: turn WPS off.

How do I turn WPS off?

Find the WPS or Wi-Fi Protected Setup option in the router's wireless settings, disable it for every band, save, then confirm after a reboot.

  1. Log in to the router's admin page or app.
  2. Look under Wireless, Wi-Fi, Advanced Wireless or Security for "WPS". Some routers list it per band.
  3. Set it to Disabled. If there is a separate "PIN" or "Router PIN" switch, disable that too.
  4. Reboot the router and check that the setting held. Do the same after every firmware update.

The security checker counts WPS as one of the largest point losses for exactly this reason.

Questions

Is push-button WPS also dangerous?

It is less risky than the PIN method because it only accepts new devices for about two minutes after the button is pressed. But most routers enable the PIN method alongside it, and you rarely need either. Typing the password or scanning a Wi-Fi QR code works for nearly every device.

My printer needs WPS to connect. What can I do?

Most printers can also join with the password through their own menu, a USB setup or the vendor's app. If WPS is truly the only way, turn it on, connect the printer and turn it off again immediately.

I turned WPS off. Why do scanners still show it as enabled?

Some routers have had firmware that kept answering WPS requests after the switch was turned off. Update the firmware, check again, and if the problem persists consider replacing the router.

Sources

Keep reading