Skip to content
Write-up Advanced

The forgotten IPFS vulnerabilities

Multiple vulnerabilities in IPFS components were disclosed, including IPNS downgrade and name takeover, signed message malleability, path traversal, CORS bypass, and HTML injection. An attacker could poison IPNS records, forge signed messages, overwrite files, perform privileged API actions, or inject HTML.

tintinweb Follow

Published on consensys.net

In 2021 we privately disclosed multiple vulnerabilities in the InterPlanetary File System (IPFS) to the Protocol Labs Security Team but never really talked about it.

tintinweb, Joran Honig (@joranhonig), on consensys.net

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 various implementation flaws: missing signature coverage, improper validation, lack of sanitisation, and reliance on client-side CORS.

Impact

An attacker could poison IPNS records, forge signed messages, overwrite arbitrary files, perform privileged API actions, or inject HTML, potentially leading to information disclosure or remote code execution.

What the attacker needed

IPFS node running with API enabled; victim visits malicious website; attacker controls CID content; IPFS Desktop or go-ipfs with fuse mount

The fix

The vulnerabilities were fixed by the IPFS team, with some fixes rolled out immediately and at least one under embargo until a protocol update.

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.

IPFS is a system for storing and sharing files by their content. The report describes several security flaws in its software that could let attackers tamper with records, overwrite files, or run commands. These flaws were reported to the IPFS team and mostly fixed.

More from Filecoin Security

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.