(Pwn2Own) Philips Hue Bridge HomeKit Pair-Setup Heap-based Buffer Overflow Remote Code Execution Vulnerability
A heap-based buffer overflow exists in the HomeKit pair-setup handling of the Philips Hue Bridge, caused by missing validation of user-supplied data length before copying it into a fixed-size heap buffer. A network-adjacent attacker without authentication could exploit this to execute arbitrary code in the context of the HomeKit service.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Philips Hue Bridge. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the hk_hap_pair_storage_put function copies user-supplied data into a fixed-length heap buffer without first checking that the data length fits.
Impact
A network-adjacent attacker without authentication could execute arbitrary code in the context of the HomeKit service.
What the attacker needed
Network-adjacent access to the bridge; no authentication required
The fix
The vulnerability was fixed in Bridge v2 Software version 1975170000.
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 report has not been written yet. The Original tab links to the source.
A buffer overflow happens when a program copies more data into a memory area than it can hold, spilling into nearby memory. Here, the Hue Bridge's HomeKit service does this with data received from the network, so someone on the same network could send specially crafted data to take control of that service. No password or login is needed.
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.