Disable redirect on X-Ipfs-Path without DNSLink on the root document #1052
Labels
area/MV2
Issues related to Manifest V2 version
area/MV3
Issues related to Manifest V3 version
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
kind/bug
A bug in existing code (including security flaws)
P1
High: Likely tackled by core team if no one steps up
Milestone
https://fleek.co is an example of interesting misconfiguration (at least today 2022-02-17):
fleek.co
has no DNSLinkx-ipfs-path
to immutable snapshotProblem
Companion will use
x-ipfs-path
as fallback:ipfs-companion/add-on/src/lib/ipfs-request.js
Lines 310 to 312 in eacee6c
This means opening https://fleek.co with ipfs-companion will redirect user to http://bafybeidwgtlx54aifd5ynwwvlozr2fuw5xrmbu3ivnwmnoxi4ewdnxty5y.ipfs.localhost:8080
Solution
x-ipfs-path
, as that makes it hard for user to bookmark, access the latest version in the future, and could introduce regressions (only websites with valid DNSLink should be redirected).x-ipfs-path
, but the domain has no DNSLink set up.The text was updated successfully, but these errors were encountered: