You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lack of /p2p/{libp2p-key} in /dnsaddr makes peerMultiaddr test flaky:
We return true for /dnsaddr without /p2p/{peerid} but it does not work outside of ipfs swarm connect and is not really secure/reliable:
No way to tell if DNS TXT record with key exist at all (could be invalid addr)
No way to protect against MITM - someone could swap key in DNS response
This is especially troublesome in context of origins and delegates in https://ipfs.github.io/pinning-services-api-spec/ – caused issues because Pinata returned /dnsaddr without suffix, and go-ipfs returned Error: invalid p2p multiaddr
While handy for swarm connect, I believe its way safer for everyone if we harden the check and require /p2p suffix with key at all times.
The text was updated successfully, but these errors were encountered:
lidel
added
kind/bug
A bug in existing code (including security flaws)
P0
Critical: Tackled by core team ASAP
labels
Feb 20, 2021
Lack of
/p2p/{libp2p-key}
in/dnsaddr
makespeerMultiaddr
test flaky:/dnsaddr
without/p2p/{peerid}
but it does not work outside ofipfs swarm connect
and is not really secure/reliable:origins
anddelegates
in https://ipfs.github.io/pinning-services-api-spec/ – caused issues because Pinata returned/dnsaddr
without suffix, and go-ipfs returnedError: invalid p2p multiaddr
swarm connect
, I believe its way safer for everyone if we harden the check and require/p2p
suffix with key at all times.The text was updated successfully, but these errors were encountered: