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

Prevent test binary from deploying #237

Merged
merged 4 commits into from Aug 13, 2021
Merged

Prevent test binary from deploying #237

merged 4 commits into from Aug 13, 2021

Conversation

joshuajbouw
Copy link
Contributor

Just noticed a dangerous situation. We have a new public function called mint_account for integration-test feature which allows you to make any address, at any nonce, at any balance. If someone accidentally built a test build and uploaded that, it would allow anyone to use that method.

To address that, I just changed the .wasm test file compilations specifically state that they are test binaries and looking into adding something deploy that causes it to explode if someone accidentally deploys the test version.

@joshuajbouw joshuajbouw changed the title Fix an issue with prevent test binary from deploying Prevent test binary from deploying Aug 13, 2021
@joshuajbouw joshuajbouw merged commit e5d79c8 into develop Aug 13, 2021
@joshuajbouw joshuajbouw deleted the fix/test-no-deploy branch August 13, 2021 15:44
src/lib.rs Show resolved Hide resolved
artob added a commit that referenced this pull request Aug 14, 2021
* ERC-20: forbid using invalid NEP141 AccountID for mapping (#179)
* Timestamp should be in milliseconds for Ethereum compatibility (#208)
* feat(engine): Blockhash definition (#213)
* Update etc/state-migration-test/Cargo.lock (#211)
* Include cost of access list in intrinsic gas (#219)
* Bump tar from 4.4.13 to 4.4.15 in /etc/eth-contracts (#217)
* Feat(engine): Relayer payment (#215)
* Scheduled lint is supposed to run nightly clippy (#214)
* Return actual status of a transaction (#218)
* Added parser for Integer types (#183)
* Update to latest nightly (#221)
* Fix(engine): do not panic when user has insufficient balance to cover gas (#223)
* Update lock files (#224)
* Method to fix balance of aurora account on testnet (#225)
* Use math api host functions on mainnet (#228)
* NEP-141 compliance correctness (#202)
* Adapt workflows to dockerized runners (#231)
* Move block height to the end of hashed data. (#233)
* Ensure solidity artifacts are always recompiled (#234)
* Prevent test binary from deploying (#237)
* Add removal of eth-contracts to `make clean`
* Remove deploy_code feature gate

Co-authored-by: Dmitry Strokov <dmitry@aurora.dev>
Co-authored-by: Evgeny Ukhanov <evgeny@aurora.dev>
Co-authored-by: Joshua J. Bouw <joshua@aurora.dev>
Co-authored-by: Kirill <kirill@aurora.dev>
Co-authored-by: Michael Birch <michael@aurora.dev>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

3 participants