(Pwn2Own) Philips Hue Bridge HomeKit Accessory Protocol chacha20_decrypt Integer Underflow Remote Code Execution Vulnerability
The HomeKit Accessory Protocol service on the Philips Hue Bridge fails to properly validate user-supplied data when parsing pairing requests, leading to an integer underflow before writing to memory. 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 the pairing request parser does not check that a length or offset value is large enough before subtracting from it, causing an integer underflow that leads to an out-of-bounds write.
Impact
A network-adjacent attacker without authentication 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.
An integer underflow can occur when parsing pairing requests because user data is not validated. This happens before writing to memory and could let a network-adjacent, unauthenticated attacker run code on the device.
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.