Novel Abuses On Wi-Fi Direct Mobile File Transfers
The Wi-Fi Direct file transfer implementations of LG, Huawei and Xiaomi were found to have insecure designs, allowing any local app to hijack transfers, push arbitrary files, or crash services to intercept session IDs. An attacker could implant files or propagate a malicious app without user interaction.
blog.doyensec.com
Published on blog.doyensec.com
The Wi-Fi Direct specification (a.k.a. “peer-to-peer” or “P2P” Wi-Fi) turned 10 years old this past April. This 802.11 extension has been available since Android 4.0 through a dedicated API that interfaces with a devices’ built-in hardware which directly connects to each other via Wi-Fi without an intermediate access…
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 file transfer services lack proper authentication and session validation, and the network interface is accessible to all apps with internet permission.
Impact
An attacker could hijack file transfers, implant arbitrary files, or propagate a malicious app without user interaction; for Xiaomi, per-session TLS certificates limited exploitability.
What the attacker needed
Wi-Fi Direct connection established; malicious app installed on one device; app has INTERNET permission
The fix
The vulnerabilities were responsibly disclosed to the OEMs; the text does not state whether they were fixed.
How it was found
- Establish a Wi-Fi Direct connection between two devices.
- The sender initiates a file transfer via the FTC service.
- The recipient accepts the transfer, and a session ID is generated.
- A malicious app on either device sends a PUT request to the hardcoded receiver port to push an arbitrary file.
- For Huawei, the malicious app crashes the FTSService and binds to its port to intercept the session ID.
- The attacker uses the intercepted session ID to serve arbitrary files.
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.
Wi-Fi Direct lets phones connect directly to share files. The apps that handle these transfers had flaws: any other app on the phone could interfere, send files without permission, or crash the service to steal the transfer. This means a malicious app could quietly put files on your phone or spread itself.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.