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

Ignore/Avoid bogus advertisements #1771

Closed
Stebalien opened this issue Sep 30, 2015 · 3 comments
Closed

Ignore/Avoid bogus advertisements #1771

Stebalien opened this issue Sep 30, 2015 · 3 comments
Labels
topic/libp2p Topic libp2p topic/security Topic security

Comments

@Stebalien
Copy link
Member

IPFS peer discovery should be interface specific. That is, if I discover a peer via an interface, I should only contact/advertise that peer through that interface. This is actually a security problem because one can currently trick an IPFS daemon into connecting to any private service. While robust services will just ignore such connections, many services written to run on private networks/localhost aren't robust.

Additionally, to prevent the propagation of bogus addresses, IPFS should only advertise non-public peers (loopback, private network) via the interface by which they can be reached.

@Stebalien Stebalien changed the title Ignore bogus advertisements Ignore/Avoid bogus advertisements Sep 30, 2015
@jbenet
Copy link
Member

jbenet commented Oct 2, 2015

@Stebalien yes, you're right. We should do this better. We need to treat our transports and links like interfaces properly, and bring the internet into ipfs. We currently don't. But have plans for it.

@whyrusleeping
Copy link
Member

👍 this is a lot of our 'over dialing' problem.

@Stebalien
Copy link
Member Author

Closing in favor of the libp2p issues.

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

No branches or pull requests

3 participants