Skip to content

Instantly share code, notes, and snippets.

@yuriy77k
Forked from gorbunovperm/ETH_XCOYNZ_report.md
Created January 27, 2019 10:19
Show Gist options
  • Save yuriy77k/e01d4429a4a4e62f37b9cc0990eabd2e to your computer and use it in GitHub Desktop.
Save yuriy77k/e01d4429a4a4e62f37b9cc0990eabd2e to your computer and use it in GitHub Desktop.
XCOYNZ token security audit

XCOYNZ token security audit report

Summary

This is the report from a security audit performed on xcoynz by gorbunovperm.

Smart Contract to support XCOYNZ token and project fundamentals with 1.25B total supply and a token ticker of XCZ. The Smart Contract encompasses all basic token attributes and periodic releases of tokens, adhering to vesting periods as dictated by the project's long term vision which is made publicly available in the Whitepaper and all project documentation.

https://xcoynz.com/

In scope

Commit hash: e4535fb03b4621919fba7798a0721111f35f634b

  1. XCOYNZ Test SC.sol

Findings

In total, 2 issues were reported including:

  • 0 high severity issue.

  • 1 medium severity issues.

  • 1 low severity issues.

  • 0 minor observations.

Security issues

1. Known vulnerabilities of ERC-20 token

Severity: low

Description

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

  • 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 into a function transfer(address _to, ... ) following code:

require( _to != address(this) );

2. It is possible to bypass the restrictions for the owner

Severity: medium

Code snippet

Description

There is the restrictions for the tokens owner in transfer function. But there is no restrictions for transferFrom function and the tokenOwner can using an intermediary address to bypass the restrictions.

Conclusion

There is some serious vulnerabilities were found here.

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