Skip to content
Access control Advisory Advanced CVE-2021-21953

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.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 7.7 View original

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.

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

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

  1. Position yourself as a man-in-the-middle on the UDP channel between the device and the cloud server.
  2. Capture a legitimate packet that includes the encrypted serial number.
  3. Modify the opcode, message body, and body length to the desired values.
  4. Recalculate the CRC to match the modified packet.
  5. 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.

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.

Broken access control

The lesson behind this report.

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.