I found myself pondering the security of our wireless network as of lately. We are running WPA2-Enterprise on our access points which use Windows IAS to authorize users connecting to our network. After some reading it seems that the best way to penetrate these networks is to get wireless devices to connect to a fake access point and radius server so you can capture credentials used to log onto the network.
I also found that freeradius can be modified to log these credentials. You can find the modification here . It has to be patched into freeradius 2.1.7 or 2.02. I chose 2.1.7 as it was newer. After my WPE version of radius was up and running it was time to try fool some devices into giving out important credentials to a rogue radius server.
First off I started with my iPhone 4. It is running version 4.3.3 of the IOS software. I connected it to a WPA2-Enterprise network, accepted the certificate for our real radius server. I then shut wireless off on the phone. I then changed the radius server on the access point to my WPE version of freeradius (Which was using a certificate NOT signed by an authorized authority). I then turned the wireless back on on my phone. The phone did connect to the network, but it appears that after it saw the wrong certificate it disconnected from the network without sending a password. If I clicked on the network, a new prompt to accept the certificate from my WPE freeradius now appeared. If I accepted at this point, the username and password were captured.
Next we tried a phone running Android 2.3 . We connected it to our network with our normal radius server, but we never specified a “Certificate Authority” when it was connected (There wasn’t anything in this option). Next we shut the wireless off on the phone, then switch the radius server on the access point to the WPE freeradius server. After turnning the wireless back on on the phone, it immediately attempted to reconnect AND sent both username and password.
While this is bad, we found a way to prevent the Android phone from connecting to the wrong radius server. We exported the certificate authority certificate that signed the certificate for our radius server. We copied that certificate to the Android phone and installed it. When we connected it to the WPA2-Enterprise network in the “Certificate Authority” box we could now select our CA. We selected our CA. After the phone connected to our network with the proper radius server, we shut the wireless off on the phone, switched the access point to the WPE freeradius server, then turned the wireless back on on the phone. The phone did not reconnect to the network. Trying to select the network and forcing the phone to reconnect failed as well. The phone would not connect to the network period.
I’ve not had a chance to test Windows XP and Windows 7 against these types of attacks, however I found that someone else had already done this research.
Share on Facebook

