Coder Social home page Coder Social logo

ethereumcommonwealth / classicmask Goto Github PK

View Code? Open in Web Editor NEW
7.0 8.0 11.0 26.96 MB

License: BSD 4-Clause "Original" or "Old" License

HTML 0.67% JavaScript 93.56% CSS 5.73% Dockerfile 0.04%
metamask dapp-developers dapp firefox chrome visualization architecture

classicmask's People

Contributors

2-am-zzz avatar abitrolly avatar alextsg avatar austp avatar chikeichan avatar danfinlay avatar danjm avatar dapperkangaroo avatar dexaran avatar flyswatter avatar frankiebee avatar greenkeeper[bot] avatar jaredpereira avatar kumavis avatar luisivan avatar nnn-gif avatar poosham avatar pyskell avatar sdtsui avatar simondlr avatar strelok1 avatar sunify avatar tmashuang avatar ukstv avatar vicnaum avatar vietnameseninja avatar vincentserpoul avatar watilde avatar yograterol avatar zmitton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

classicmask's Issues

net_version incorrectly returns chainId

web3.version.network
=> 61
web3.currentProvider.send({jsonrpc: '2.0', method:"net_version", params:[],id:1})
=> {id: 1, jsonrpc: "2.0", result: 61}
web3.currentProvider.sendAsync({method:"net_version", params:[],id:1}, (err, x) => console.log(err, x))
=> {id: 1, result: "1"}
$ curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":1}' https://mewapi.epool.io
{"jsonrpc":"2.0","result":"1","id":1}

In Ethereum Classic, network_id is 1 and chain_id is 61. In all other networks, the network_id and chain_id are the same.

Issues:

  1. network_id must be returned as a string, not a number
  2. Node is returning "1", but ClassicMask returns 61 (unless net_version is invoked directly with sendAsync)
  3. However, if ClassicMask correctly returns 1, dapps may think they are on the non-classic Mainnet.

Address didn't change after changing account

I installed ClassicMask to Chrome and started it, there opened window and i were need to enter password and ClassicMask generated me some private key and seed phrase, but i had my own private key and account, so i logged out from this account and didn't save any phrases or keys, because i had my own account. So when i logged out and entered my private key, i logged to my account(from which i knew the private key) and it showed me my address, so as i were sure, that this address is correct i copy it and send all my Callisto tokens to this address. Then when i relaunched the browser, because nothing came to my wallet. I found out, that address changed in my account and address which i copied was from first generated account, so i sent all my tokens to wrong address, because ClassicMask didn't update this field!

Doesn´t allow pay the gas amount in order to deploy a contract

Bug Reports:

In this device, I am using Windows10 and Google Chrome (latest version). I have installed classicMask extension and configured, so, theoretically, I am connected to Ethereum Classic mainnet.

Trying to deploy a contract using classicetherwallet (connected to ethereum classic mainnet) occurs the following situation:

issue

Also, I´ve tried to deploy a smart contract in Ropsten for example, and the same issue come up.

But, if I use etherwallet and MetaMask on the other hand, the same process works successfully.

Insecure Credential Storage

Insecure Credential Storage
Vulnerable module: web3
Introduced through: [email protected]
Detailed paths
Introduced through: metamask-crx@EthereumCommonwealth/ClassicMask#a89b72cff66fde37984f9d881d0090c9d5c9a18d › [email protected]
Overview
web3 is a JavaScript API which connects to the Generic JSON RPC spec.

Affected versions of this package are vulnerable to Insecure Credential Storage. The current implementation of web3.js could result in wallet decryption under certain circumstances. When a wallet is saved and encrypted into local storage, a private key is needed to load the wallet. However, this private key is available via LocalStorage and is readable in plaintext on a webpage after a wallet is loaded.

This implementation could be abused by an attacker through client-side attacks such as Cross-site Scripting (XSS) and could result in theft of a user's wallet private key.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.