keepcalculator

06 Numbers and Powers

Why You Shouldn’t Use WPS on Your Wi-Fi Network

Card No. 06·40566 · Updated · Standard formula, shown below

WPS (Wi-Fi Protected Setup) is a network security feature designed to simplify connecting devices to your router, but it introduces a serious vulnerability that can expose your entire Wi-Fi network to attackers. You should not use WPS on your Wi-Fi network because the PIN method, which is mandatory in most routers, can be brute-forced in a matter of hours, allowing an attacker to recover your network password and gain full access to your network. This article explains the technical flaws, the risks, and what you can do instead.

What Is WPS and Why Was It Created?

WPS was introduced in 2006 by the Wi-Fi Alliance as a usability feature to help non-technical users connect devices (like printers, smart TVs, or game consoles) to their Wi-Fi without typing a long passphrase. Instead of entering the full Wi-Fi password, WPS offers three main methods:

  • Push Button (PBC): Press a physical or virtual button on the router, then press a similar button on the device within a short time window.
  • PIN Entry: Enter an 8-digit PIN printed on the router’s label into the device or the router’s configuration page.
  • Near-Field Communication (NFC): Tap the device against the router (rarely implemented).

The push-button method is relatively safe if used carefully, but the PIN method is the core problem. Even when you use the push-button method, most routers still have the PIN method enabled by default, and that is where the vulnerability lies.

How the WPS PIN Attack Works

The WPS PIN is 8 digits long, but the last digit is a checksum (a simple mathematical check), so only 7 digits are actually unknown. Even worse, the router validates the PIN in two halves: the first 4 digits and the last 3 digits (plus checksum). This means an attacker only needs to guess the first half (10,000 possibilities) and the second half (1,000 possibilities).

In 2011, security researcher Stefan Viehböck discovered that the router responds with an error code that tells the attacker whether the first half of the PIN was correct. This allows a brute-force attack that tries every combination. Because the router does not lock out after a few failed attempts (or locks out only briefly), an attacker can try all 11,000 possible combinations in a few hours. Once the PIN is recovered, the router reveals the WPA/WPA2 passphrase, and the attacker can connect to your network as a legitimate user.

This attack works on most routers that support WPS PIN, even if you never use WPS yourself. The feature is often enabled by default, and many routers do not allow you to disable it completely—only to disable the PIN method while keeping the push-button method.

Real-World Exploitation and Tools

The attack is not theoretical. Tools like Reaver and Bully were released in 2011 and 2012 specifically to automate the WPS PIN brute-force attack. These tools run on a laptop or a small device like a Raspberry Pi, and they can crack a typical router in 4 to 10 hours. Some routers are even more vulnerable: older models from certain manufacturers had PINs that were generated predictably, making the attack even faster.

In 2017, the KRACK vulnerability (Key Reinstallation Attack) affected WPA2 itself, but WPS remained a separate, easier attack vector. Even with WPA3, which is more secure, many routers still support WPS for backward compatibility, and the PIN attack still works on those routers if WPS is enabled.

Why the Push Button Isn’t Much Better

You might think that using the push-button method is safe because it requires physical access to the router. That is true for a single use, but the problem is that the PIN method is usually still active in the background. An attacker who is within Wi-Fi range can start a brute-force attack on the PIN even if you never press the button. The router does not require the button to be pressed for the PIN attack to work.

Additionally, some routers have a feature called “WPS on by default� that cannot be turned off through the web interface. In that case, the only way to disable WPS is to flash the router with custom firmware (like DD-WRT or OpenWrt), which is beyond most users’ comfort level.

How to Protect Your Network

The single most effective step is to disable WPS entirely. Here is how to do it on most routers:

  1. Log in to your router’s admin page (usually by typing an IP address like 192.168.1.1 or 192.168.0.1 into a browser).
  2. Find the wireless settings or security section.
  3. Look for “WPS� or “Wi-Fi Protected Setup�.
  4. Select “Disable� or “Turn Off�. If you can disable only the PIN method, do that, but disabling all WPS is better.
  5. Save the settings and reboot the router if prompted.

If your router does not allow you to disable WPS (some ISP-provided routers have this limitation), consider upgrading to a newer router or using custom firmware if you are comfortable with it. Also, make sure your Wi-Fi password is strong (at least 12 characters, mixing letters, numbers, and symbols) and use WPA2 or WPA3 encryption. WPA3 is the current standard and offers better protection against offline password guessing.

Alternatives to WPS for Connecting Devices

If you disable WPS, you still need to connect devices to your Wi-Fi. Here are secure alternatives:

  • Enter the password manually: It is a bit more typing, but it is the most secure method. Most devices allow you to save the password for future use.
  • Use a QR code: Many routers and phones can generate a QR code that, when scanned, automatically configures the Wi-Fi connection. This is secure because the QR code contains the password in an encrypted format (for WPA2/WPA3).
  • Use a guest network: For smart home devices that you do not fully trust, set up a separate guest network with its own password. This isolates them from your main devices.
  • Use Wi-Fi Easy Connect (DPP): This is a newer standard (Device Provisioning Protocol) that uses a QR code or a short code and is much more secure than WPS. It is supported on some newer routers and devices.

Frequently Asked Questions

Can WPS be hacked even if I never use it?

Yes. If WPS is enabled (even if you never press the button), the PIN is still active. An attacker within range can brute-force the PIN and recover your Wi-Fi password. That is why you must disable WPS completely.

Is WPS safe if I use the push-button method?

The push-button method itself is relatively safe because it requires physical access to the router. However, the PIN method is usually still enabled in the background, so the router remains vulnerable to brute-force attacks. You should disable WPS entirely, not just avoid using the button.

Does WPS work with WPA3?

WPA3 uses a different protocol called Wi-Fi Easy Connect (DPP) instead of WPS. However, many routers that support WPA3 still include WPS for backward compatibility with older devices. If your router has WPS, it is likely still vulnerable, so disable it.

How long does it take to crack a WPS PIN?

On a typical router, a brute-force attack can try all 11,000 possible PIN combinations in 4 to 10 hours. Some routers are slower or have lockout mechanisms, but many do not, and the attack can be automated and run unattended.

What if my router doesn’t let me disable WPS?

Some ISP-provided routers have WPS permanently enabled. In that case, you can try upgrading the router firmware, using a different router, or installing custom firmware like DD-WRT or OpenWrt if your router is supported. If none of these are possible, consider replacing the router for better security.

Is WPS the same as WPA or WPA2?

No. WPA and WPA2 are encryption protocols that protect your Wi-Fi data. WPS is a separate feature that simplifies connecting devices. You can have WPA2 encryption and still have WPS enabled, but WPS is a security hole regardless of the encryption type.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →