Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Filter result of eth.accounts even for batch IPC calls #1114

Merged
merged 2 commits into from
Sep 5, 2016

Conversation

hiddentao
Copy link
Contributor

This fixes a security issue raised earlier. Although eth.accounts are filtered according to what's visible to the active Mist tab it was still possible to retrieve all accounts by making the same call as part of a batch IPC request. This PR fixes that.

@@ -26,6 +26,7 @@ const ERRORS = {
METHOD_TIMEOUT: {"code": -32603, "message": "Request timed out for method \'__method__\'."},
TX_DENIED: {"code": -32603, "message": "Transaction denied"},
BATCH_TX_DENIED: {"code": -32603, "message": "Transactions denied, sendTransaction is not allowed in batch requests."},
BATCH_COMPILE_DENIED: {"code": -32603, "message": "Compilation denied, compileSolidity is not allowed in batch requests."},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't necessary for the fix but I added it anyway. You can't do a contract compilation as part of a batch call because we don't support that.

@hiddentao hiddentao modified the milestones: 0.8.3, 0.8.2 Aug 25, 2016
@hiddentao
Copy link
Contributor Author

More fixes added.

@alexvandesande alexvandesande merged commit 06d12a6 into ethereum:develop Sep 5, 2016
@lock
Copy link

lock bot commented Mar 31, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants