Skip to content
Account takeover Advisory Advanced CVE-2018-3934

Yi Technology Home Camera 27US nonce reuse authentication bypass vulnerability

The Yi Home Camera's UDP protocol uses a nonce-based authentication scheme, but the list of used nonces is stored per session and cleared when a session ends. An attacker who sniffs a valid nonce can replay it in a new session or after the original session ends, bypassing authentication until the device reboots.

Lilith >_> Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable code execution vulnerability exists in the firmware update functionality of Yi Home Camera 27US 1.8.7.0D. A specially crafted set of UDP packets can cause a logic flaw, resulting in an authentication bypass.

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 nonce replay protection list is stored per session and cleared when the session ends, so nonces can be reused across sessions or after session termination.

Impact

An attacker could bypass authentication and execute arbitrary code on the camera, potentially gaining full control, until the device reboots.

What the attacker needed

Ability to sniff network traffic; camera and attacker on same network or ability to intercept…

The fix

The nonce replay protection should be maintained globally across sessions and not cleared on session termination.

How it was found

  1. Sniff network traffic to capture a valid nonce and its HMAC from a legitimate session.
  2. Initiate a new TNP_Session while the original session is still active, or wait for the original session to end.
  3. Send a MSG_RCV_DRW packet containing the captured nonce and HMAC to authenticate.

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 camera checks a one-time code (a nonce) to prove a command is fresh, but it only remembers used codes for the current connection. If an attacker records a valid code from the network, they can start a new connection or wait for the old one to close, and the camera will accept the old code again. This lets them send commands as if they were the legitimate app.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Lilith >_>

View all

4 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.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.