Skip to content
Crypto Advisory Advanced CVE-2021-21955

Anker Eufy Homebase 2 home_security get_aes_key_info_by_packetid() authentication bypass vulnerability

The device's authentication key is generated with low entropy because the packet timestamp overwrites most of the random key, leaving only six random characters. An attacker who can sniff network traffic can brute-force those six characters offline and then forge authenticated packets to the cloud service.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 7.7 View original

An authentication bypass vulnerability exists in the getaeskeyinfobypacketid() function of the homesecurity binary of Anker Eufy Homebase 2 2.1.6.9h. Generic network sniffing can lead to password recovery.

Lilith >_>, on Cisco Talos

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

The key derivation function overwrites the last ten bytes of a sixteen-byte random key with the packet timestamp, reducing the effective random portion to six bytes.

Impact

An attacker on the same network could bypass authentication and send privileged commands to the device's cloud service, potentially leading to password recovery and further compromise.

What the attacker needed

Ability to sniff network traffic; network access to the device's cloud communication

How it was found

  1. Sniff network traffic to capture the device's serial number and current time from outbound packets.
  2. Craft a packet with a timestamp within 60 seconds of the device's time.
  3. Brute-force the first six bytes of the AES key offline using the known serial number and timestamp.
  4. Use the recovered key prefix with the current timestamp to encrypt the serial number and send authenticated commands.

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.

The device uses a secret key to prove that commands really come from it. That key is supposed to be random, but the code replaces most of it with the current time, which anyone watching the network can see. This leaves only a few random characters to guess, so an attacker can try all possibilities and then send commands as if they were the device.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by Lilith >_>

View all

148 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.