Foreshadowing
The Peloton Bike tablet ran an unpatched Android 7 build, leaving it exposed to known flaws including a missing bounds check in wpa_supplicant's Wi-Fi Direct peer parsing. An attacker within Wi-Fi range could trigger the overflow when the user starts a Cast Screen search, and the author demonstrated a crash and an arbitrary-free primitive, though the full exploit only worked with ASLR disabled.
nowsecure.com
Published on nowsecure.com
TL;DR: The Peloton Bike ran an unpatched version of Android 7 which led to it being vulnerable to a number of known issues, most significantly CVE-2021-0326, which could allow an attacker within WiFi range to execute arbitrary code on the device. There is no requirement for the user to interact with any attacker…
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 a missing bounds check on the number of secondary device types in a Wi-Fi Direct group client descriptor, so a length derived from attacker data overflows a fixed 128-byte array in the peer info structure.
Impact
An attacker within Wi-Fi range could crash the Wi-Fi supplicant and, with the arbitrary-free primitive, potentially achieve code execution, but the published proof of concept only works with ASLR disabled and a bypass is only considered likely.
What the attacker needed
Attacker within Wi-Fi range; victim opens Cast Screen menu; no user interaction with attacker data
The fix
Peloton deployed a release fixing the three CVEs to all devices, and the fixes were verified in January 2022.
How it was found
- Put a wireless interface into monitor mode and target the bike's MAC address.
- Craft a beacon frame advertising a Wi-Fi Display (DIRECT-) network with a vendor-specific P2P element containing a group client descriptor whose secondary device type count is oversized.
- Send the frame repeatedly while the bike is listening.
- On the bike, open the upper right corner menu and select Cast Screen to start the Wi-Fi Direct search.
- Observe the crash in wpa_supplicant with the fault address matching the attacker-supplied bytes.
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.
The bike's screen runs an old version of Android that had not received security updates for about two years. One of the unfixed bugs is in the software that handles Wi-Fi Direct, the feature used to cast the screen to another display. When the rider opens the cast menu, the bike listens for nearby devices, and a malicious device nearby can send a malformed reply that overflows a fixed-size buffer in memory.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.