Skip to content

Instantly share code, notes, and snippets.

@yuriy77k
Created April 9, 2019 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriy77k/a6fb92b81e40556781e2214cf486b5c9 to your computer and use it in GitHub Desktop.
Save yuriy77k/a6fb92b81e40556781e2214cf486b5c9 to your computer and use it in GitHub Desktop.
Zilliqa Token Audit Report.

Security Audit Report

1. Summary

Zilliqa Token smart contract security audit report performed by Callisto Security Audit Department

Token desription:

Symbol      : ZIL
Name        : Zilliqa
Total supply: To be set in the construction phase
Decimals    : 12
Standard    : ERC20

2. In scope

3. Findings

In total, 3 issues were reported including:

  • 3 low severity issues.

No critical security issues were found.

3.1. Known vulnerabilities of ERC-20 token

Severity: low

Description

  1. It is possible to double withdrawal attack. More details here.

  2. Lack of transaction handling mechanism issue. WARNING! This is a very common issue and it already caused millions of dollars losses for lots of token users! More details here.

Recommendation

Add the following code to the transfer(_to address, ...) function:

require( _to != address(this) );

3.2. Transfer Admin to zero address.

Severity: low

Description

Possibility of setting zero address as newAdnin at changeAdmin function.

Code snippet

Recommendation

Need to check if newOwner address is not zero address.

require( newAdmin != address(0) );

3.3. Owner Privileges

Severity: low

Description

The contract owner allow himself:

  • to pause functions of contract (transfer, transferFrom, approve, increaseApproval, decreaseApproval), besides burn function;
  • Evacuate Tokens at any time.

The contract is managed manually by the owner which is not good for investors.

Code snippet

4. Conclusion

The audited smart contract can be deployed. Only low severity issues were found during the audit.

5. Revealing audit reports

https://gist.github.com/yuriy77k/8a4e69ad1ae46a818982b0dbc5627a1a

https://gist.github.com/yuriy77k/4b4dbfbd3ce5ba84eb0b7364dd608c74

https://gist.github.com/yuriy77k/7facb589523c03d64f09be1ba8b11614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment