SSH as Root Unlockable Without Triggering Measured Boot
LF-Edge, Zededa EVE OS
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lf-edge/eve Go |
|
|
Original description
On boot, the Pillar eve container checks for the existence and content of “/config/authorized_keys”.
If the file is present, and contains a supported public key, the container will go on to open port 22 and enable sshd with the given keys as the authorized keys for root login.
An attacker could easily add their own keys and gain full control over the system without triggering the “measured boot” mechanism implemented by EVE OS, and without marking the device as “UUD” (“Unknown Update Detected”).
This is because the “/config” partition is not protected by “measured boot”, it is mutable, and it is not encrypted in any way.