Breaking WPA/WPA2-PSK through WPS easily and quickly (theory)
![]()
At the beginning, let’s clarify the concepts and point to good And for that bad.
From the title, it might seem that a WPA breaking method has appeared without the need to use brute-force attack.
But that is not entirely true, because the WPA itself still holds well, and the only way known so far is to break the WPA is the use of brute force.
So Appropriately selected password, i.e. sufficiently long and strong, guarantees the practical unbreakability of the WPA WiFi network reliably.
What tucks WPA legs is WPS (WiFi Protected Setup).
A standard developed alongside WPA, which makes it easier to pair two devices (e.g. router – PC) for users who do not want to enter the secrets of encryption and expect their smart boxes to simply work.
More precisely: The task of WPS is to ensure the safe pairing of two devices without the need to enter long and possibly even complicated passwords.
The standard itself was introduced in 2007 and most modern routers support it.
It is also supported by end devices, such as smart mobile phones (e.g. Android from version 4.1 native) or operating systems, so the service is very widespread and easy to use in practice.
{Googleads Left}
WPS as a good servant
Idea WPS is certainly not bad.
As a complete layman, you buy a router with preset encryption WPA (2)-PSK And with a preset strong enough password (random numbers, letters, characters, …).
Or, if the router from the factory is open without encryption, you can secure the router well by someone more proficient, but you don’t have to deal with the details of the encryption and password settings in any way.
You then just connect the router according to the sketch (ADSL, WAN port) and pair all the necessary devices using WPS.
The WPS standard was designed with regard to use in home networks and offers several methods of pairing – by entering a PIN (eight-digit number), pressing a button (physical on a router or virtual in the operating system), using NFC (by attaching two devices to each other) and using USB devices.
A total of four methods, of which the first two are most often used in practice, and the last one (using USB) does not recommend using the standard today.
We will not discuss the individual methods here in detail, but it is very important that the pairing method with the help of PIN is a mandatory part of the implementation of the standard and in practice it must be supported by all devices that implement WPS.
Which is quite a problem, because the WPS weakness is precisely in the PIN pairing method, so all devices supporting WPS are theoretically (and basically also practically) vulnerable.
WPS as a bad master
In December 2011 Stefan Viehböck drew attention to a weakness in the WPS proposal, which, supported in practice by imperfect implementation of router manufacturers, makes WPS a breakable brute force – and now beware – with a hundred percent success within a few hours.
And this regardless of the complexity of the WPA password, because WPS as such is not related to WPA, it is only used to exchange information and keys before establishing an encrypted WPA connection.
The result of a WPS break is Not only the detection of the WPS PIN, but also the password to the network protected WPA (2) -PSK.
{Googleads Left}
In practice…
According to the information available on the Internet, in practice, breaking the WPS typically takes about between two and four hours.
We can also confirm this from our own experience http://www.mrpear.net, because he managed to break his own password within an hour and a half.
He was not successful in such a way even when he broke the WEP.
In addition, WPS hacking seems easier compared to hacking other WiFi technologies from a user point of view – there is no need to capture any traffic (WEP), to force and catch a replacement WPA handshake (WPA)…
It’s just that one PIN after another is just constantly tested (that’s what the software does) until the right one hits.
It is only necessary to ensure at least a little quality signal, i.e. not be too far from the router.
WPS weakness
Now let’s take a closer look at the weakness in the WPS proposal.
As a website author http://www.mrpear.net He already wrote earlier, the weakness is in the design of pairing using the PIN code.
The PIN code is set in the router either hard, or it can be changed, for example, through the web interface of the router, which is not so important.
The WPS proposal suffers essentially from two weaknesses – less serious is that it can generally be broken Brute-Force attack.
More serious, however, is that due to the circumstances of the exchange of information between the router and the client, it is possible optimize the algorithm of attack so that the maximum required number of attempts of a successful attack can be dramatically reduced.
Let’s break it down more specifically.
WPS PIN is an 8-digit number.
So theoretically there are 108 variants of the PIN code, i.e. up to 100,000,000 attempts necessary to break the WPS by a brute force attack.
This is not enough, if we take into account that the process of verifying one PIN code takes about 3 seconds and there is no way to speed it up more significantly in practice.
However, the PIN breaks down into two parts during the verification process.
Each part consists of four digits, the second part also breaks down into three digits, plus the last digit forms the checksum.
And the biggest weakness: Thanks to the specific answer of the router, the client is able to infer whether the first and then the second part of the used pin was correct.
Knowing this property, it is possible to optimize the rude force attack algorithm by reducing the maximum number of attempts needed to 104 + 103, i.e. 10,000 + 1,000 = 11,000 attempts.
eleven thousand attempts, dramatically much less than the original hundred million, that is, at a frequency of 3 sec/pin, at most around 9 hours, which we need to break WPS with 100% success rate.
Hacked WPS in 93 minutes
Bad suggestion and not much implementation
The killer combination of bad design and bad implementation makes all devices with WPS support vulnerable.
What is meant by bad implementation?
The problem is that manufacturers do not implement Do WPS no detection mechanisms to prevent a brute-force attack, or They would have enough of it.
It is necessary, but to point out that the WPS standard does not require anything like that, so it is difficult to blame only the manufacturer for the given swipe.
And of course, at a time when the weakness was (probably) not known, the implementation of additional mechanisms would be beyond the target group, where WPS belongs to – households and small businesses.
WPS weakness problem is solvable By detecting a brute force attack and blocking WPS for a sufficiently long interval after a given number of unsuccessful attempts.
For example: after fifteen unsuccessful attempts, block WPS for 60 minutes – the maximum attack time would be extended in this case up to more than 30 days.
This already prolongs the attack sufficiently and thus complicates the success of its execution.
In combination with the reporting service (via e-mail), it would be possible to detect the WPS attack in time and take an adequate action.
However, the idea that the home user configures e-mails from the router is a bit naive, moreover, in conjunction with WPS, which really target the layman user.
Protection against attack
There is no effective protection in practice.
So there is – turn off WPS, or even better to have a router without WPS support.
The problem of some routers is that, despite its deactivation (using the web interface), WPS remained active.
If a firmware update that solves the WPS weakness is available for the given router (firstly by detecting a brute-force attack), a problem is possible partly to solve By updating the device firmware.
However, until the successor of WPS (WSC 2.0), i.e. a standard requiring the implementation of brute force attack detection, is not put into practice, the use of this pairing technology will be quite risky.
mentioned above, website author http://www.mrpear.net, Personally recommends WPS, if you really don’t need it and don’t use it with love, turn it off.
WPS attack tools
If you have a router with WPS support (or QSS, as TP-Link calls this service), it doesn’t hurt to test the bulletproofing of WPS implementation in your router.
We will cover the specific instructions in one of the other posts, in any case, we will provide two important clues to begin with: Backtrack Linux – Penetration Testing Distribution and Reaver.
Source:http://www.mrpear.net/











