Foreword
The Askey AP5100W access point was vulnerable to offline WPS PIN cracking, allowing an attacker within about 50 metres to recover the WPA2 passphrase in seconds. Its web portal also lacked input validation in a network diagnostics feature, enabling OS command injection that let the attacker read password hashes and gain root access via SSH or Telnet.
medium.com
Published on medium.com
As part of my research, I was surprised to find that the Askey AP5100W Access Point (AP) in my home was vulnerable to WiFi Protected Setup (WPS) offline brute force attacks. This meant that an attacker, within a reasonable distance (up to approximately 50m if a strong device is being used), would be able to identify…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the WPS implementation used predictable random values in the M3 message, and the web portal passed the network analysis method parameter to a shell without validation or sanitisation.
Impact
An attacker within close proximity could join the victim's Wi-Fi network and, after cracking the OS user passwords, gain full root access to the access point over SSH or Telnet; the command injection itself only works if the victim still uses default web portal credentials.
What the attacker needed
Attacker within about 50 metres; wireless card supporting monitor mode; victim has WPS enabled; victim uses default web portal credentials
The fix
SingTel rolled out a patched firmware version after working with the vendor.
How it was found
- Put the wireless adapter into monitor mode.
- Scan for nearby access points with WPS enabled.
- Run the Pixie Dust attack against the target BSSID to recover the WPS PIN and WPA2 passphrase.
- Send a crafted request to the status.cgi network analysis endpoint with a chained command in the method parameter.
- Use the internal field separator to bypass the whitespace filter and read the password file.
- Crack the harvested password hashes and log in over SSH or Telnet as root.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An access point is the box that gives you Wi-Fi. WPS is a push-button or PIN pairing feature meant to make connecting devices easy, but here the PIN could be worked out offline very quickly, revealing the Wi-Fi password. Separately, a diagnostic page on the access point's web interface ran whatever text was typed into it as operating system commands, so the researcher could read password files and log in as the administrator.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.