Over the Air – Vol. 2, Pt. 2: Exploiting the Wi-Fi Stack on Apple Devices
The Wi-Fi firmware on the iPhone 7 contains multiple vulnerabilities, including a heap overflow in the handling of 802.11k Neighbor Report Response action frames due to a failure to verify the length of an information element. An attacker within Wi-Fi range could exploit this to gain code execution on the Wi-Fi chip and install a covert backdoor.
googleprojectzero.blogspot.com
Published on googleprojectzero.blogspot.com
In this blog post we’ll continue our journey towards over-the-air exploitation of the iPhone, by means of Wi-Fi communication alone. This part of the research will focus on the firmware running on Broadcom’s Wi-Fi SoC present on the iPhone 7.
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 firmware failed to validate the length of an information element (IE) in 802.11k Neighbor Report Response frames, leading to a heap overflow.
Impact
An attacker within Wi-Fi range could execute arbitrary code on the Wi-Fi chip and install a backdoor, but the text notes that the exploit uses a weak primitive and that the firmware lacks modern defences like ASLR and stack cookies.
What the attacker needed
Attacker within Wi-Fi range; target device with vulnerable firmware
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 Wi-Fi chip in an iPhone runs its own small operating system called firmware. This firmware handles Wi-Fi frames, including special management frames that can carry data. A bug in how the firmware processes one type of these frames lets an attacker nearby send a crafted frame that overflows a memory buffer, potentially taking control of the chip.
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.