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

Latest release does not have actual fix for local JSONRPC issue #79

Closed
strazzere opened this issue Jan 18, 2018 · 5 comments
Closed

Latest release does not have actual fix for local JSONRPC issue #79

strazzere opened this issue Jan 18, 2018 · 5 comments

Comments

@strazzere
Copy link

So I was doing some auditing of some repos and noticed that the last pull request that was merged is not the full fix for spesmilo#3374. So all the new releases for both TOR and non-TOR electrum-vtc as still affected by this issue.

The only patch you applied was Disable CORS for JSON-RPC, spesmilo@fdd10bf, which was applied at 86767e2.

Which is not the full fix as an attacker could simply use exploitable via DNS rebinding from a web site, or any local application would have access.

I verified that none of the newest releases contain extra code as well and contain this issue. This is readily reproducible if you simply look for the socket being opened on the localhost and send a POST to it.

@metalicjames
Copy link
Collaborator

At the time of the fix CORS was the available patch. Local applications would have access anyway, since they could read the RPC user/pass from disk. That's the same with Vertcoin Core even. DNS rebinding is something I am unfamiliar with.

However, I will apply the additional RPC password protection patch and provide new release shortly nonetheless.

@strazzere
Copy link
Author

There is a good explanation to DNS rebinding in spesmilo#3374, but the TLDR is that it isn't a hard thing to do.

With regards to the local apps reading the pass from disk - this isn't exactly true since this app is actually for many different platforms. E.g. - On Android this isn't possible for another app to read the config, but it would be perfectly fine for all the apps that have the internet permission to interact with this socket.

@metalicjames
Copy link
Collaborator

Potential fix: #81

@strazzere
Copy link
Author

The fix looks fine by me with regards to the jsonrpc fixes, I've already evaluated them on the original git repo. Thanks for the speedy pull. I'd have done it myself, but just haven't had any of the time.

Thanks!

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

No branches or pull requests

2 participants