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

Use https if possible when communicating with etherscan #23

Open
ligi opened this issue Dec 15, 2017 · 5 comments
Open

Use https if possible when communicating with etherscan #23

ligi opened this issue Dec 15, 2017 · 5 comments
Labels

Comments

@ligi
Copy link

ligi commented Dec 15, 2017

currently plain http is used:

String url = "http://api.etherscan.io/api?module=account&action=balancemulti&address=";

I think I know why you do it: walleth/walleth#134
But on some devices https works so perhaps http should be a fallback and not the default

@manuelsc
Copy link
Owner

Yes exact same issue here. Initially we used https for every request but decided to switch to http as soon as users started experiencing connection problems on some devices. Not the best solution but I wasn't able to reproduce this issue on my devices nor do I know whether pinning the certificate in app would resolve this issue on those devices either.
I mean it's more a privacy concern than a real security concern given the sensible data like transactions are already signed on the device and are therefore immutable. But you are right, it should be https.

@ligi
Copy link
Author

ligi commented Dec 15, 2017

Thanks for the answer! It is not only a privacy problem - this way it is also open for man in the middle. Ideally I would also like to pin the certificates - but If there is a fall-back to http anyway it is kind of pointless ..

Currently I have only seen this on 5.x devices - but on none of mine unfortunately ..

@manuelsc
Copy link
Owner

Sure it leaves a door open to MIT attacks, but there's not much a MIT attacker can do here. He can spoof and sniff your responses like balances and transactions, but I don't see how that could lead to users funds being at risk. An attacker might prevent transactions from being broadcasted to the network, but that's about the worst case scenario a MIT attack I can think of. Not saying that this isn't an issue, but that's what I meant when I said I think of it more as a privacy concern than a real world security threat where users funds are at risk.

@ligi
Copy link
Author

ligi commented Dec 15, 2017

Imagine a localethereum or merchant like situation - via man in the middle an attacker could pretend he has payed you the money if in fact he has not. We really need working light clients - but until that at least https ;-)

@manuelsc
Copy link
Owner

Fair point. Well I'll try to contact etherscan about this issue too, maybe it helps if they hear it from two wallet devs

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

2 participants