Anker Eufy Homebase 2 home_security process_msg() authentication bypass vulnerability
The home_security binary of the Anker Eufy Homebase 2 authenticates commands by encrypting only the device serial number, leaving the message body and opcode unprotected. An attacker positioned as a man-in-the-middle on the UDP channel can modify these fields and the CRC to send arbitrary commands, bypassing authentication and gaining increased privileges.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the processmsg() function of the homesecurity binary of Anker Eufy Homebase 2 2.1.6.9h. A specially-crafted man-in-the-middle attack can lead to increased privileges.
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 authentication mechanism only encrypts the device serial number, leaving the opcode and message body unprotected and allowing an attacker to modify them without detection.
Impact
An attacker could send arbitrary commands to the device, leading to increased privileges, though the attack requires a man-in-the-middle position.
What the attacker needed
Man-in-the-middle position on the UDP channel
How it was found
- Position yourself as a man-in-the-middle on the UDP channel between the device and the cloud server.
- Capture a legitimate packet that includes the encrypted serial number.
- Modify the opcode, message body, and body length to the desired values.
- Recalculate the CRC to match the modified packet.
- Send the modified packet to the device, which accepts it as authenticated.
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 and the cloud server talk over an unencrypted UDP connection. To prove commands are genuine, they encrypt only the device's serial number, not the actual command. So someone who can intercept the traffic can change the command and its data, and the device will still accept it as authentic.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.