(Pwn2Own) Philips Hue Bridge hap_pair_setup_handler Heap-based Buffer Overflow Remote Code Execution Vulnerability
The HomeKit Accessory Protocol service on the Philips Hue Bridge does not validate the length of user-supplied data before copying it into a fixed-length heap buffer. A network-adjacent attacker without authentication could exploit this to execute arbitrary code on the device.
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 a missing length check before copying attacker-controlled pairing data into a fixed-size heap buffer.
Impact
A network-adjacent, unauthenticated attacker could execute arbitrary code in the context of the device.
What the attacker needed
Network-adjacent access to TCP port 8080; 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 small program on the Hue Bridge receives pairing messages from the local network and copies part of each message into a fixed-size memory area without first checking how long the message is. If the message is too long, it spills over into neighbouring memory, which can let an attacker take control of the device. No password is needed, but the attacker must be on the same network.
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.