Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write up the security + privacy implications of running IPFS Service Worker #57

Open
flyingzumwalt opened this issue Jul 2, 2017 · 2 comments
Labels

Comments

@flyingzumwalt
Copy link
Contributor

In order to be confident about deploying the IPFS service worker we want to ensure security + privacy for users running the service worker.

  1. Document all of the implications of running the service worker:
    • possible exploits
    • what information might get leaked, when it might get leaked
    • scenarios where users are fine with doing things publicly and non-anonymously
    • etc.
  2. Identify possible strategies for mitigating any security or privacy concerns
  3. Seek review from security-minded collaborators
@samholmes
Copy link

First thought. IPFS uses content-address to verify that the content is the content for which you are looking. This means that SSL certificates are not needed in order to prevent man-in-the-middle attacks.

The only time when I can see a sort of man-in-the-middle attack is when a resource (web page) includes a dependency for which it doesn't have control over (3rd-party IPNS addressed library). In this case, the application would need to trust this IPNS address to not be malicious. Ultimately, control over what the dependency could access would be preferable.

Not much else to comment at the moment.

@daviddias daviddias added status/ready Ready to be worked and removed status/in-progress In progress labels Dec 13, 2017
@lidel
Copy link
Member

lidel commented Aug 6, 2018

Worth being aware that in event of HTTP gateway misconfiguration, ServiceWorker could take control over all /ipfs/* and /ipns/* gateway responses.

Details: ipfs/kubo#4025 + additional explanation in ipfs/kubo#4025 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants