Hiding introducer and helper furls and other private info reported by a node on its web interface #860
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#860
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(http://allmydata.org/pipermail/tahoe-dev/2009-December/003334.html)
Reported by Jody Harris:
(Comments from #861)
Any node that is available on an exposed IP address publishes the introducer furl and the helper furl (if attached) to the world.
This results in anyone discovering the address of an exposed node being able to attach to a grid and a helper. This could result in unlimited abuse.
If one wanted to store files on their grid, then publish specific files to the net, a public node is required. Once that node is published, finding the furls is trivial.
Example: Zooko's blog hosted on the TestGrid:
http://testgrid.allmydata.org:3567/uri/URI:DIR2-RO:j74uhg25nwdpjpacl6rkat2yhm:kav7ijeft5h7r7rxdp5bgtlt3viv32yabqajkrdykozia5544jqa/wiki.html#2009-12-15
Going to the root of the node: http://testgrid.allmydata.org:3567/
Introducer:
This happens to be a wonderful feature for the TestGrid, but a easy point of attack for anyone with a "closed" or "limited" grid.
Replying to imhavoc:
Actually it shouldn't affect file confidentiality or integrity (so the keywords of this bug -- "privacy security" -- are correct). I agree it needs to be fixed.
Hiding the introducer furl reported by a helperto Hiding the introducer and helper furls reported by a storage server on its web interfaceLooking at the contents of pages accessible from the web root, there are various other privacy issues besides the furls. Perhaps we need the option to have a locked-down server with only a minimal web root.
Hiding the introducer and helper furls reported by a storage server on its web interfaceto Hiding introducer and helper furls and other private info reported by a storage server on its web interfaceReplying to davidsarah:
In my planned usage:
I want to be able to share a file in the grid, so being able to retrieve with a URI through a web-available node would be required. Ideally, though, the URI would only result in the file or directory that was shared being made available/exposed.
The full interface that is currently generated would be okay IF it was turned off by default for external interfaces (non-127.0.0.1), and each part could be turned on in the tahoe.cfg.
I do understand that the default interface is designed for localhost usage as a primary interface for some users.
Concealing the Introducer FURL seems like a reasonable option. It requires two changes:
registerReference(introducerService, furlFile=os.path.join(basedir, "private", "introducer.furl"))
instead of using "introducer" and the subsequent call towrite_config
.data_introducer_furl
) to return "hidden" instead of the actual FURL(note that without the unguessable swissnum, anyone who can connect to your introducer's IP address can figure out the rest of the FURL. The tubid is public, the port number is easy to portscan, and "introducer" is easy to guess)
A filecap/dircap itself provides exactly the right authorities: read or read-write access to the given object. However you need a gateway to use it. The general assumption that I make is that people will use their own gateway (since you'll be revealing your caps to the gateway operator).
A URL-wrapped filecap/dircap (which includes the hostname+port of a webapi-implementing gateway node, via an
<http://host/uri/>
prefix) appears to provide additional authorities, such as everything else you can do with the webapi interface: create new directories, upload new files, and convert any other filecaps you happen to have into real file data. But these are probably ambient authorities anyways: if you suspect that I'm running a webapi gateway on testgrid.allmydata.com, it's trivial to portscan it for an HTTP server, and the webapi paths are all well-known (/uri, etc).So protecting a webapi gateway from unauthorized use is another matter. It partly falls into the Accounting project (in that the gateway won't be able to consume storage space on the servers without some sort of authority, and the gateway won't have any of its own, so the HTTP client will have to provide it), but that's about protecting the storage server's disk space.
If the goal is to protect the gateway's CPU and bandwidth, then we need to create a new authority framework. It may be enough to have something very coarse-grained, like a secret prefix on the webapi URL (i.e.
/nt5nscyox63/uri?t=mkdir
instead of plain/uri?t=mkdir
), and having the gateway listen only on HTTPS. In that system, giving someone a URL-wrapped filecap that references your gateway would give them full permission to do webapi things on your gateway, but other parties wouldn't be able to acquire that ability on their own.We could make two separate prefixes, one which only accepts read/download operations, and another which accepts everything. This would let you give away an HTTP-ready URL for downloading a file through your gateway without also exposing the upload authority.
We could make this sort-of backwards compatible by defining the default prefix to be an empty string, and saying that the webapi server listens at
$PREFIX/uri
.We've also talked about a tahoe.cfg switch which denies all upload operations on a gateway. Some folks have implemented this externally with an Apache frontend that blocks all PUT/POST/DELETE operations, only allowing GET through.
If you like this bug, you might also like #562 and #823.
If you like this bug, you might also like #587.
I just now became one of the people who wants this. I'd like to host two world-readable sites (my blog and the imminent Tahoe-LAFS Weekly News) on the volunteergrid without giving readers of those sites the ability to upload files to the volunteergrid. To do that we need this ticket to be fixed, and then also the ability to configure a gateway to be read-only so that it doesn't perform any uploads or updates of any file for any user. (This is one approach to #587.)
As the example in the description shows, this applies to web interfaces on all node types, not just storage servers.
Hiding introducer and helper furls and other private info reported by a storage server on its web interfaceto Hiding introducer and helper furls and other private info reported by a node on its web interfaceReplying to warner:
This part is now #1802.
The introducer and helper furl swissnums are censored as of changeset:9be1a940. I think that any remaining issues discussed here are covered by the following tickets:
If so, we can close this ticket.
warner: davidsarah: I agree that #860 can now be closed
warner: yup, that patch looked good