Nest Labs Nest Cam IQ Indoor Weave Legacy Pairing Information Disclosure Vulnerability
An out-of-bounds read in the Weave Legacy Pairing of Nest Cam IQ Indoor allows an attacker to send crafted packets that cause the device to include memory beyond the intended buffer in an HMAC calculation, potentially leaking sensitive memory contents. By brute-forcing the last byte of the HMAC, an attacker can disclose memory bytes and bypass memory randomisation.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the Weave Legacy Pairing functionality of Nest Cam IQ Indoor version 4620002. A set of specially crafted weave packets can cause an out of bounds read, resulting in information disclosure.
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 code copies a fixed-length nonce from the request without checking that the request buffer actually contains that many bytes, leading to an out-of-bounds read.
Impact
An attacker could disclose memory contents, potentially bypassing memory randomisation, but the CVSS score indicates only low confidentiality impact.
What the attacker needed
Network access to the device; ability to send Weave packets
How it was found
- Send a kEchoMessageType_EchoRequest packet to fill the bottom PacketBuffer slot.
- Send a kMsgType_CamAuthDataReq packet with the last byte of the nonce beyond the buffer, causing an out-of-bounds read.
- Receive the HMAC response and save it.
- Send a normal kMsgType_CamAuthDataReq with all 0x40 bytes controlled, brute-forcing the last byte until the HMAC matches the saved one.
- Repeat up to 0x40 times to leak memory bytes and defeat memory randomisation.
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.
This is a bug in a smart camera's setup protocol. The camera reads more data than it should from memory when creating a security code, and an attacker can use that to learn secret memory contents. This could help them break other protections.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.