This document is a security audit report performed by Cryptoabhi as a contributor to Callisto Network where EOS Gift Card has been reviewed. EOS gift card can be found at eosgiftcard.com
GIFT CARD is a EOSIO based smart-contract which allows users to easily create new EOS accounts.
1 issues were reported:
-
0 high severity issues.
-
0 medium severity issues.
-
2 low severity issues/recommendations.
Any bad actor can call the contract with invalid key format of proper length, please include proper format check for eosio keys
Need to add a check for the proper eos key format.
Before calling the "newaccount" action, it is recommended to check if the account "new_name" already exists.
Include a check beforehand to check if the account already exist or not We can apply a check, something like -
eosio::check( !is_account( new_name ), "new account already exist");
No direct exploit of the contract has been found, the audited contract can be deployed and used. however it is recommended to apply the provided checks.