Expand file tree
A legacy S3 bucket used by old fwupd clients was deleted and could be re-registered by anyone, and a PGP signature verification bypass in fwupd allowed any non-detached signature from any key to be accepted. Together, an attacker controlling the bucket could serve malicious firmware metadata to legacy clients, potentially leading to malicious firmware installation if the user accepted the update.
github.com
Published on github.com
History
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the combination of a dangling cloud storage bucket referenced by old client configurations and a signature verification logic flaw that accepted any non-detached signature from any key because it only checked for the absence of bad signatures rather than the presence of a good one.
Impact
An attacker could offer malicious firmware updates to legacy fwupd clients, but installation requires manual user acceptance, some hardware performs its own on-chip verification, and the code paths for parsing malicious input were not thoroughly examined.
What the attacker needed
Legacy fwupd client (<1.0.6); attacker registers dangling S3 bucket; user manually accepts update
The fix
The dangling S3 bucket was transferred to the LVFS project, and the signature verification bypass was fixed in fwupd and libjcat.
How it was found
- Observe that the legacy S3 bucket returns a NoSuchBucket error.
- Register the dangling S3 bucket as an AWS customer.
- Enable S3 access logging on the bucket.
- Provide arbitrary firmware metadata and signature files from the bucket to legacy fwupd clients.
- Use a non-detached PGP signature from any key to bypass fwupd's signature verification.
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 write-up has not been written yet. The Original tab links to the source.
Firmware is the low-level software built into hardware like your laptop's BIOS. fwupd is a tool that downloads firmware updates and checks a digital signature to make sure they come from a trusted source. Here, the old download location could be taken over by anyone, and the signature check could be tricked into accepting a file signed by any key, so a malicious update could be offered.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.