Skip to content
Business logic Advisory Intermediate CVE-2018-3891

Yi Technology Home Camera 27US Firmware Downgrade Vulnerability

The firmware update process on the Yi Home Camera uses integer comparison operators to compare version strings, so the version checks always fail and any firmware version is accepted. An attacker with physical access can place a crafted firmware file on an SD card to downgrade the device to an older, potentially vulnerable firmware.

Lilith Follow

Originally disclosed on Cisco Talos

Medium 5.7 View original

An exploitable firmware downgrade vulnerability exists in the firmware update functionality of Yi Home Camera 27US 1.8.7.0D. A specially crafted file can cause a logic flaw, resulting in a firmware downgrade.

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

Impact

An attacker with physical access could downgrade the camera to an older firmware version, potentially reintroducing known vulnerabilities.

What the attacker needed

Physical access to the camera; an SD card with a crafted firmware file

The fix

The version comparisons should use string comparison operators (e.g., != and >=) instead of integer operators, and the update process should explicitly prevent downgrades.

How it was found

  1. Insert an SD card containing a firmware file named home_y18m into the camera.
  2. Power on the camera; the init script detects the file and extracts the version string.
  3. The script compares the new version with the current version using integer operators, which fail, so the update proceeds.
  4. The firmware is unpacked and installed, downgrading the device.

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 camera lets you update its software (firmware) by putting a file on a memory card. The camera is supposed to check that the new firmware is newer than what is already installed, but it uses the wrong kind of comparison, so the check never works. Someone with the memory card can therefore install an older version of the firmware, which might have known security holes.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Lilith

View all

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

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.